/* --- Typography --- */
  h1{
    font-size: 35px !important;
  }
  h2{
    font-size: 32px !important;
    margin-bottom: 30px!important;
  }
  h3{
    font-size: 18px !important;
  }
  .subheader-light{color: var(--red);}


/* dodatkowo dla wszystkich pól auth */
.auth-form input,
.auth-form select,
.auth-form textarea {
    font-size: 16px;
}

/* poprawia czytelność na iOS */
html {
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}
.auth-form input,
.auth-form select,
.auth-form textarea,
.auth-form button,
.auth-form a.button,
.button,
.auth-submit,
.auth-social,
.auth-action {
    font-size: 16px;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* jeśli masz animacje kliknięcia, wyłącz skalowanie */
.button:active,
.auth-submit:active,
.auth-social:active,
.auth-action:active,
.auth-eye:active {
    transform: none !important;
}

/* to samo dla focus, jeśli gdzieś skaluje */
.button:focus,
.button:focus-visible,
.auth-submit:focus,
.auth-submit:focus-visible,
.auth-social:focus,
.auth-social:focus-visible,
.auth-action:focus,
.auth-action:focus-visible,
.auth-eye:focus,
.auth-eye:focus-visible {
    transform: none !important;
}


.why-tab{
    position: relative;;
}

.why-tab-text{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;;
    z-index: 9;
    padding: 15px 30px;
    background-color: rgba(0,0,0,0.7);
    font-size: 0.9em;
}
.why-tab-text h3{
    margin-bottom: 5px;
    font-size: 1.5em;
}
.why-tab-text , .why-tab-text h3{
    color: var(--white);
}

/* Form Styles */
.form-section {
    background: var(--white);
}

.contact-form {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 30px;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.form-step label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-step input[type="text"],
.form-step input[type="email"],
.form-step input[type="tel"],
.form-step input[type="date"],
.form-step select,
.form-step textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.form-step input:focus,
.form-step select:focus,
.form-step textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-step input.error,
.form-step select.error,
.form-step textarea.error {
    border-color: #ff4444;
}

#second-data.form-step,
#third-data.form-step,
#last-step,
.f3 {
    padding-top: 70px;
    position: relative;
}

.btn-form-continue,
.back-form,
.button.btn-border {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-form-continue::after,
.back-form::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url('/storage/images/theme/arrow-right-red.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.btn-form-continue::after{
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(4deg) brightness(112%) contrast(101%);
}
.back-form::before {
    transform: rotate(180deg);
}

.btn-form-continue {
    margin-top: 31px;
    width: 100%;
    justify-content: center;
}
.btn-form-continue,
.button.btn-border {
    background: #1a1a1a;
    color: white;
}

.btn-form-continue:hover,
.button.btn-border:hover {
    background: #333;
    transform: translateY(-1px);
}

.back-form {
    position: absolute;
    top: 7px;
    left: 0;
    background: transparent;
    color: var(--red);
    columns: var(--red);
    padding-left: 0;
    background: transparent;
}

.terms-and-conditions {
    color: #666;
    line-height: 1.4;
}

.terms-and-conditions .checkbox-label {
    display: block;
    font-size: 11px;
}

.terms-and-conditions a {
    color: #1a1a1a;
    text-decoration: underline;
}

#message-response,
#message-response-success {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 13px;
}

#message-response {
    background: #ffebee;
    color: #c62828;
}

#message-response-success {
    background: #e8f5e9;
    color: #2e7d32;
}

#message-response{
    margin-top: 30px;
}

/* =========================
   CHECKBOXY — POPRAWIONE
   ========================= */

.checkbox-label {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 15px;
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    pointer-events: none;
    min-height: 24px;
}
.checkbox-label label{
    padding-left: 28px;
    margin-top: 2px;
}
.checkbox-label span {
    padding-left: 35px;
    position: relative;
    flex: 1;
    color: var(--text);
    min-height: 24px;
    display: block;
}

