/* ==========================================================================
   Dr. Aquello Roberto Bacal — Online Appointment
   Base + landing/FAQ styles
   ========================================================================== */

:root {
    --teal-900: #0E4A50;
    --teal-800: #125C64;
    --teal-700: #17747D;
    --teal-600: #1F8B94;
    --teal-500: #2A9EA7;
    --teal-200: #B9E0E3;
    --teal-100: #E2F3F4;
    --teal-050: #F1F9FA;

    --red-600: #D40000;
    --red-500: #FD0000;
    --red-050: #FFF0F0;

    --zoom: #0E71EB;
    --gcash: #007DFF;

    --grey-500: #98A9AD;
    --grey-600: #7E9296;

    --ink: #0F2E33;
    --body: #435A5F;
    --muted: #6E868B;
    --line: #DCE7E9;
    --line-soft: #EAF1F2;
    --surface: #FFFFFF;
    --canvas: #F3F8F9;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;

    --shadow-xs: 0 1px 2px rgba(15, 46, 51, .06);
    --shadow-sm: 0 1px 3px rgba(15, 46, 51, .07), 0 6px 16px -8px rgba(15, 46, 51, .12);
    --shadow-md: 0 2px 6px rgba(15, 46, 51, .06), 0 18px 40px -20px rgba(15, 46, 51, .28);
    --shadow-lg: 0 30px 60px -28px rgba(15, 46, 51, .34);

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    padding: 0;
    margin: 0;
    background: var(--canvas);
    color: var(--body);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.015em;
    margin: 0;
}

a {
    color: var(--teal-700);
    text-decoration: none;
}

a:hover {
    color: var(--teal-800);
}

img {
    max-width: 100%;
}

.clear-both {
    width: 100%;
    float: none;
    clear: both;
}

.desktop-visible { display: block; }
.mobile-visible { display: none; }

.shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Page frame
   -------------------------------------------------------------------------- */

.main-body {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1100px 520px at 88% -12%, rgba(42, 158, 167, .16), transparent 62%),
        radial-gradient(900px 460px at -8% 8%, rgba(42, 158, 167, .10), transparent 60%),
        var(--canvas);
}

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(140deg, var(--teal-500), var(--teal-800));
    box-shadow: 0 6px 16px -8px rgba(42, 158, 167, .9);
}

.brand-mark svg {
    width: 21px;
    height: 21px;
    display: block;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-sub {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.4;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--body);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.nav-link:hover {
    background: var(--teal-050);
    color: var(--teal-800);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--teal-600);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease;
    box-shadow: 0 8px 18px -12px rgba(31, 139, 148, .95);
}

.nav-cta:hover {
    background: var(--teal-700);
    color: #fff;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    padding: 56px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 8px;
    border-radius: 999px;
    background: var(--teal-100);
    border: 1px solid var(--teal-200);
    color: var(--teal-800);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal-600);
    box-shadow: 0 0 0 3px rgba(42, 158, 167, .22);
}

.hero h1 {
    margin: 18px 0 0;
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.hero h1 .accent {
    background: linear-gradient(100deg, var(--teal-700), var(--teal-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lede {
    margin: 18px 0 0;
    max-width: 46ch;
    font-size: 16px;
    color: var(--body);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
}

.hero-note svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: var(--teal-600);
}

.hero-art {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.hero-art picture,
.hero-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .015em;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background: var(--teal-600);
    cursor: pointer;
    user-select: none;
    transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease;
}

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

.action-button:active {
    transform: translateY(0);
}

.action-button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

#book-appointment {
    background: var(--red-500);
    box-shadow: 0 10px 24px -12px rgba(253, 0, 0, .85);
}

#book-appointment:hover {
    background: var(--red-600);
    box-shadow: 0 16px 30px -14px rgba(253, 0, 0, .9);
}

#appointment-status {
    background: var(--surface);
    color: var(--teal-800);
    border-color: var(--teal-200);
    box-shadow: var(--shadow-sm);
}

#appointment-status:hover {
    background: var(--teal-050);
    border-color: var(--teal-500);
}

#download-zoom,
#gcash-register {
    width: 100%;
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    justify-content: flex-start;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13.5px;
    box-shadow: var(--shadow-xs);
}

#download-zoom:hover,
#gcash-register:hover {
    border-color: var(--teal-200);
    box-shadow: var(--shadow-sm);
}

#download-zoom svg { color: var(--zoom); }
#gcash-register svg { color: var(--gcash); }

/* --------------------------------------------------------------------------
   Announcement
   -------------------------------------------------------------------------- */

/* The notice sits in its own strip between the header and the hero, so a
   patient meets it before the Request Appointment button. */
.announcement-bar {
    padding: 20px 0 0;
}

