* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
}

body.bg-default {
    background: url("/images/bg-default.jpg") center / cover no-repeat fixed;
}

.page {
    width: 100%;
}

.hero-wrapper {
    padding: 40px 56px 16px;
}

.hero-card {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.hero-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.intro-wrapper {
    padding: 0 56px 24px;
    text-align: center;
}

.intro-card {
    width: 100%;
    background: #ffffff;
    padding: 32px 48px;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.15);
    text-align: center;
}

.intro-card h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.intro-card p {
    font-size: 18px;
    line-height: 1.6;
    color: #374151;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.form-wrapper {
    padding: 0 56px 56px;
}

.form-card {
    width: 100%;
    background: #ffffff;
    padding: 40px 56px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
    text-align: center;
}

.subtitle {
    font-size: 18px;
    color: #374151;
    margin-bottom: 24px;
    line-height: 1.5;
    text-align: center;
}

/* =========================
   PROGRESS BAR - embedded in form card (invisible border effect)
========================= */
.form-wrapper {
    position: relative;
    padding-top: 32px;
}

.progress-wrapper {
    position: absolute;
    top: 18px;
    left: 56px;
    right: 56px;
    margin: 0;
    padding: 0;
}

.progress-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;

    background: rgba(0,0,0,0.05);
    border: none;
    box-shadow: none;
}


.progress-fill {
    height: 100%;
    width: 0%;
    transition: width 0.35s ease;
    background: #0f4795;

    /* żeby nie robiło "kropki" */
    border-radius: 999px 6px 6px 999px;

    box-shadow: none;
    position: relative;
}

/* minimalny połysk (opcjonalnie, bardzo subtelny) */
.progress-fill::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
}

/* usuń na pewno kropkę */
.progress-fill::after {
    content: none !important;
    display: none !important;
}

/* Mobile - dopasuj do paddingu */
@media (max-width: 900px) {
    .form-card {
        padding-top: 46px;
    }

    .progress-wrapper {
        left: 18px;
        right: 18px;
        top: 14px;
    }
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.radio-group label {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 64px;
    padding: 18px 22px;

    font-size: 20px;
    font-weight: 600;
    text-align: center;

    border-radius: 12px;
    border: 2px solid #0b2c5f;
    background: #ffffff;

    cursor: pointer;
    transition: all 0.2s ease;
}

/* hover */
.radio-group label:hover {
    background: #f8fafc;
}


.radio-group input[type="radio"],
.radio-group input[type="checkbox"] {
    display: none;
}

.radio-group label:has(input:checked) {
    background: #061a3a;
    border-color: #061a3a;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(6, 26, 58, 0.35);
}

.radio-group label:active {
    transform: scale(0.99);
}
.buttons {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.buttons.right {
    justify-content: flex-end;
}

.buttons.space-between {
    justify-content: space-between;
}

.buttons.space-between button {
    flex: 0 0 auto;
}

.inline-error {
    border: 1px solid #e53935;
    background: #fdecea;
    color: #b71c1c;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.btn {
    padding: 12px 34px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;

    background: #061a3a;
    color: #ffffff;

    font-family: 'Montserrat', sans-serif;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    background: #0f4795;
    box-shadow: 0 10px 22px rgba(91, 44, 131, 0.35);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0px);
}

.btn.secondary {
    background: #6b7280;
}

.btn.secondary:hover {
    background: #4b5563;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.next-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #1f6feb;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.next-btn:hover {
    background-color: #164db3;
}

.slide-in-right {
    animation: slideInRight 0.35s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(24px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.final-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 520px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-row input,
.form-row select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 16px;
    font-family: inherit;
    color: #333;

    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background-color: #fff;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row select:invalid {
    color: #999;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.form-row select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23999' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 8px;
    padding-right: 44px;
}

/* =========================
   Intl Tel Input
========================= */
.iti {
    width: 100%;
}

.iti input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid #d9d9d9;
    font-family: 'Montserrat', sans-serif;
}

.iti__flag-container {
    border-radius: 12px 0 0 12px;
}

.iti--separate-dial-code .iti__selected-flag {
    padding: 0 12px;
}

.iti--separate-dial-code input {
    padding-left: 90px;
}

:root {
    --iti-path-flags-1x: url("/vendor/intl-tel-input/img/flags.png");
    --iti-path-flags-2x: url("/vendor/intl-tel-input/img/flags@2x.png");
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {

    .hero-wrapper {
        padding: 24px 16px 12px;
    }

    .intro-wrapper {
        padding: 0 16px 18px;
    }

    .form-wrapper {
        padding: 0 16px 32px;
    }

    .intro-card {
        padding: 22px 18px;
    }

    .form-card {
        padding: 26px 18px;
    }

    .intro-card h1 {
        font-size: 28px;
    }

    .step h1 {
        font-size: 24px;
    }

    .radio-group label {
        font-size: 17px;
        padding: 16px;
        min-height: 58px;
    }

    .final-form {
        max-width: 100%;
    }

}
/* =========================
   Mobile improvements
========================= */

@media (max-width: 600px) {

    /* większe odpowiedzi */
    .radio-group label {
        font-size: 22px;
        min-height: 74px;
        padding: 20px 24px;
        border-radius: 14px;
    }

    /* większe odstępy między opcjami */
    .radio-group {
        gap: 18px;
    }

    /* większy przycisk NEXT */
    .btn,
    .next-btn {
        font-size: 18px;
        padding: 16px 32px;
        border-radius: 14px;
    }

    /* większy tytuł sekcji */
    .step h1 {
        font-size: 26px;
    }

    /* większy tekst pytania */
    .subtitle {
        font-size: 18px;
    }

    /* Back to Home */
    .exit-form {
        display: inline-block;
        margin-top: 18px;
        margin-bottom: 18px;
    }

    /* ukrycie intro po pierwszym kroku */
    .intro-wrapper.hide-on-mobile {
        display: none;
    }

}

/* =========================
   Mobile landscape fix
========================= */

@media (max-width: 900px) and (orientation: landscape) {

    .exit-form {
        display: block;
        width: fit-content;
        margin: 12px 0 18px 0;
    }

    .form-card {
        padding-top: 50px;
    }
    .progress-wrapper {
        z-index: 1;
    }

}