/* Niestandardowy checkbox */
.checkbox-label span:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background-image: url('/storage/images/theme/checkbox.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Stan zaznaczenia */
.checkbox-label input[type="checkbox"]:checked + span:before {
    background-image: url('/storage/images/theme/checkbox-check.svg');
}

/* Stan hover */
.checkbox-label:hover span:before {
    opacity: 0.8;
}

/* Stan focus */
.checkbox-label input[type="checkbox"]:focus + span:before,
.checkbox-label input[type="checkbox"]:focus-visible + span:before {
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
    border-radius: 4px;
}

/* Stan disabled */
.checkbox-label input[type="checkbox"]:disabled + span {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkbox-label input[type="checkbox"]:disabled + span:before {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Komunikat błędu dla checkboxa */
.checkbox-label.error span:before {
    border: 1px solid var(--danger);
}

/* wariant terms */
.terms-and-conditions .checkbox-label{
    padding-left: 0;
}

/* filtr w auth hero przeniesiony z input:before na span:before */
.auth-hero .terms-and-conditions .checkbox-label span:before{
    filter: invert(92%) sepia(34%) saturate(2484%) hue-rotate(187deg) brightness(130%) contrast(95%);
}

/* last-step */
#last-step .checkbox-label span {
    flex: 1;
}

/* =========================
   KONIEC POPRAWEK CHECKBOXÓW
   ========================= */

input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.file-info {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

#last-step {
    max-width: 800px;
    margin: 0 auto;
}

#last-step textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

#last-step .button {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#last-step .button:hover {
    opacity: 0.9;
}

/* Styl dla przycisku submit */
.btn-form-submit {
    width: 100%;
    background-color: var(--success) !important;
    color: white !important;
    padding: 12px 24px;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-form-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-form-submit:active {
    transform: translateY(0);
}

.btn-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Third step variants */
#afterwarranty-claim,
#device-start,
#transport-damage,
#warranty-claim {
    max-width: 1200px;
    margin: 0 auto;
}

/* File upload styling */
input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.file-info {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

input[type="file"]:before, #device-register-form input[type="file"]:before{
	content: "";
	width: 107px;
	height: 30px;
	position: absolute;
	left: 8px;
	background-image: url('/storage/images/theme/folder.svg');
	background-size: contain;
	top: 8px;
	background-color: var(--white);
	background-repeat: no-repeat;
}
input[type="file"]:after, #device-register-form input[type="file"]:after{
	content: "Wybierz plik";
	height: 30px;
	position: absolute;
    left: 45px;
    width: 77%;
	top: 15px;
    background: white;
}

/* Grid layout for form steps */
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gap-30 {
    gap: 30px;
}


/* Form validation styles */
.invalid-feedback {
    color: #dc3545;
    font-size: 0.8em;
    margin-top: 5px;
    display: none;
    transform: translateY(-15px);
}

.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff !important;
}

.is-invalid ~ .invalid-feedback {
    display: block !important;
}

.consents-list .is-invalid ~ .invalid-feedback{
    transform: -5px;
}

.form-group {
    position: relative;
    margin-bottom: 10px;
}

