:root {
    --bg: #f7f9fc;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --text: #1f2937;
    --muted: #5b6472;
    --primary: #1e40af;
    --primary-dark: #1d4ed8;
    --accent: #dbeafe;
    --border: rgba(229, 231, 235, 0.9);
    --success: #0f766e;
    --danger: #b91c1c;
    --shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
    --radius: 20px;
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: light dark;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(30, 64, 175, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(14, 116, 144, 0.08), transparent 24%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
}

.topbar {
    background: linear-gradient(90deg, #0f172a, #111827);
    color: #fff;
    font-size: 14px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    flex-wrap: wrap;
}

header {
    padding: 20px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    font-weight: 700;
    font-size: 20px;
}

.cta-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: 0.22s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--primary);
    color: white;
}

.button-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.18);
}

.button-secondary {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.98), rgba(219, 234, 254, 0.82));
    color: var(--primary);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
    border: 1px solid var(--border);
}

.button-ghost:hover {
    background: rgba(127, 144, 180, 0.12);
}

.theme-toggle {
    min-width: 120px;
}

.hero {
    padding: 64px 0 44px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.doctor-card {
    text-align: center;
}

.doctor-image {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto 20px;
    display: block;
    box-shadow: var(--shadow);
}

.hero-card,
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-card {
    padding: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(32px, 5vw, 52px);
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 22px;
}

p {
    margin: 0 0 16px;
    color: var(--muted);
}

ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.hero-points {
    display: grid;
    gap: 12px;
    margin: 24px 0 28px;
}

.hero-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hero-point strong {
    color: var(--text);
}

.icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex: 0 0 28px;
    margin-top: 2px;
}

.form-card {
    padding: 28px;
}

.trust-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.trust-item {
    padding: 12px 14px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-weight: 500;
}

.logo-frame {
    width: 120px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 120px;
}

.clinic-logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.booking-logo-frame {
    margin-bottom: 6px;
}

.booking-logo-image {
    width: 100%;
    height: 100%;
}

.trust-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.2s ease;
}

.trust-link:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
}

form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 6px;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font: inherit;
    color: var(--text);
    background: #fff;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(30, 64, 175, 0.15);
    border-color: var(--primary);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.small {
    font-size: 13px;
    color: var(--muted);
}

.form-message {
    min-height: 20px;
    margin-top: 12px;
}

.form-message.is-success {
    color: var(--success);
}

.form-message.is-error {
    color: var(--danger);
}

section {
    padding: 36px 0;
}

.section-header {
    max-width: 760px;
    margin-bottom: 28px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    padding: 28px;
}

.booking-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.testimonials-header p {
    max-width: 760px;
}

.testimonial-card {
    display: grid;
    gap: 10px;
}

.testimonial-quote {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 0;
}

.testimonial-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 0;
}

.testimonial-form-card[hidden] {
    display: none !important;
}

.testimonial-form-card {
    display: grid;
    gap: 16px;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 14px;
}

.checkbox-row input {
    width: auto;
    margin-top: 4px;
}

.testimonial-status {
    margin-top: 6px;
}

.highlight {
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

footer {
    padding: 44px 0 64px;
    color: var(--muted);
}

.footer-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.footer-note {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .hero-grid,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 32px;
    }

    .hero-card,
    .form-card,
    .card {
        padding: 24px;
    }

    .header-row {
        align-items: flex-start;
    }

    .cta-inline {
        width: 100%;
    }

    .logo-frame {
        width: 110px;
        height: 26px;
        flex-basis: 110px;
    }
}

:root[data-theme="dark"] {
    --bg: #0b1120;
    --surface: #111827;
    --text: #e5e7eb;
    --muted: #a8b3c5;
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --accent: #1e293b;
    --border: #243041;
    --success: #34d399;
    --danger: #f87171;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}

:root[data-theme="dark"] .topbar {
    background: #030712;
    color: #e5e7eb;
}

:root[data-theme="dark"] header,
:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .footer-card {
    background: var(--surface);
}

:root[data-theme="dark"] .trust-item {
    background: #0f172a;
}

:root[data-theme="dark"] .icon {
    background: #052e1f;
}

:root[data-theme="dark"] .highlight {
    background: linear-gradient(135deg, #0f172a, #111827);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
    background: #0b1220;
    color: var(--text);
}
