:root {
    --vezdoc-navy: #011f4b;
    --vezdoc-yellow: #fcd917;
    --vezdoc-soft: #f5f8ff;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: anywhere;
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

.page-kicker,
.section-kicker {
    color: var(--vezdoc-navy);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.page-title {
    color: var(--vezdoc-navy);
    font-size: clamp(1.85rem, 3vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.page-title.compact {
    font-size: clamp(1.65rem, 2.35vw, 2.25rem);
}

.page-lead,
.section-lead {
    color: #475569;
    font-size: clamp(0.9rem, 0.98vw, 1rem);
    line-height: 1.7;
}

.card-title {
    color: var(--vezdoc-navy);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
}

.card-copy {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.65;
}

.form-step-title,
.sidebar-title {
    color: var(--vezdoc-navy);
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    font-weight: 900;
    line-height: 1.3;
}


.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    background: var(--vezdoc-yellow);
    border-radius: 999px;
    bottom: 0;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s ease;
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--vezdoc-navy);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.input-shell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    color: #0f172a;
    min-height: 54px;
    outline: none;
    padding: 0 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.input-shell:focus {
    border-color: var(--vezdoc-navy);
    box-shadow: 0 0 0 4px rgba(1, 31, 75, 0.08);
}

.btn-primary {
    align-items: center;
    background: var(--vezdoc-yellow);
    border-radius: 1rem;
    color: var(--vezdoc-navy);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(252, 217, 23, 0.22);
}

.btn-outline {
    align-items: center;
    border: 1px solid rgba(1, 31, 75, 0.18);
    border-radius: 1rem;
    color: var(--vezdoc-navy);
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 800;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    background: var(--vezdoc-navy);
    color: #fff;
}

.section-title {
    color: var(--vezdoc-navy);
    font-size: clamp(1.35rem, 1.9vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -0.018em;
    line-height: 1.22;
    margin-top: 0.35rem;
}

.trust-card,
.treatment-card,
.doctor-card {
    position: relative;
    overflow: hidden;
}

.trust-card::before,
.treatment-card::before {
    background: linear-gradient(135deg, rgba(252, 217, 23, 0.35), rgba(1, 31, 75, 0.08));
    border-radius: 999px;
    content: "";
    height: 96px;
    position: absolute;
    right: -42px;
    top: -42px;
    width: 96px;
}

.treatment-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 1.5rem;
    min-height: 160px;
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.treatment-card.compact {
    min-height: unset;
}

.treatment-card:hover {
    border-color: rgba(1, 31, 75, 0.22);
    box-shadow: 0 18px 45px rgba(1, 31, 75, 0.10);
    transform: translateY(-3px);
}

.suggestions-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    left: 0;
    max-height: 360px;
    overflow: auto;
    padding: 0.5rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 45;
}

.suggestion-item {
    align-items: center;
    border-radius: 1rem;
    color: #0f172a;
    display: flex;
    gap: 0.75rem;
    padding: 0.8rem;
    text-align: left;
    transition: background 0.15s ease;
    width: 100%;
}

.suggestion-item:hover,
.suggestion-item:focus {
    background: #f8fafc;
}

.suggestion-icon {
    align-items: center;
    background: rgba(252, 217, 23, 0.28);
    border-radius: 999px;
    color: var(--vezdoc-navy);
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.doctor-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--vezdoc-navy), #06387d);
    border: 4px solid #fff;
    border-radius: 1.5rem;
    box-shadow: 0 14px 34px rgba(1, 31, 75, 0.18);
    color: var(--vezdoc-yellow);
    display: flex;
    font-size: 1.1rem;
    font-weight: 900;
    height: 82px;
    justify-content: center;
    width: 82px;
}

.doctor-avatar.large {
    border-radius: 2rem;
    font-size: 2rem;
    height: 136px;
    width: 136px;
}

.social-link {
    align-items: center;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    width: 42px;
}

.social-link:hover {
    background: var(--vezdoc-yellow);
    color: var(--vezdoc-navy);
}

.async-status {
    background: #fff;
    border: 1px dashed rgba(1, 31, 75, 0.24);
    border-radius: 1.25rem;
    color: var(--vezdoc-navy);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 1rem;
}

.async-status::before {
    animation: spin 0.85s linear infinite;
    border: 2px solid rgba(1, 31, 75, 0.2);
    border-top-color: var(--vezdoc-navy);
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 18px;
    margin-right: 0.5rem;
    vertical-align: -4px;
    width: 18px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.stat-box,
.info-panel {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 1.25rem;
    padding: 1rem;
}

.stat-box span {
    color: #64748b;
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
}

.stat-box strong {
    color: var(--vezdoc-navy);
    display: block;
    font-size: 1rem;
    margin-top: 0.2rem;
}

.info-panel h2,
.info-panel h3 {
    color: var(--vezdoc-navy);
    font-size: 1rem;
    font-weight: 900;
}

.info-panel p {
    color: #475569;
    line-height: 1.65;
    margin-top: 0.75rem;
}

.profile-section-card,
.summary-panel {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 2rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
}

.profile-service-card {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 1.25rem;
    color: var(--vezdoc-navy);
    display: flex;
    font-weight: 800;
    padding: 1rem 1.1rem;
}

.profile-clinic-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 1.5rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    padding: 1.1rem;
}

.summary-panel {
    height: fit-content;
}

.summary-metric {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 1.25rem;
    padding: 0.9rem 1rem;
}

.summary-metric span {
    color: #64748b;
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
}

.summary-metric strong {
    color: var(--vezdoc-navy);
    display: block;
    font-size: 1rem;
    margin-top: 0.2rem;
}

.pill {
    background: #eef2ff;
    border-radius: 999px;
    color: var(--vezdoc-navy);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.5rem 0.75rem;
}

.pill.yellow {
    background: rgba(252, 217, 23, 0.25);
}

.form-label {
    color: var(--vezdoc-navy);
    display: block;
    font-size: 0.875rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.field-error {
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 700;
    min-height: 1.15rem;
    padding-top: 0.35rem;
}

.prose-policy {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.85;
    white-space: normal;
}

.mobile-menu:not(.hidden) {
    animation: slideDown 0.2s ease;
}

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

@media (max-width: 640px) {
    .hero-search-form {
        gap: 0.75rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-title.compact {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .doctor-card {
        padding: 1rem;
    }

    .doctor-avatar {
        border-radius: 1.2rem;
        height: 68px;
        width: 68px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
}

.bg-hero-gradient {
    background:
        radial-gradient(circle at 16% 18%, rgba(252, 217, 23, 0.20), transparent 23%),
        radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(112deg, #785543 0%, #43265f 48%, #080264 100%);
}

.hero-minimal .suggestions-panel {
    text-align: left;
}

.hero-search-shell {
    position: relative;
    z-index: 20;
}

.hero-input {
    border-color: transparent;
    border-radius: 0.9rem;
    min-width: 0;
}

.trust-icon svg,
.about-card svg {
    display: block;
}

.doctor-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.doctor-card p,
.doctor-card a,
.doctor-card span {
    overflow-wrap: anywhere;
}

.about-visual {
    min-width: 0;
}

@media (max-width: 1023px) {
    .hero-minimal {
        padding-top: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-minimal > div {
        border-radius: 1.25rem;
        padding: 1.25rem;
    }

    .hero-search-shell {
        border-radius: 1.1rem;
    }

    .hero-input,
    .btn-primary {
        min-height: 50px;
    }

    .doctor-card > .flex {
        align-items: flex-start;
    }

    .doctor-card .doctor-avatar {
        height: 58px;
        width: 58px;
    }

    .doctor-card [class*="grid-cols-3"] {
        gap: 0.65rem;
        font-size: 0.8rem;
    }
}

/* Appointment booking page */
.appointment-step-icon {
    align-items: center;
    background: var(--vezdoc-yellow);
    border-radius: 0.9rem;
    color: var(--vezdoc-navy);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.85rem;
    font-weight: 900;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.appointment-date-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointment-date-option {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    color: #334155;
    min-height: 6.5rem;
    padding: 0.8rem 0.5rem;
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.appointment-date-option:hover {
    border-color: var(--vezdoc-navy);
    box-shadow: 0 10px 24px rgba(1, 31, 75, 0.08);
    transform: translateY(-1px);
}

.appointment-date-option.is-selected {
    background: var(--vezdoc-navy);
    border-color: var(--vezdoc-navy);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(1, 31, 75, 0.18);
}

.appointment-date-option.is-selected span:last-child,
.appointment-date-option.is-selected span:first-child {
    color: rgba(255, 255, 255, 0.75);
}

.appointment-time-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointment-time-option {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.95rem;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    min-height: 3rem;
    padding: 0.7rem 0.4rem;
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.appointment-time-option:hover:not(.is-disabled) {
    border-color: var(--vezdoc-navy);
    box-shadow: 0 10px 24px rgba(1, 31, 75, 0.08);
    transform: translateY(-1px);
}

.appointment-time-option.is-selected {
    background: var(--vezdoc-yellow);
    border-color: var(--vezdoc-yellow);
    color: var(--vezdoc-navy);
    box-shadow: 0 12px 24px rgba(252, 217, 23, 0.24);
}

.appointment-time-option.is-disabled,
.appointment-time-option:disabled {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
    text-decoration: line-through;
}

.booking-summary-row {
    align-items: flex-start;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.booking-summary-row:last-child {
    border-bottom: 0;
}

.booking-summary-row span {
    color: #64748b;
    flex: 0 0 auto;
    font-weight: 600;
}

.booking-summary-row strong {
    color: var(--vezdoc-navy);
    font-weight: 800;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

@media (min-width: 520px) {
    .appointment-date-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .appointment-time-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .appointment-date-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .appointment-date-option {
        min-height: 5.8rem;
    }

    .booking-summary-row {
        display: block;
    }

    .booking-summary-row strong {
        display: block;
        margin-top: 0.2rem;
        text-align: left;
    }
}

/* Latest UX refinements */
.hero-search-shell .input-shell {
    border-color: #dbe4f0;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.hero-search-shell .search-input {
    font-weight: 600;
}

.hero-search-shell .search-input::placeholder {
    color: #64748b;
    opacity: 0.85;
}

.hero-search-shell .city-select {
    font-weight: 800;
}

.treatment-page-card.hidden {
    display: none !important;
}

.treatment-page-card {
    min-height: 210px;
}

@media (max-width: 640px) {
    .hero-search-shell {
        padding: 0.8rem;
    }

    .hero-search-shell .btn-primary {
        width: 100%;
    }

    .treatment-page-card {
        min-height: 180px;
    }
}