.bottom-error-message {
    color: #dc3545;
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9em;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    display: none;
    width: 100%;
    grid-column: 1 / -1;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.bottom-error-message.show {
    display: block;
}

/* Form steps display */
.form-step {
    display: none;
}

.terms-and-conditions {
    font-size: 15px;
}


/*Artivcles*/

.article-row-right .article-image{
    order: 1;
}
.article-row-right .article-text{
    order: 2;
}
.article-row-left .article-image{
    order: 2;
}
.article-row-left .article-text{
    order: 1;
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f1f3f5;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
    overflow-y: scroll;
}
.faq-item .faq-answer ol{
    padding-left: 20px;
}

.faq-item.active .faq-answer h4{
  margin-bottom: 5px;
}

.infolinia-content100{
    background: var(--dgray);
}
.infolinia-content {
    padding: 60px 0;
    align-items: center;
    color: var(--white);
}

.infolinia-left {
    text-align: left;
}

.infolinia-right {
    position: relative;
}

.infolinia-image {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.infolinia-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.infolinia-number {
    font-size: 2.5em;
    font-weight: 700;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.infolinia-number i {
    font-size: 0.8em;
}

.infolinia-desc {
    font-size: 1.1em;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 30px;
}

.infolinia-hours {
    margin-top: 15px;
    font-size: 1em;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.infolinia-hours i {
    font-size: 1.2em;
}
.why-tabs .coverimg img{
    height: 400px;
}
.items-start{
    align-items: center;
}

/* Readonly serial number visual style */
.service-request #service_tag {
  background-color: #f5f5f5;
  color: #6b7280; /* Tailwind gray-500 */
  cursor: not-allowed;
}

@media (max-width: 768px) {

  /* Main: ciaśniejsze paddingi */
  main .mx-auto.max-w-7xl {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
    .infolinia-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .auth-hero{
      height: 700px;
    }

    .auth-bg img{
    min-width: 100vw;
    min-height: 100vh;
    object-fit: cover;
    will-change: transform;
    transform: translateZ(0);
}
    
    .infolinia-left {
        text-align: center;
        order: 2;
    }
    
    .infolinia-right {
        order: 1;
    }
    
    .infolinia-number {
        justify-content: center;
    }
    
    .infolinia-hours {
        justify-content: center;
    }

  /* --- Global spacing --- */
  body {
    overflow-x: hidden;
  }
  .container{
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%!important;
  }
  .p-top{ padding-top: 50px !important; }
  .p-bottom{ padding-bottom: 30px !important; }
  .p-bottom-30{ padding-bottom: 20px !important; }

  /* --- Typography --- */
  h1{
    font-size: 32px !important;
    line-height: 1.15 !important;
  }
  h2{
    font-size: 26px !important;
    line-height: 1.2 !important;
    margin-bottom: 15px!important;
  }
  h3{
    font-size: 18px !important;
    line-height: 1.25 !important;
  }
  p{
    font-size: 15px;
    line-height: 1.6;
  }

  /* --- Make “row” stacks vertically --- */
.row:not(.header-top .row),
  .row.row-margin{
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  /* Force your custom columns to full width on mobile */
  .lg50, .lg40, .lg60, .lg30, .lg70, .lg80, .lg20,
  .sm50, .sm40, .sm60, .sm30, .sm70,
  .xs100{
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Remove weird offsets on mobile (if you use them) */
  .xs-offset-top{ margin-top: 18px !important; }

  /* --- Page banner --- */
  .pagebanner{
    position: relative;
    overflow: hidden;
    height: auto;
  }
  .pagebanner .pb-image img{
    width: 100%;
    height: 600px;          /* hero height */
    min-height: 320px;
    object-fit: cover;
    object-position: center;
  }
  .pagebanner .pb-desc .container{
    padding-top: 0;
  }
  .pagebanner .pb-desc p{
    margin-top: 10px;
  }

  /* Buttons in hero -> stack */
  .pagebanner .d-flex.align-center.gap-15{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
  }
  .pagebanner .button{
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 14px;
    margin-top: 15px;
  }

  /* --- About section (text + SVG) --- */
  .text-image-section .article-image.hidden-xs{
    display: none !important; /* chowamy SVG/duże grafiki na mobile */
  }
  .article-text{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .justify-text{
    text-align: left !important;
  }

  /* --- WHY grid cards --- */
  .d-grid.grid-3{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .why-tab{
    border-radius: 18px;
    overflow: hidden;
  }
  .why-tab .why-tab-img img{
    width: 100%;
    height: 350px;
    object-fit: cover;
  }
  .why-tab .why-tab-text{
    padding: 14px 14px 16px;
  }

  /* --- Form section --- */
  .form-section .header-section{
    padding-bottom: 16px !important;
  }
  .form-container{
    padding: 0 !important;
  }

  /* Jeśli formularz ma kroki/kolumny — wymuś 1 kolumnę */
  .form-container .row,
  .form-container .grid,
  .form-container .d-grid{
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }

  /* Inputs: większe hit-area */
  input, select, textarea, button{
    min-height: 44px;
  }

  /* --- Articles section --- */
  .articles-content .article-row{
    gap: 14px;
  }
  .articles-content .article-image a img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
  }
  .articles-content .article-text{
    order: 2; /* tekst pod obrazkiem */
  }
  .articles-content .article-image{
    order: 1; /* obrazek nad tekstem */
  }
  .articles-content .read-more{
    display: inline-block;
    margin-top: 10px;
  }

  /* --- FAQ --- */
  .faq-container{
    gap: 12px;
  }
  .faq-item{
    border-radius: 16px;
    overflow: hidden;
  }
  .faq-question{
    font-size: 15px !important;
    line-height: 1.4 !important;
    padding: 14px 14px !important;
  }
  
  .faq-answer ul{
    padding-left: 18px;
  }

  /* --- Infolinia --- */
  .infolinia-container{
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .infolinia-content{
    flex-direction: column;
    gap: 16px;
  }
  .infolinia-left .infolinia-title{
    font-size: 18px;
    line-height: 1.25;
  }
  .infolinia-right img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
  }

  /* --- Small fixes for padding utility classes you use --- */
  .padding-bottom-30{
    padding-bottom: 16px !important;
  }
  .paddin-top-30{
    padding-top: 16px !important;
  }
    .contact-form {
        padding: 20px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .gap-15 {
        gap: 15px;
    }
    
    .terms-and-conditions {
        font-size: 11px;
    }
    
}