/* ============================================
   GŁÓWNY KONTENER KONFIGURATORA
   ============================================ */
.zg-configurator-wrapper {
    background: transparent;
    width: 100%;
    max-width: 920px;
    text-align: center;
}

/* ============================================
   TYPOGRAFIA KROKÓW
   ============================================ */
.wizard-step h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f0f0f;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.wizard-step .subline {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================
   ANIMACJA KROKÓW
   ============================================ */
.wizard-step {
    display: none;
    animation: fadeSlideUp 0.4s ease forwards;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   KARTY WYBORU — ulepszone
   ============================================ */
.options-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.option-card {
    cursor: pointer;
    position: relative;
    display: block;
}

.option-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.card-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 36px 24px 28px;
    width: 420px;
    min-height: 230px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2.5px solid transparent;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Hover — subtelne uniesienie */
.option-card:hover .card-content {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

.card-content img {
    max-width: 280px;
    /* height: 90px; */
    object-fit: contain;
    margin-bottom: 16px;
}

.card-content strong {
    font-size: 22px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.card-content p {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.4;
}

/* Stan aktywny — pomarańczowa ramka + lekki cień */
.option-card input:checked + .card-content {
    border-color: var(--primary-color);
    box-shadow: 0 8px 28px rgba(235, 87, 41, 0.18);
    transform: translateY(-3px);
}

/* Znacznik checkmark w rogu aktywnej karty */
.option-card input:checked + .card-content::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 14px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ============================================
   SUWAKI I POLA LICZBOWE
   ============================================ */
.slider-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.slider-value-display {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.slider-limit {
    font-size: 14px;
    color: var(--text-main);
    white-space: nowrap;
}

input[type=range] {
    flex: 1;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #d3d3d3;
    border-radius: 4px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: transform 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.input-sync {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.input-sync label {
    font-size: 15px;
    color: var(--text-main);
}

.input-sync input {
    width: 110px;
    padding: 10px 15px;
    font-size: 18px;
    font-family: var(--font);
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    outline: none;
    transition: border-color var(--transition-speed);
}

.input-sync input:focus {
    border-color: var(--primary-color);
}

/* ============================================
   FORMULARZ KONTAKTOWY
   ============================================ */
.form-wrapper {
    background: var(--card-bg);
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}


/* --- DWA POLA OBOK SIEBIE (Vorname + Nachname) --- */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    padding-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
}

.form-group input {
    width: 100%;
    padding: 13px 18px;
    font-size: 16px;
    font-family: var(--font);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: #f9f9f9;
    transition: border-color var(--transition-speed), background var(--transition-speed);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.checkbox-group {
    text-align: left;
    font-size: 13px;
    color: var(--text-main);
    margin-top: 25px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    padding-bottom: 24px;
    flex-wrap: wrap;
}

.checkbox-group input {
    margin-top: 3px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

/* ============================================
   PASEK POSTĘPU + NAWIGACJA
   ============================================ */

/* Pasek postępu — nad formularzem, z dużym marginesem */
.progress-container {
    height: 5px;
    background: rgba(0, 0, 0, 0.10);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 56px; /* większy odstęp od kroków */
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 3px;
}

/* Nawigacja — ZURÜCK / WEITER na dole */
.wizard-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 920px;
    margin: 48px auto 0;
    gap: 20px;
}

/* ---- Baza przycisku — pill, BEZ uppercase ---- */
.btn-nav {
    padding: 14px 34px;
    font-family: var(--font);
    font-size: 20px;
    font-weight: 500;
    text-transform: none;       /* brak uppercase */
    letter-spacing: 0;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--transition-speed) ease-in-out,
                color var(--transition-speed) ease-in-out,
                transform 0.15s ease;
}

/* Zurück — ciemny pill */
#prevBtn {
    background-color: var(--text-main);
    color: #ffffff;
}

#prevBtn:hover {
    background-color: #ffffff;
    color: var(--text-main);
}

/* Weiter — nieaktywny szary */
#nextBtn,
.btn-submit {
    background-color: #e0e0e0;
    color: #aaaaaa;
    pointer-events: none;
}

/* Weiter / Submit — aktywny pomarańczowy */
#nextBtn.active-btn,
.btn-submit.active-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    pointer-events: auto;
}

#nextBtn.active-btn:hover,
.btn-submit.active-btn:hover {
    background-color: #ffffff;
    color: var(--text-main);
}

/* ============================================
   EKRAN SUKCESU
   ============================================ */
.success-screen {
    background: #111;
    color: white;
    padding: 70px 50px;
    border-radius: 20px;
}

.success-screen h2 {
    color: white;
    margin: 24px 0 16px;
    font-size: 42px;
    font-weight: 700;
}

.success-screen p {
    color: #cccccc;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
}

.success-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.success-actions {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Przycisk główny success — pill, bez uppercase */
.btn-primary {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    text-transform: none;       /* brak uppercase */
    background: var(--primary-color);
    color: white;
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color var(--transition-speed) ease-in-out,
                transform 0.15s ease;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: var(--text-main);
}

.btn-secondary {
    background: transparent;
    color: #cccccc;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    transition: color var(--transition-speed);
    text-transform: none;
}

.btn-secondary:hover {
    color: #ffffff;
}

/* ============================================
   WALIDACJA WIZUALNA
   ============================================ */
.error-msg {
    color: #d9534f;
    font-size: 12px;
    font-weight: 500;
    position: absolute;
    bottom: 0;
    left: 18px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.checkbox-error {
    bottom: 0;
    left: 28px;
}

.form-group.has-error .error-msg,
.checkbox-group.has-error .error-msg {
    opacity: 1;
    transform: translateY(0);
}

.form-group.has-error input {
    border-color: #d9534f;
    background-color: #fcf0f0;
}

.form-group.has-error input:focus {
    border-color: #d9534f;
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.15);
}

/* ============================================
   RESPONSYWNOŚĆ
   ============================================ */
@media (max-width: 768px) {
    .wizard-step h2 { font-size: 26px; line-height: 1.2; }
    .wizard-step .subline { font-size: 14px; margin-bottom: 28px; }
    .slider-value-display { font-size: 36px; }
    .success-screen h2 { font-size: 26px; }
    .success-screen { padding: 50px 30px; }

    .options-grid { gap: 14px; }

    .card-content {
        width: 100%;
        max-width: 380px;
        min-height: unset;
        padding: 24px 20px 20px;
        border-radius: 16px;
    }

    .card-content img {
        max-width: 180px;
        margin-bottom: 14px;
    }

    .card-content strong {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .card-content p {
        font-size: 14px;
    }

    .option-card input:checked + .card-content::after {
        width: 22px;
        height: 22px;
        font-size: 12px;
        top: 10px;
        right: 12px;
    }

    .btn-nav {
        padding: 12px 24px;
        font-size: 14px;
    }

    .form-wrapper { padding: 30px 20px; }

    .progress-container { margin-bottom: 28px; }

    .wizard-navigation { margin-top: 28px; }
}

@media (max-width: 480px) {
    .wizard-step h2 { font-size: 22px; }
    .wizard-step .subline { font-size: 13px; margin-bottom: 22px; }

    .options-grid { gap: 10px; }

    .card-content {
        max-width: 100%;
        padding: 20px 16px 16px;
        min-width: 280px;
    }

    .card-content img {
        max-width: 160px;
        margin-bottom: 12px;
    }

    .card-content strong {
        font-size: 20px;
    }

    .card-content p {
        font-size: 13px;
    }

    .wizard-navigation { gap: 10px; margin-top: 22px; }

    .btn-nav {
        padding: 11px 18px;
        font-size: 13px;
    }

    .progress-container { margin-bottom: 20px; }
}
/* ============================================
   KALENDARZ (Krok 6)
   ============================================ */
.calendar-container {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.calendar-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

.calendar {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- Nagłówek z miesiącem i strzałkami --- */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-month-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
}

.calendar-nav {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-speed), color var(--transition-speed);
}

.calendar-nav:hover:not(:disabled) {
    background: var(--primary-color);
    color: #ffffff;
}

.calendar-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* --- Etykiety dni tygodnia --- */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
}

/* --- Siatka dni --- */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-day:hover:not(:disabled):not(.cal-day-empty) {
    background: rgba(235, 87, 41, 0.12);
    transform: scale(1.05);
}

.cal-day-empty {
    cursor: default;
    pointer-events: none;
}

.cal-day-disabled {
    color: #cccccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.cal-day-today {
    box-shadow: inset 0 0 0 2px var(--primary-color);
    color: var(--primary-color);
}

.cal-day-selected,
.cal-day-selected:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(235, 87, 41, 0.35);
}

/* --- Legenda --- */
.calendar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot-available {
    background: #f0f0f0;
}

.legend-dot-disabled {
    background: #f0f0f0;
    opacity: 0.4;
    position: relative;
}
.legend-dot-disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 1px;
    background: #999;
    transform: rotate(-45deg);
}

.legend-dot-selected {
    background: var(--primary-color);
}

/* ============================================
   SLOTY CZASOWE
   ============================================ */
.time-slots {
    margin-top: 28px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.time-slots h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 18px;
}

.time-slots h3 span {
    color: var(--primary-color);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 10px;
}

.time-slot {
    padding: 14px 8px;
    background: #f7f7f7;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s;
}

.time-slot:hover:not(:disabled) {
    background: rgba(235, 87, 41, 0.10);
    border-color: var(--primary-color);
}

.time-slot-disabled {
    background: #fafafa;
    color: #cccccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.time-slot-disabled:hover {
    background: #fafafa;
    border-color: transparent;
}

.time-slot-selected,
.time-slot-selected:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(235, 87, 41, 0.30);
}

/* ============================================
   PODSUMOWANIE WYBORU
   ============================================ */
.selected-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 18px 24px;
    background: linear-gradient(to right, rgba(235, 87, 41, 0.08), rgba(235, 87, 41, 0.04));
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    color: var(--text-main);
    font-size: 16px;
}

