:root {
    --ink: #17332f;
    --ink-soft: #48615d;
    --teal: #126f73;
    --teal-dark: #0b5558;
    --teal-pale: #dcefee;
    --coral: #d86545;
    --coral-pale: #f8e7df;
    --leaf: #5d8069;
    --gold: #e1aa3c;
    --paper: #ffffff;
    --mist: #f2f8f7;
    --line: #d8e4e1;
    --danger: #a93d35;
    --shadow: 0 18px 48px rgba(19, 51, 47, 0.12);
    --header-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Fraunces", serif;
    letter-spacing: 0;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(225, 170, 60, 0.7);
    outline-offset: 2px;
}

.app-workspace {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.app-workspace.chat-open {
    grid-template-columns: minmax(0, 1fr) 430px;
}

.site-shell {
    min-height: 100vh;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.site-shell > main {
    flex: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px clamp(20px, 5vw, 76px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(216, 228, 225, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
    min-width: 230px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--teal);
    border: 3px solid var(--teal-pale);
    border-radius: 50%;
    font-size: 18px;
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.05;
}

.brand strong {
    font-family: "Fraunces", serif;
    font-size: 20px;
}

.brand small {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.site-nav a,
.site-nav button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.site-nav a:hover,
.site-nav button:hover {
    background: var(--mist);
}

.site-nav .nav-schedule {
    margin-left: 8px;
    color: white;
    background: var(--teal);
}

.site-nav .nav-schedule:hover {
    background: var(--teal-dark);
}

.site-nav .nav-ai {
    color: var(--coral);
    border: 1px solid rgba(216, 101, 69, 0.35);
}

.dental-hero {
    position: relative;
    min-height: min(720px, calc(100vh - var(--header-height)));
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    background-image: url("https://images.unsplash.com/photo-1606811971618-4486d14f3f99?auto=format&fit=crop&w=2000&q=88");
    background-position: center 42%;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 51, 50, 0.94) 0%, rgba(10, 51, 50, 0.76) 43%, rgba(10, 51, 50, 0.12) 78%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: 88px clamp(24px, 8vw, 130px) 92px;
    animation: hero-enter 650ms ease-out both;
}

@keyframes hero-enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.eyebrow,
.section-kicker,
.summary-step {
    display: block;
    margin-bottom: 14px;
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.dental-hero .eyebrow {
    color: #f6c061;
}

.dental-hero h1 {
    max-width: 650px;
    margin-bottom: 22px;
    font-size: 68px;
    line-height: 0.98;
}

.dental-hero p {
    max-width: 610px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.6;
}

.hero-actions,
.hero-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-details {
    gap: 24px;
    margin-top: 38px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 600;
}

.hero-details span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 19px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.button-primary {
    color: white;
    background: var(--coral);
}

.button-primary:hover:not(:disabled) {
    color: white;
    background: #bc5035;
}

.button-secondary {
    color: var(--teal-dark);
    background: white;
    border-color: var(--line);
}

.button-secondary:hover:not(:disabled) {
    color: var(--teal-dark);
    border-color: var(--teal);
}

.button-danger {
    color: var(--danger);
    background: white;
    border-color: rgba(169, 61, 53, 0.35);
}

.full-width {
    width: 100%;
}

.quick-schedule {
    display: grid;
    grid-template-columns: minmax(250px, 0.7fr) minmax(560px, 1.3fr);
    gap: 48px;
    align-items: center;
    padding: 34px clamp(24px, 7vw, 110px);
    background: white;
    border-bottom: 1px solid var(--line);
}

.quick-schedule h2 {
    margin: 0;
    font-size: 28px;
}

.quick-schedule .section-kicker {
    margin-bottom: 6px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-links a {
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: var(--ink);
    background: var(--mist);
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
}

.quick-links a:hover {
    border-color: var(--teal);
}

.quick-links i {
    color: var(--coral);
    font-size: 21px;
}

.quick-links strong,
.quick-links small {
    display: block;
}

.quick-links small {
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 11px;
}

.section {
    padding: 96px clamp(24px, 7vw, 110px);
}

.section-heading {
    max-width: 730px;
    margin-bottom: 42px;
}

.section-heading h2,
.patient-band h2,
.manage-appointment h2 {
    margin-bottom: 16px;
    font-size: 46px;
    line-height: 1.08;
}

.section-heading p,
.patient-band p,
.manage-appointment p {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.7;
}

.services-section {
    background-color: var(--mist);
    background-image: linear-gradient(rgba(18, 111, 115, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 111, 115, 0.025) 1px, transparent 1px);
    background-size: 24px 24px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.service-card > i {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    margin-bottom: 30px;
    color: var(--teal);
    background: var(--teal-pale);
    border-radius: 50%;
    font-size: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 27px;
}

.service-card p {
    color: var(--ink-soft);
    line-height: 1.6;
}

.service-card a {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.feature-service {
    border-top: 4px solid var(--gold);
}

.urgent-service {
    border-top: 4px solid var(--coral);
}

.urgent-service > i {
    color: var(--coral);
    background: var(--coral-pale);
}

.dentist-section {
    background: white;
}

.split-heading {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 80px;
    align-items: end;
}

.split-heading h2 {
    margin-bottom: 0;
}

.dentist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.dentist-card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.dentist-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    object-position: center 25%;
}

.dentist-card > div {
    padding: 24px;
}

.dentist-card span {
    color: var(--coral);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.dentist-card h3 {
    margin: 8px 0 10px;
    font-size: 27px;
}

.dentist-card p {
    min-height: 76px;
    color: var(--ink-soft);
    line-height: 1.55;
}

.dentist-card small {
    display: block;
    padding-top: 14px;
    color: var(--teal-dark);
    border-top: 1px solid var(--line);
    font-weight: 800;
}

.patient-band {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    padding: 96px clamp(24px, 7vw, 110px);
    background: linear-gradient(115deg, #e8f4ee, #f9fbf7 55%, #fff4ea);
}

.resource-list {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.resource-list > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.resource-list i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--leaf);
    border-radius: 50%;
}

.resource-list strong,
.resource-list small {
    display: block;
}

.resource-list small {
    color: var(--ink-soft);
}

.faq-list {
    align-self: center;
    border-top: 1px solid rgba(72, 97, 93, 0.25);
}

.faq-list details {
    border-bottom: 1px solid rgba(72, 97, 93, 0.25);
}

.faq-list summary {
    padding: 22px 0;
    font-family: "Fraunces", serif;
    font-size: 21px;
    font-weight: 600;
    cursor: pointer;
}

.faq-list p {
    padding: 0 0 22px;
    font-size: 15px;
}

.demo-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    color: #684b12;
    background: #fff5d9;
    border-top: 1px solid #eedca6;
}

.demo-disclaimer i {
    font-size: 22px;
}

.demo-disclaimer strong,
.demo-disclaimer span {
    display: block;
}

.demo-disclaimer span {
    margin-top: 3px;
    font-size: 13px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 34px clamp(24px, 7vw, 110px);
    color: rgba(255, 255, 255, 0.82);
    background: var(--ink);
}

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer strong {
    color: white;
    font-family: "Fraunces", serif;
    font-size: 20px;
}

.site-footer > div > span {
    margin-top: 6px;
    font-size: 12px;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-meta span {
    display: flex;
    gap: 7px;
    margin: 0;
}

.ai-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 950;
    min-height: 52px;
    display: none;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    color: white;
    background: var(--coral);
    border: 0;
    border-radius: 6px;
    box-shadow: var(--shadow);
    font-weight: 800;
    cursor: pointer;
}

.ai-launcher.is-hidden {
    display: none;
}

.ai-backdrop {
    display: none;
}

.ai-assistant {
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    height: 100vh;
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    background: white;
    box-shadow: -18px 0 50px rgba(19, 51, 47, 0.18);
    animation: panel-enter 220ms ease-out both;
}

.chat-open .site-nav > a:not(.nav-schedule) {
    display: none;
}

.chat-open .scheduler-layout,
.chat-open .quick-schedule,
.chat-open .patient-band,
.chat-open .manage-appointment,
.chat-open .schedule-hero,
.chat-open .split-heading {
    grid-template-columns: minmax(0, 1fr);
}

.chat-open .scheduler-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    padding-inline: 24px;
}

.chat-open .booking-summary {
    top: 20px;
}

.chat-open .scheduler-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@keyframes panel-enter {
    from { transform: translateX(24px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.ai-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    color: white;
    background: var(--ink);
}

.ai-assistant-header h2 {
    margin: 5px 0 0;
    font-size: 23px;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #c9e9df;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ai-status span {
    width: 7px;
    height: 7px;
    background: #58c99c;
    border-radius: 50%;
}

.icon-button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    color: inherit;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    cursor: pointer;
}

.ai-notice {
    display: flex;
    gap: 9px;
    padding: 12px 18px;
    color: #6c521c;
    background: #fff6dc;
    border-bottom: 1px solid #eddca9;
    font-size: 12px;
    line-height: 1.45;
}

.ai-messages {
    overflow-y: auto;
    padding: 20px;
    background-color: #f6faf9;
    background-image: linear-gradient(rgba(18, 111, 115, 0.03) 1px, transparent 1px);
    background-size: 100% 28px;
}

.ai-welcome {
    padding: 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.ai-welcome-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: var(--coral);
    background: var(--coral-pale);
    border-radius: 50%;
    font-size: 21px;
}

.ai-welcome h3 {
    margin-bottom: 8px;
    font-size: 24px;
}

.ai-welcome p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
}

.ai-suggestions {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.ai-suggestions button {
    padding: 10px 12px;
    color: var(--teal-dark);
    text-align: left;
    background: var(--teal-pale);
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.ai-suggestions button:hover {
    border-color: var(--teal);
}

.ai-message {
    margin-top: 16px;
}

.ai-message > div {
    width: fit-content;
    max-width: 88%;
    padding: 12px 14px;
    white-space: pre-wrap;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.55;
}

.ai-message.user > div {
    margin-left: auto;
    color: white;
    background: var(--teal);
    border-color: var(--teal);
}

.message-label {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.typing-indicator {
    display: flex;
    gap: 5px;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    background: var(--teal);
    border-radius: 50%;
    animation: typing 900ms infinite alternate;
}

.typing-indicator span:nth-child(2) { animation-delay: 180ms; }
.typing-indicator span:nth-child(3) { animation-delay: 360ms; }

@keyframes typing {
    to { opacity: 0.28; transform: translateY(-3px); }
}

.ai-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 9px;
    padding: 16px;
    background: white;
    border-top: 1px solid var(--line);
}

.ai-composer input {
    min-width: 0;
    height: 44px;
    padding: 0 13px;
    color: var(--ink);
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.ai-composer .send {
    width: 42px;
    height: 42px;
    color: white;
    background: var(--coral);
    border: 0;
}

.schedule-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 70px;
    align-items: end;
    padding: 72px clamp(24px, 7vw, 110px) 48px;
    background: linear-gradient(110deg, var(--teal-pale), #f4faf7 58%, #fff2e9);
    border-bottom: 1px solid var(--line);
}

.schedule-hero > div:first-child {
    max-width: 770px;
}

.schedule-hero h1 {
    margin-bottom: 16px;
    font-size: 56px;
}

.schedule-hero p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.65;
}

.schedule-hero-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 24px;
    border-left: 3px solid var(--gold);
    color: var(--ink-soft);
    font-size: 13px;
}

.schedule-hero-note i {
    color: var(--leaf);
    font-size: 20px;
}

.schedule-hero-note strong,
.schedule-hero-note span {
    display: block;
}

.schedule-hero-note strong {
    margin-bottom: 4px;
    color: var(--ink);
}

.scheduler-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 28px;
    align-items: start;
    padding: 42px clamp(24px, 5vw, 76px) 72px;
    background: #f6faf9;
}

.scheduler-workspace,
.booking-summary {
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.scheduler-workspace {
    overflow: hidden;
}

.scheduler-heading,
.results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.scheduler-heading {
    padding: 24px 26px;
    border-bottom: 1px solid var(--line);
}

.scheduler-heading > div > span,
.results-heading > div > span {
    display: block;
    margin-bottom: 4px;
    color: var(--coral);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.scheduler-heading h2,
.results-heading h2,
.booking-summary h2 {
    margin: 0;
    font-size: 26px;
}

.timezone {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.scheduler-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 22px 26px;
    background: var(--mist);
    border-bottom: 1px solid var(--line);
}

.scheduler-filters label,
.booking-summary label,
.manage-form label {
    min-width: 0;
    display: block;
}

.scheduler-filters label > span,
.booking-summary label > span,
.manage-form label > span {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.scheduler-filters input,
.scheduler-filters select,
.booking-summary input,
.manage-form input {
    width: 100%;
    height: 45px;
    min-width: 0;
    padding: 0 11px;
    color: var(--ink);
    background: white;
    border: 1px solid #bfcfcb;
    border-radius: 5px;
}

.search-button {
    min-width: 145px;
    height: 45px;
}

.availability-area {
    min-height: 410px;
    padding: 26px;
}

.availability-empty {
    min-height: 350px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 30px;
    color: var(--ink-soft);
    text-align: center;
}

.availability-empty i {
    margin-bottom: 18px;
    color: var(--teal);
    font-size: 38px;
}

.availability-empty h3 {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 24px;
}

.availability-empty p {
    max-width: 430px;
    line-height: 1.55;
}

.results-heading {
    margin-bottom: 19px;
}

.results-heading small {
    color: var(--ink-soft);
    font-weight: 700;
}

.slot-day {
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.slot-date {
    padding-top: 7px;
    color: var(--ink-soft);
    text-align: center;
}

.slot-date strong,
.slot-date span {
    display: block;
}

.slot-date strong {
    color: var(--teal-dark);
    font-size: 12px;
    text-transform: uppercase;
}

.slot-date span {
    margin-top: 3px;
    font-family: "Fraunces", serif;
    font-size: 19px;
    font-weight: 600;
}

.slot-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 8px;
}

.slot-button {
    min-height: 57px;
    padding: 9px 11px;
    color: var(--teal-dark);
    text-align: left;
    background: white;
    border: 1px solid #a9cbc8;
    border-radius: 5px;
    cursor: pointer;
}

.slot-button:hover,
.slot-button.selected {
    color: white;
    background: var(--teal);
    border-color: var(--teal);
}

.slot-button strong,
.slot-button span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-button strong {
    font-size: 15px;
}

.slot-button span {
    margin-top: 2px;
    font-size: 10px;
}

.booking-summary {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    min-height: 430px;
    padding: 26px;
}

.summary-placeholder {
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    margin: 25px 0 20px;
    padding: 28px;
    color: var(--ink-soft);
    text-align: center;
    background: var(--mist);
    border: 1px dashed #aac5bf;
    border-radius: 6px;
}

.summary-placeholder i {
    margin-bottom: 14px;
    color: var(--leaf);
    font-size: 32px;
}

.summary-placeholder p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.ai-alternative {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.ai-alternative i {
    color: var(--coral);
    font-size: 19px;
}

.ai-alternative strong,
.ai-alternative span {
    display: block;
}

.ai-alternative span {
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 12px;
}

.selected-appointment {
    margin: 20px 0;
    padding: 15px;
    background: var(--teal-pale);
    border-left: 4px solid var(--teal);
}

.selected-appointment strong,
.selected-appointment span {
    display: block;
}

.selected-appointment span {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 12px;
}

.booking-summary label {
    margin-top: 14px;
}

.booking-summary label small {
    text-transform: none;
}

.phi-warning,
.booking-error {
    margin: 16px 0;
    padding: 11px 12px;
    font-size: 11px;
    line-height: 1.45;
    border-radius: 5px;
}

.phi-warning {
    display: flex;
    gap: 8px;
    color: #6d521b;
    background: #fff6dd;
}

.booking-error {
    color: var(--danger);
    background: #fae9e7;
    border: 1px solid #ecc5c0;
}

.booking-summary dl {
    margin: 22px 0;
}

.booking-summary dl > div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.booking-summary dt {
    color: var(--ink-soft);
    font-size: 11px;
    text-transform: uppercase;
}

.booking-summary dd {
    margin: 0;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
}

.held-badge {
    width: fit-content;
    margin-top: 16px;
    padding: 7px 10px;
    color: #6d521b;
    background: #fff2c7;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
}

.confirm-copy {
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.5;
}

.text-button {
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    color: var(--teal-dark);
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.confirmation-success {
    text-align: center;
}

.success-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    color: white;
    background: var(--leaf);
    border-radius: 50%;
    font-size: 24px;
}

.confirmation-code {
    width: fit-content;
    margin: 16px auto;
    padding: 8px 12px;
    color: var(--teal-dark);
    background: var(--teal-pale);
    border-radius: 5px;
    font-family: monospace;
    font-size: 17px;
    font-weight: 800;
}

.manage-appointment {
    display: grid;
    grid-template-columns: minmax(280px, 0.7fr) minmax(560px, 1.3fr);
    gap: 70px;
    align-items: center;
    padding: 76px clamp(24px, 7vw, 110px);
    border-top: 1px solid var(--line);
}

.manage-appointment h2 {
    font-size: 38px;
}

.manage-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.manage-form .button {
    height: 45px;
}

.manage-message {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    padding: 12px;
    background: var(--mist);
    border-left: 3px solid var(--teal);
    font-size: 13px !important;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    padding: 14px 18px;
    color: white;
    background: var(--danger);
    box-shadow: var(--shadow);
}

#blazor-error-ui .dismiss {
    margin-left: 12px;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .site-nav > a:not(.nav-schedule) {
        display: none;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scheduler-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
        padding-inline: 24px;
    }

    .scheduler-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-button {
        width: 100%;
    }

    .slot-list {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .chat-open .scheduler-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .chat-open .booking-summary {
        position: static;
        grid-row: auto;
        min-height: 0;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 68px;
    }

    .app-workspace.chat-open {
        grid-template-columns: minmax(0, 1fr);
    }

    .ai-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1040;
        display: block;
        background: rgba(13, 38, 35, 0.35);
    }

    .ai-assistant {
        position: fixed;
        right: 0;
        bottom: 0;
        width: min(460px, 100vw);
        height: 100vh;
    }

    .site-header {
        min-height: var(--header-height);
        padding: 9px 16px;
    }

    .brand {
        min-width: 0;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand strong {
        font-size: 17px;
    }

    .brand small {
        font-size: 9px;
    }

    .site-nav .nav-ai {
        display: none;
    }

    .ai-launcher {
        width: 52px;
        height: 52px;
        display: flex;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
        font-size: 20px;
    }

    .ai-launcher span {
        display: none;
    }

    .site-nav .nav-schedule {
        margin: 0;
        padding: 8px 11px;
        font-size: 12px;
    }

    .dental-hero {
        min-height: 630px;
        align-items: end;
        background-position: 62% center;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(10, 51, 50, 0.96) 0%, rgba(10, 51, 50, 0.78) 55%, rgba(10, 51, 50, 0.18) 100%);
    }

    .hero-content {
        padding: 170px 22px 48px;
    }

    .dental-hero h1 {
        font-size: 45px;
    }

    .dental-hero p {
        font-size: 17px;
    }

    .hero-details {
        gap: 12px;
    }

    .quick-schedule,
    .patient-band,
    .manage-appointment,
    .schedule-hero,
    .scheduler-layout,
    .split-heading {
        grid-template-columns: 1fr;
    }

    .quick-schedule {
        gap: 22px;
        padding: 30px 22px;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 68px 22px;
    }

    .section-heading h2,
    .patient-band h2 {
        font-size: 37px;
    }

    .split-heading {
        gap: 12px;
    }

    .dentist-grid {
        grid-template-columns: 1fr;
    }

    .dentist-card {
        display: grid;
        grid-template-columns: 38% 62%;
    }

    .dentist-card img {
        height: 100%;
        aspect-ratio: auto;
    }

    .dentist-card p {
        min-height: 0;
    }

    .patient-band {
        gap: 45px;
        padding: 68px 22px;
    }

    .site-footer {
        display: grid;
    }

    .footer-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .schedule-hero {
        gap: 28px;
        padding: 50px 22px 34px;
    }

    .schedule-hero h1 {
        font-size: 44px;
    }

    .schedule-hero-note {
        padding: 16px 0 0;
        border-top: 3px solid var(--gold);
        border-left: 0;
    }

    .scheduler-layout {
        gap: 18px;
        padding: 22px 14px 50px;
    }

    .booking-summary {
        position: static;
        grid-row: 1;
        min-height: 0;
    }

    .scheduler-workspace {
        grid-row: 2;
    }

    .manage-appointment {
        gap: 30px;
        padding: 58px 22px;
    }
}

@media (max-width: 560px) {
    .site-nav .nav-schedule span {
        display: none;
    }

    .dental-hero h1 {
        font-size: 39px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .dentist-card {
        display: block;
    }

    .dentist-card img {
        aspect-ratio: 4 / 3;
    }

    .demo-disclaimer {
        align-items: flex-start;
    }

    .ai-launcher {
        right: 14px;
        bottom: 14px;
    }

    .ai-assistant {
        width: 100vw;
    }

    .scheduler-filters,
    .manage-form {
        grid-template-columns: 1fr;
    }

    .scheduler-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .availability-area {
        padding: 18px;
    }

    .slot-day {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .slot-date {
        display: flex;
        align-items: baseline;
        gap: 6px;
        text-align: left;
    }

    .slot-list {
        grid-template-columns: 1fr 1fr;
    }

    .slot-button span {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}