:root {
    --bg-1: #f4f7fb;
    --bg-2: #e6edf5;
    --ink: #1c2633;
    --muted: #5c6674;
    --accent: #ffbe3d;
    --accent-dark: #e59b0b;
    --card: #ffffff;
    --line: #d9e2ee;
    --success: #1f9d55;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Montserrat", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(1200px 600px at 10% -10%, #fff2d7 0%, rgba(255, 242, 215, 0) 60%),
        radial-gradient(900px 500px at 100% 10%, #d9e6f5 0%, rgba(217, 230, 245, 0) 55%),
        linear-gradient(150deg, var(--bg-1), var(--bg-2));
}

.bg-shape {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.25;
}

.bg-shape-1 {
    top: -120px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: #ffb84f;
}

.bg-shape-2 {
    right: -120px;
    bottom: -80px;
    width: 360px;
    height: 360px;
    background: #6ba8e5;
}

.site-wrap {
    max-width: 1460px;
}

.hero-panel,
.quiz-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
    box-shadow: 0 25px 70px rgba(29, 36, 49, 0.15);
    overflow: hidden;
    animation: fade-up 0.65s ease both;
}

.hero-panel {
    display: flex;
    flex-direction: column;
}

.hero-image-wrap {
    position: relative;
    min-height: 270px;
    max-height: 400px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay-text {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.9rem;
    padding: 0.8rem 1rem;
    max-width: min(90%, 440px);
}

.hero-overlay-text span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.9;
}

.hero-overlay-text strong {
    font-size: 1.03rem;
    font-weight: 700;
}

.hero-content {
    padding: 1.25rem 1.1rem 1.2rem;
}

.hero-content h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    line-height: 1.05;
    margin-bottom: 0.8rem;
}

.hero-content .lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.badge-chip {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #edf2f8;
    border: 1px solid #d9e3ef;
    font-size: 0.83rem;
    font-weight: 600;
}

.reviews h2 {
    font-size: 1.04rem;
    margin-bottom: 0.9rem;
}

.review-list {
    display: grid;
    gap: 0.72rem;
}

.review-card {
    border: 1px solid var(--line);
    background: #f9fbff;
    border-radius: 0.95rem;
    padding: 0.9rem;
}

.review-card p {
    margin: 0;
    color: #2f3a49;
    font-size: 0.9rem;
}

.review-card span {
    display: block;
    margin-top: 0.45rem;
    color: #607184;
    font-size: 0.78rem;
    font-weight: 600;
}

.quiz-panel {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
}

.quiz-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6f7f92;
}

.quiz-head h2 {
    margin-top: 0.35rem;
    margin-bottom: 1rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.1;
}

.progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress {
    background: #dce6f3;
    height: 0.65rem;
    border-radius: 999px;
    flex: 1;
}

.progress-bar {
    background: linear-gradient(90deg, #ffca63, #f8ac25);
    border-radius: 999px;
    transition: width 0.25s ease;
}

#quizProgressText {
    color: #536476;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.86rem;
}

.quiz-step {
    display: none;
    animation: fade-up 0.3s ease both;
}

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

.quiz-step h3 {
    font-size: 1.18rem;
    margin-bottom: 0.95rem;
}

.step-note {
    color: #647285;
    margin-bottom: 1rem;
}

.option-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 1fr;
}

.quiz-option {
    border: 1px solid #cad7e8;
    background: #fff;
    color: #223140;
    border-radius: 0.92rem;
    padding: 0.82rem 0.9rem;
    text-align: left;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quiz-option:hover {
    border-color: #8faed3;
    transform: translateY(-1px);
}

.quiz-option.active {
    border-color: #f3a40a;
    box-shadow: 0 0 0 3px rgba(243, 164, 10, 0.2);
    background: #fff9ee;
}

.form-control,
.form-control:focus {
    border-radius: 0.85rem;
}

.form-control:focus {
    border-color: #7f9cc3;
    box-shadow: 0 0 0 0.2rem rgba(127, 156, 195, 0.25);
}

.hp-field {
    position: absolute;
    left: -5000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.btn {
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.63rem 1rem;
}

.btn-warning {
    background: var(--accent);
    border-color: var(--accent);
    color: #2f2100;
}

.btn-warning:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #2f2100;
}

.final-box {
    border: 1px solid #f0d8a1;
    border-radius: 0.95rem;
    background: #fff9ea;
    padding: 0.85rem;
}

.final-box ul {
    margin: 0;
    padding-left: 1.1rem;
}

.quiz-footer small {
    color: #6d7888;
    line-height: 1.35;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .quiz-panel {
        padding: 1.6rem;
    }

    .hero-content {
        padding: 1.4rem 1.4rem 1.35rem;
    }

    .option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-overlay-text {
        left: 1.3rem;
        bottom: 1.3rem;
    }
}

@media (max-width: 991px) {
    .hero-image-wrap {
        max-height: 300px;
    }
}

@media (max-width: 575px) {
    .site-wrap {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .quiz-panel,
    .hero-panel {
        border-radius: 1.1rem;
    }

    .hero-overlay-text {
        left: 0.8rem;
        bottom: 0.8rem;
        padding: 0.65rem 0.75rem;
    }

    .hero-overlay-text strong {
        font-size: 0.92rem;
    }

    .step-actions .btn {
        flex: 1;
    }
}