/* The hero carries less top padding when a notice precedes it. */
.announcement-bar + .hero {
    padding-top: 30px;
}

.announcement-holder {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #F5C2C2;
    border-left: 4px solid var(--red-500);
    border-radius: var(--radius);
    background: var(--red-050);
    color: #9B1414;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    box-shadow: var(--shadow-xs);
}

.announcement-holder::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background-color: var(--red-500);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1 5h2v8h-2V7zm0 10h2v2h-2v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1 5h2v8h-2V7zm0 10h2v2h-2v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.announcement-body {
    min-width: 0;
}

.announcement-label {
    display: block;
    margin-bottom: 1px;
    color: #B23A3A;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.announcement-holder p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Content sections + cards
   -------------------------------------------------------------------------- */

.section {
    padding: 8px 0 56px;
}

.section-head {
    margin-bottom: 22px;
}

.section-head h2 {
    font-size: 22px;
    line-height: 1.25;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card + .card {
    margin-top: 24px;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 26px;
    border-bottom: 1px solid var(--line-soft);
}

.card-head .icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-100);
    color: var(--teal-700);
}

.card-head .icon svg {
    width: 17px;
    height: 17px;
}

.card-head h2,
.card-head h3 {
    font-size: 16.5px;
    line-height: 1.3;
}

.card-head .card-sub {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
}

.card-body {
    padding: 22px 26px 26px;
}

/* Numbered steps */

.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
}

.steps li {
    position: relative;
    counter-increment: step;
    padding: 0 0 22px 48px;
    font-size: 14.5px;
    color: var(--body);
}

.steps li:last-child {
    padding-bottom: 0;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-600);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.steps li::after {
    content: "";
    position: absolute;
    left: 14.5px;
    top: 34px;
    bottom: 8px;
    width: 1px;
    background: var(--line);
}

.steps li:last-child::after {
    display: none;
}

.steps li b,
.steps li strong {
    color: var(--ink);
    font-weight: 700;
}

/* Reminder list */

.reminders {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.reminders li {
    position: relative;
    padding-left: 28px;
    font-size: 14.5px;
    color: var(--body);
}

.reminders li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--teal-100);
    box-shadow: inset 0 0 0 1px var(--teal-200);
}

.reminders li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 11px;
    width: 6px;
    height: 3px;
    border-left: 1.8px solid var(--teal-700);
    border-bottom: 1.8px solid var(--teal-700);
    transform: rotate(-45deg);
}

/* Sidebar */

.sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 24px;
}

.link-stack {
    display: grid;
    gap: 10px;
}

.sidebar-note {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.cta-card {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, var(--teal-700), var(--teal-900));
    color: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow-md);
}

.cta-card h3 {
    color: #fff;
    font-size: 17px;
}

.cta-card p {
    margin: 8px 0 18px;
    font-size: 13.5px;
    line-height: 1.6;
}

.cta-card .action-button {
    width: 100%;
    background: #ffffff;
    color: var(--teal-800);
    border-color: transparent;
    box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .6);
}

.cta-card .action-button:hover {
    background: var(--teal-050);
    color: var(--teal-900);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.site-footer .shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: var(--teal-700);
    font-size: 12.5px;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Legacy helper kept for older markup */
.back-link-holder {
    text-align: right;
}

.back-link-holder a {
    color: var(--teal-700);
    font-weight: 600;
    font-size: 13px;
}

.back-link-holder a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   FAQ page
   -------------------------------------------------------------------------- */

.page-head {
    padding: 44px 0 26px;
}

.page-head h1 {
    font-size: 34px;
    line-height: 1.15;
}

.page-head p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    color: var(--teal-700);
    font-size: 13.5px;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.faqs {
    width: 100%;
    max-width: 860px;
    margin: 0 auto 56px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 8px 30px;
}

.question {
    width: auto;
    clear: none;
    margin: 26px 0 0;
    padding: 0;
    color: var(--ink);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.45;
}

.answer {
    width: auto;
    float: none;
    clear: none;
    text-align: left;
    margin: 8px 0 26px;
    padding: 0 0 26px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--body);
    font-size: 14.5px;
}

.faqs > .answer:last-child {
    border-bottom: none;
}

.answer ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.faq-li {
    clear: none;
    width: auto;
    float: none;
    list-style: disc;
    margin-bottom: 8px;
}

