* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #F8FBF8;
    --mint: #E5F4EC;
    --green: #087F68;
    --dark: #173B38;
    --white: #FFFFFF;
    --muted: #647773;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--dark);
}

button, input {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

.topbar {
    min-height: 76px;
    padding: 16px 7%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8efea;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}

.logo span {
    color: var(--green);
}

.back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    text-decoration: none;
}

.back-home svg {
    width: 18px;
}

.container {
    width: min(900px, 92%);
    margin: 45px auto;
}

.intro {
    text-align: center;
    margin-bottom: 35px;
}

.eyebrow {
    color: var(--green);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.intro h1 {
    font-size: clamp(30px, 5vw, 42px);
    margin: 12px 0;
}

.intro p, .subheading {
    color: var(--muted);
    line-height: 1.7;
}

.progress {
    margin: 0 auto 35px;
    max-width: 680px;
}

.progress-line {
    height: 5px;
    background: #dfe9e3;
    border-radius: 20px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    width: 25%;
    background: var(--green);
    transition: width 0.3s ease;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.step-label {
    color: #899792;
    font-size: 12px;
}

.step-label.active {
    color: var(--green);
    font-weight: bold;
}

.step-panel {
    display: none;
    padding: clamp(20px, 4vw, 38px);
    background: var(--white);
    border: 1px solid #e8efea;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(23, 59, 56, 0.06);
}

.step-panel.active {
    display: block;
    animation: fade-up 0.3s ease;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-panel h2 {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 8px;
}

.subheading {
    margin-bottom: 25px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.option-card {
    min-height: 155px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 10px;
    padding: 20px;
    background: white;
    border: 1px solid #dfe9e3;
    border-radius: 14px;
    cursor: pointer;
    color: var(--dark);
    transition: border-color 0.2s, background 0.2s;
}

.option-card svg {
    width: 30px;
    height: 30px;
    color: var(--green);
}

.option-card strong {
    font-size: 16px;
}

.option-card span {
    font-size: 13px;
    color: var(--muted);
}

.option-card:hover,
.option-card.selected {
    background: var(--mint);
    border: 2px solid var(--green);
}

.primary-btn, .secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    border: none;
}

.primary-btn {
    background: var(--green);
    color: white;
}

.primary-btn:hover {
    background: #066b58;
}

.primary-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.primary-btn svg, .secondary-btn svg {
    width: 18px;
    height: 18px;
}

#continue-1 {
    margin-top: 25px;
    width: 100%;
}

label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin: 18px 0 8px;
}

input {
    width: 100%;
    padding: 15px;
    border: 1px solid #d6e2db;
    border-radius: 10px;
    outline: none;
    background: white;
}

input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(8, 127, 104, 0.1);
}

.button-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

.secondary-btn {
    background: var(--mint);
    color: var(--green);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.doctor-card {
    border: 1px solid #e2ebe5;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.doctor-card h3 {
    font-size: 18px;
}

.doctor-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.doctor-card .rating {
    color: #9a6b00;
    font-weight: bold;
}

.doctor-card .primary-btn {
    margin-top: 5px;
}

.notice {
    margin-top: 20px;
    color: var(--muted);
    line-height: 1.6;
}

.detail-card {
    padding: 24px;
    background: var(--mint);
    border-radius: 16px;
}

.detail-card h2 {
    margin-bottom: 12px;
}

.detail-card p {
    margin: 12px 0;
    line-height: 1.6;
}

.demo-note {
    max-width: 650px;
    margin: 24px auto;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

@media (max-width: 600px) {
    .container {
        margin: 28px auto;
    }

    .options-grid, .results-grid {
        grid-template-columns: 1fr;
    }

    .option-card {
        min-height: 125px;
    }

    .steps {
        gap: 5px;
    }

    .step-label {
        font-size: 10px;
    }

    .button-row {
        flex-wrap: wrap;
    }

    .button-row button {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}