/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #3B9B8F;
    --teal-hover: #328377;
    --teal-dark: #2A6F65;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5a;
    --text-light: #7a7a8a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-pill: 50px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--teal);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--teal);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: background 0.2s ease, transform 0.15s ease;
}

.header-cta:hover {
    background: var(--teal-hover);
    transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #e8f0ee 0%, #d4e4df 30%, #b8cfc8 60%, #a3c0b8 100%);
    z-index: 0;
}

/* Decorative shapes to add visual depth */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 155, 143, 0.15) 0%, transparent 70%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 155, 143, 0.1) 0%, transparent 70%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 100px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ===== Hero Text ===== */
.hero-text {
    padding-right: 20px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-title-highlight {
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-medium);
    line-height: 1.5;
    max-width: 420px;
}

/* ===== Quiz Container ===== */
.quiz-container {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 32px 32px;
    box-shadow: var(--shadow-lg);
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

/* ===== Progress Bar ===== */
.quiz-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e8e8ee;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    width: 20%;
    background: var(--teal);
    border-radius: var(--radius) 0 0 0;
    transition: width 0.4s ease;
}

/* ===== Quiz Steps ===== */
.quiz-step {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: fadeIn 0.35s ease;
}

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

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

.quiz-question {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* ===== Quiz Options (Pill Buttons) ===== */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.quiz-option {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--teal);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.quiz-option:hover {
    background: var(--teal-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 155, 143, 0.3);
}

.quiz-option:active {
    transform: translateY(0);
    background: var(--teal-dark);
}

/* ===== Quiz Helper Text ===== */
.quiz-helper {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-top: 18px;
}

/* ===== Quiz Form (Step 5) ===== */
.quiz-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.quiz-input {
    width: 100%;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--off-white);
    border: 2px solid #e8e8ee;
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz-input::placeholder {
    color: var(--text-light);
}

.quiz-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(59, 155, 143, 0.15);
}

.quiz-submit {
    width: 100%;
    padding: 14px 20px;
    margin-top: 4px;
    background: var(--teal);
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.quiz-submit:hover {
    background: var(--teal-hover);
    transform: translateY(-1px);
}

.quiz-submit:active {
    transform: translateY(0);
    background: var(--teal-dark);
}

/* ===== Quiz Done ===== */
.quiz-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    gap: 16px;
    padding: 20px 0;
}

.quiz-done-icon {
    margin-bottom: 4px;
}

.quiz-done-text {
    font-size: 16px;
    color: var(--text-medium);
    max-width: 320px;
    line-height: 1.5;
}

/* ===== Back Button ===== */
.quiz-back {
    display: none;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    padding: 6px 2px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.quiz-back:hover {
    color: var(--text-dark);
}

.quiz-back.visible {
    display: flex;
}

/* ===== Responsive – Tablet ===== */
@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 100px 24px 40px;
        max-width: 560px;
    }

    .hero-text {
        text-align: center;
        padding-right: 0;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        margin: 0 auto;
    }
}

/* ===== Responsive – Mobile ===== */
@media (max-width: 600px) {
    .header-inner {
        padding: 12px 16px;
    }

    .logo-text {
        font-size: 19px;
    }

    .header-cta {
        padding: 8px 18px;
        font-size: 13px;
    }

    .hero-content {
        padding: 80px 16px 32px;
    }

    .hero-title {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .quiz-container {
        padding: 28px 20px 24px;
        min-height: 340px;
    }

    .quiz-question {
        font-size: 19px;
        margin-bottom: 20px;
    }

    .quiz-option {
        padding: 13px 18px;
        font-size: 14px;
    }

    .quiz-input {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ===== Responsive – Small Mobile ===== */
@media (max-width: 380px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .quiz-question {
        font-size: 17px;
    }
}