a.faq-anchor {
    color: var(--teal-700);
    font-weight: 600;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   jQuery UI dialog overrides
   -------------------------------------------------------------------------- */

.ui-widget-overlay {
    background: #0F2E33 !important;
    opacity: .55 !important;
}

.ui-dialog {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    padding: 6px !important;
    box-shadow: var(--shadow-lg) !important;
    font-family: var(--font) !important;
    font-size: 14px !important;
}

.ui-dialog .ui-dialog-title {
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.ui-dialog-titlebar.override {
    background: none;
    border: none;
    padding: 14px 16px 6px !important;
}

.ui-dialog-titlebar .ui-dialog-titlebar-close {
    border: none;
    background: transparent;
}

.ui-dialog-content.override {
    padding: 0 1em !important;
    max-height: calc(100vh - 190px) !important;
}

.ui-dialog-buttonpane.override {
    margin-top: 0 !important;
    padding: 6px 0 14px !important;
    text-align: center !important;
    border: none;
    background: transparent;
}

.ui-dialog-buttonpane.override .ui-dialog-buttonset {
    float: none !important;
}

.ui-dialog-buttonpane.override .ui-dialog-buttonset button {
    min-width: 200px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius);
    background: var(--red-500);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .015em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 24px -12px rgba(253, 0, 0, .85);
    transition: background-color .18s ease;
}

.ui-dialog-buttonpane.override .ui-dialog-buttonset button:hover {
    background: var(--red-600);
}

fieldset#patient-form,
fieldset#status-form {
    border: none;
    font-size: 13px;
    padding: 10px 0 0 0;
    margin: 0;
    min-width: 0;
}

/* Two-column field layout so the appointment form fits a laptop screen
   without scrolling. Collapses to one column on narrow viewports. */
.dlg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.dlg-field {
    position: relative;
    min-width: 0;
    margin-bottom: 10px;
}

.dlg-field--full {
    grid-column: 1 / -1;
}

.dlg-field--hidden {
    display: none;
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
}

@media screen and (max-width: 620px) {
    .dlg-grid {
        grid-template-columns: 1fr;
    }
}

#patient-form label,
#status-form label {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
}

.form-intro {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

input[type="text"].ui-widget-content.override,
#payment,
#complain {
    width: 100%;
    padding: 9px 12px;
    margin-top: 0;
    margin-bottom: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input[type="text"].ui-widget-content.override:focus,
#payment:focus,
#complain:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(42, 158, 167, .18);
}

#complain {
    height: 62px;
    resize: none;
}

.calendar-container-holder {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
}

.date-availability {
    background: #ffffff;
    border: 1px solid var(--line);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 8px;
    height: 62px;
    box-shadow: var(--shadow-sm);
}

#date-availability-info {
    display: none;
    text-align: center;
}

#earliest-time,
#num-slots {
    color: var(--red-600);
    font-weight: 700;
}

#set-date,
#cancel-date {
    width: 92px;
    padding: 6px;
    border-radius: var(--radius-sm);
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

#set-date {
    background-color: var(--teal-600);
    margin: 6px auto 4px;
}

#set-date:hover { background-color: var(--teal-700); }

#cancel-date {
    background-color: var(--grey-500);
    margin: 0 auto;
}

#cancel-date:hover { background-color: var(--grey-600); }

#loading-status,
#loading {
    display: none;
    width: 100%;
    text-align: center;
    padding: 100px 0;
}

#success-status,
#success-request,
#pending-status,
#success-2-status,
#payment-details-resent {
    font-size: 13.5px;
    text-align: center;
    display: none;
    padding-top: 20px;
}

#online-meeting-details { display: none; }