.selected-slot-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* ============================================
   RESPONSYWNOŚĆ — KALENDARZ
   ============================================ */
@media (max-width: 600px) {
    .calendar,
    .time-slots {
        padding: 20px;
        border-radius: 16px;
    }

    .calendar-month-name {
        font-size: 17px;
    }

    .calendar-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .cal-day {
        font-size: 14px;
    }

    .calendar-weekdays span {
        font-size: 11px;
        padding: 6px 0;
    }

    .calendar-legend {
        gap: 12px;
        font-size: 11px;
    }

    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .time-slot {
        font-size: 14px;
        padding: 12px 6px;
    }

    .selected-slot {
        padding: 14px 18px;
        font-size: 14px;
    }
}

/* ============================================
   BRIDGE STEP — czarny ekran pośredni (krok 7)
   ============================================ */
.bridge-step {
    background: #0f0f0f;
    color: #ffffff;
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    margin: 0 auto;
    max-width: 720px;
}

.bridge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.bridge-step h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    max-width: 540px;
}

.bridge-subline {
    font-size: 16px;
    color: #cccccc;
    margin: 0 0 16px;
    max-width: 480px;
    line-height: 1.6;
}

.bridge-cta {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    box-shadow: 0 4px 16px rgba(235, 87, 41, 0.30);
}

.bridge-cta:hover {
    background: var(--primary-hover, #c94e22);
    transform: translateY(-2px);
}

.bridge-cta:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .bridge-step {
        padding: 50px 24px;
        border-radius: 20px;
    }
    .bridge-step h2 {
        font-size: 24px;
    }
    .bridge-subline {
        font-size: 14px;
    }
    .bridge-cta {
        padding: 14px 30px;
        font-size: 15px;
    }
}

/* Drobna notatka pod sukcesem (info o folderze spam) */
.success-note {
    font-size: 13px;
    color: #999999;
    margin-top: 18px;
    font-style: italic;
}

/* ============================================
   ETAP 25 — VIDEO + FLEXIBILITY
   ============================================ */
.video-wrapper {
    position: relative;
    max-width: 480px;
    margin: 0 auto 30px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    aspect-ratio: 16/9;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-mute-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s ease-out;
}

.video-mute-btn:hover {
    background: rgba(0,0,0,0.8);
}

.flex-question-title {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 20px;
    color: #0f0f0f;
    text-align: center;
    line-height: 1.4;
}

.budget-flex-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: fit-content;
    margin: 0 auto;
    align-items: center;
}

.budget-flex-grid .option-card {
    width: fit-content;
}

.budget-flex-grid .card-content {
    padding: 18px 24px;
    text-align: center;
    min-height: 140px;
}

.budget-flex-grid .card-content strong {
    font-size: 15px;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .video-wrapper {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .flex-question-title {
        font-size: 16px;
        margin: 16px 0;
    }
    .budget-flex-grid {
        gap: 10px;
    }
    .budget-flex-grid .card-content {
        padding: 14px 18px;
    }
    .budget-flex-grid .card-content strong {
        font-size: 14px;
    }
}