/* custom checkbox / radio start */
.container {
    display: inline-block !important;
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    margin-right: 12px;
    margin-top: 4px;
    cursor: pointer;
    font-size: 13px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio {
    position: absolute;
    top: 2px;
    left: 0;
    height: 16px;
    width: 16px;
    border-radius: 4px;
    background-color: #EDF3F4;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background-color .15s ease, box-shadow .15s ease;
}

.container:hover input ~ .radio {
    background-color: var(--teal-100);
}

.container input:checked ~ .radio {
    background-color: var(--teal-600);
    box-shadow: inset 0 0 0 1px var(--teal-600);
}

.radio:after {
    content: "";
    position: absolute;
    display: none;
}

.container input:checked ~ .radio:after {
    display: block;
}

.container .radio:after {
    left: 5px;
    top: 2px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
/* custom checkbox / radio end */

.done-appointment-succes-btn,
.done-appointment-btn {
    display: block;
    width: 120px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    background-color: var(--teal-600);
    font-weight: 700;
    border: none;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: .03em;
    margin: 18px auto 10px;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s ease;
}

.done-appointment-succes-btn:hover,
.done-appointment-btn:hover {
    background-color: var(--teal-700);
}

/* --------------------------------------------------------------------------
   jQuery UI datepicker (appointment dialog + registration date of birth)
   -------------------------------------------------------------------------- */

.ui-datepicker {
    width: 17.5em;
    padding: 8px;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    background: #fff !important;
    box-shadow: var(--shadow-md);
    font-family: var(--font) !important;
    font-size: 13px !important;
}

.ui-datepicker .ui-datepicker-header {
    padding: 6px 0 10px;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.ui-datepicker .ui-datepicker-title {
    display: flex;
    gap: 8px;
    margin: 0 30px;
    line-height: 1.6;
}

.ui-datepicker .ui-datepicker-title select {
    flex: 1 1 auto;
    padding: 5px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    top: 8px;
    width: 26px;
    height: 26px;
    border: 1px solid var(--line) !important;
    border-radius: 7px !important;
    background: #fff !important;
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev { left: 4px; }
.ui-datepicker .ui-datepicker-next { right: 4px; }

.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover {
    top: 8px;
    background: var(--teal-050) !important;
    border-color: var(--teal-200) !important;
}

.ui-datepicker .ui-datepicker-prev-hover { left: 4px; }
.ui-datepicker .ui-datepicker-next-hover { right: 4px; }

/* Replace the jQuery UI icon sprite with a clean CSS chevron */
.ui-datepicker .ui-datepicker-prev .ui-icon,
.ui-datepicker .ui-datepicker-next .ui-icon {
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    margin: -4px 0 0 -4px;
    background: none !important;
    border: solid var(--teal-800);
    border-width: 0 0 1.6px 1.6px;
    text-indent: -9999px;
}

.ui-datepicker .ui-datepicker-prev .ui-icon { transform: rotate(45deg); margin-left: -2px; }
.ui-datepicker .ui-datepicker-next .ui-icon { transform: rotate(-135deg); margin-left: -5px; }

.ui-datepicker th {
    padding: 6px 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ui-datepicker td { padding: 1px; }

.ui-datepicker td a,
.ui-datepicker td span {
    padding: 6px;
    border: none !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: var(--body) !important;
    text-align: center;
    font-weight: 500;
}

.ui-datepicker td a:hover {
    background: var(--teal-050) !important;
    color: var(--teal-800) !important;
}

/* Today — grey, matching the Cancel button. Declared before the selected-date
   rule so that teal wins when today IS the date the patient picked. */
.ui-datepicker td a.ui-state-highlight {
    background: var(--grey-500) !important;
    color: #fff !important;
    font-weight: 700;
}

.ui-datepicker td a.ui-state-highlight:hover {
    background: var(--grey-600) !important;
    color: #fff !important;
}

/* Selected date */
.ui-datepicker td a.ui-state-active {
    background: var(--teal-600) !important;
    color: #fff !important;
    font-weight: 700;
}

.ui-datepicker td a.ui-state-active:hover {
    background: var(--teal-700) !important;
    color: #fff !important;
}

/* The inline appointment calendar opens with today already flagged "active"
   even though the patient has not chosen anything yet, which made today look
   like a selection. Keep today grey until a day is actually clicked;
   footer-script adds .has-selection at that point. */
.calendar-container:not(.has-selection) .ui-datepicker td a.ui-state-active.ui-state-highlight,
.calendar-container:not(.has-selection) .ui-datepicker td a.ui-state-active.ui-state-highlight:hover {
    background: var(--grey-500) !important;
}

.calendar-container:not(.has-selection) .ui-datepicker td a.ui-state-active.ui-state-highlight:hover {
    background: var(--grey-600) !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-art {
        order: -1;
        max-height: 260px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media screen and (max-width: 720px) {
    .shell { padding: 0 18px; }

    .desktop-visible { display: none; }
    .mobile-visible { display: block; }

    .site-header .shell { min-height: 62px; }

    .brand-sub { display: none; }

    .hero { padding: 34px 0 26px; }
    .hero h1 { font-size: 30px; }
    .hero-lede { font-size: 15px; }

    .hero-actions { gap: 10px; }
    .hero-actions .action-button { width: 100%; }

    .section { padding: 0 0 40px; }

    .card-head { padding: 18px 18px; }
    .card-body { padding: 18px 18px 22px; }
    .cta-card { padding: 22px 18px; }

    .steps li { padding-left: 42px; font-size: 14px; }
    .reminders li { font-size: 14px; }

    .faqs { padding: 4px 18px; }
    .page-head { padding: 30px 0 20px; }
    .page-head h1 { font-size: 26px; }

    .announcement-bar { padding-top: 14px; }
    .announcement-bar + .hero { padding-top: 22px; }
    .announcement-holder { padding: 14px 15px; font-size: 13.5px; }

    .site-footer .shell {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------------------
   Compatibility: the profile page still ships its own inline styles written
   against the old content-box sizing. Keep its inputs full-width now that the
   global reset uses border-box.
   -------------------------------------------------------------------------- */

body > .wrapper .login-form-field,
body > .wrapper input[type="text"],
body > .wrapper input[type="password"] {
    width: 100%;
}
