/* === BIẾN MÀU SẮC & THIẾT LẬP CHUNG === */
:root {
    --Mediall-dark: #131A22;
    --Mediall-nav: #232F3E;
    --primary-text: #002F36;
    --secondary-text: #4F6D71;
    --btn-yellow: #FFD814;
    --btn-yellow-hover: #F7CA00;
    --bg-mint: #E1F4F0;
    --bg-light-gray: #F8F9FA;
    --accent-teal: #008296;
    --border-color: #D5D9D9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--primary-text);
    background-color: var(--bg-light-gray);
    line-height: 1.5;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.btn {
    background-color: var(--btn-yellow);
    color: #0f1111;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--btn-yellow-hover);
    text-decoration: none;
}

.compare-options-trigger {
    background: transparent;
    border: 0;
    color: var(--accent-teal);
    cursor: pointer;
    display: block;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 0;
}

.compare-options-trigger:hover {
    text-decoration: underline;
}

.compare-options-backdrop {
    padding: 28px 14px;
}

.compare-options-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 31, 37, .35);
    max-height: min(760px, calc(100vh - 56px));
    max-width: 760px;
    overflow-y: auto;
    position: relative;
    width: 100%;
}

.compare-options-close {
    align-items: center;
    background: #edf3f2;
    border: 0;
    border-radius: 50%;
    color: #214249;
    cursor: pointer;
    display: flex;
    font-size: 25px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 38px;
    z-index: 2;
}

.compare-options-close:hover {
    background: #dcebe8;
}

.compare-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 28px;
}

.compare-option-column {
    color: #263746;
    padding: 24px 30px 28px;
}

.compare-option-membership {
    background: #f5f2ed;
}

.compare-option-pay-per-visit {
    background: #f1f8f5;
}

.compare-option-column h3 {
    font-size: 22px;
    margin: 0 0 12px;
}

.compare-option-column>strong {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
}

.compare-option-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.compare-option-column li {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: 14px;
    padding-left: 12px;
    position: relative;
}

.compare-option-column li::before {
    content: "•";
    left: 0;
    position: absolute;
}

.compare-options-footnote {
    color: #263746;
    font-size: 13px;
    font-style: italic;
    font-weight: 750;
    margin: 0;
    padding: 20px 30px 24px;
}

.insurance-section {
    background: #f1f8f5;
    padding: 50px 0 64px;
}

.insurance-section-content {
    align-items: flex-start;
    display: grid;
    gap: 24px;
    grid-template-columns: 54px minmax(0, 1fr);
    margin: 0 auto;
    max-width: 1020px;
}

.insurance-section-icon {
    color: #002f36;
    margin-top: 4px;
}

.insurance-section-icon svg {
    fill: none;
    height: 48px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 48px;
}

.insurance-section-icon circle {
    fill: #14b8a6;
    stroke: #14b8a6;
}

.insurance-section-icon .insurance-check {
    stroke: #fff;
    stroke-width: 2.5;
}

.insurance-section-content h2 {
    color: #172f3d;
    font-size: 28px;
    line-height: 1.25;
    margin: 0 0 4px;
}

.insurance-section-content p {
    color: #172f3d;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
    margin: 0 0 14px;
    max-width: 900px;
}

.insurance-section-content a {
    color: #007784;
    font-size: 14px;
    font-weight: 750;
}

.membership-benefits-banner {
    background: #fff;
    border-bottom: 1px solid #edf0f0;
    border-top: 1px solid #edf0f0;
    padding: 18px 0;
}

.membership-benefits-banner p {
    color: #172f3d;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.membership-benefits-banner a {
    color: #007784;
    font-weight: 800;
    white-space: nowrap;
}

.membership-benefits-banner a:hover {
    text-decoration: underline;
}

@media (max-width: 620px) {
    .compare-options-backdrop {
        align-items: flex-start;
        padding: 12px 8px;
    }

    .compare-options-modal {
        max-height: calc(100vh - 24px);
    }

    .compare-options-grid {
        grid-template-columns: 1fr 1fr;
    }

    .compare-option-column {
        padding: 20px 14px;
    }

    .compare-option-column h3 {
        font-size: 18px;
    }

    .compare-option-column li {
        font-size: 12px;
        padding-left: 10px;
    }

    .compare-options-footnote {
        padding: 18px;
    }

    .insurance-section {
        padding: 36px 0 44px;
    }

    .insurance-section-content {
        gap: 14px;
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .insurance-section-icon svg {
        height: 38px;
        width: 38px;
    }

    .insurance-section-content h2 {
        font-size: 21px;
    }

    .insurance-section-content p {
        font-size: 13px;
    }

    .membership-benefits-banner {
        padding: 15px 0;
    }

    .membership-benefits-banner p {
        font-size: 12px;
        line-height: 1.55;
    }
}

#health-topics {
    scroll-margin-top: 20px;
}

#membership-options {
    scroll-margin-top: 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-text);
}

.badge {
    display: inline-block;
    background-color: #D1EAE5;
    color: var(--primary-text);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* === HEADER === */
header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.sub-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.sub-nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sub-nav-logo {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
}

.sub-nav-logo:hover {
    text-decoration: none;
}

.sub-nav-logo img {
    display: block;
    height: 23px;
    width: 131px;
}

.promo-banner {
    background-color: #D1EAE5;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    color: var(--primary-text);
}

.account-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.account-menu {
    position: relative;
}

.notification-menu {
    position: relative;
}

.notification-toggle {
    align-items: center;
    background: #f4f7f7;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--primary-text);
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 38px;
}

.notification-toggle:hover,
.consultation-cart-toggle:hover,
.header-chat-toggle:hover,
.notification-menu.active .notification-toggle {
    background: #e7f5f2;
    border-color: #b8ddd5;
}

.consultation-cart-toggle {
    text-decoration: none;
}

.header-chat-toggle {
    text-decoration: none;
}

.header-chat-menu {
    position: relative;
}

.header-chat-menu.active .header-chat-toggle {
    background: #d1eae5;
    border-color: #b8ddd5;
    color: #007784;
}

.header-chat-count {
    background: #e63b43;
}

.header-chat-panel {
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0, 47, 54, .2);
    display: none;
    overflow: hidden;
    position: absolute;
    right: -92px;
    top: calc(100% + 12px);
    width: min(410px, calc(100vw - 20px));
    z-index: 40;
}

.header-chat-menu.active .header-chat-panel {
    display: block;
}

.header-chat-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 18px 18px 10px;
}

.header-chat-heading strong {
    color: #002f36;
    font-size: 24px;
    line-height: 1.15;
}

.header-chat-heading a {
    align-items: center;
    background: #f4f7f7;
    border-radius: 50%;
    color: #007784;
    display: flex;
    font-size: 20px;
    height: 34px;
    justify-content: center;
    text-decoration: none;
    width: 34px;
}

.header-chat-heading a:hover {
    background: #e1f4f0;
}

.header-chat-search {
    align-items: center;
    background: #f4f7f7;
    border-radius: 22px;
    display: flex;
    gap: 8px;
    margin: 0 14px 10px;
    padding: 0 13px;
}

.header-chat-search span {
    color: #4f6d71;
    font-size: 23px;
    transform: rotate(-15deg);
}

.header-chat-search input {
    background: transparent;
    border: 0;
    color: #002f36;
    height: 40px;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.header-chat-search input::placeholder {
    color: #688185;
}

.header-chat-filters {
    display: flex;
    gap: 6px;
    padding: 0 14px 9px;
}

.header-chat-filters button {
    background: transparent;
    border: 0;
    border-radius: 18px;
    color: #002f36;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
}

.header-chat-filters button:hover {
    background: #eef7f5;
}

.header-chat-filters button.active {
    background: #d1eae5;
    color: #006d78;
}

.header-chat-list {
    max-height: min(460px, calc(100vh - 250px));
    overflow-y: auto;
    padding: 0 8px 8px;
    scrollbar-color: #a8b8ba transparent;
    scrollbar-width: thin;
}

.header-chat-item {
    align-items: center;
    border-radius: 9px;
    color: #002f36;
    display: grid;
    gap: 11px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 70px;
    padding: 7px;
    text-decoration: none;
}

.header-chat-item:hover {
    background: #eef7f5;
    text-decoration: none;
}

.header-chat-avatar {
    align-items: center;
    background: linear-gradient(135deg, #008296, #56b5a5);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 17px;
    font-weight: 800;
    height: 52px;
    justify-content: center;
    overflow: hidden;
    width: 52px;
}

.header-chat-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.header-chat-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header-chat-copy strong,
.header-chat-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-chat-copy strong {
    color: #002f36;
    font-size: 14px;
    margin-bottom: 4px;
}

.header-chat-copy span {
    color: #4f6d71;
    font-size: 12px;
}

.header-chat-unread {
    background: #008296;
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

.header-chat-empty {
    color: #4f6d71;
    margin: 0;
    padding: 36px 16px;
    text-align: center;
}

.header-chat-footer {
    border-top: 1px solid #e2e7e7;
    color: #007784;
    display: block;
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    text-align: center;
    text-decoration: none;
}

.header-chat-footer:hover {
    background: #f4f7f7;
    text-decoration: none;
}

@media (max-width: 600px) {
    .header-chat-panel {
        position: fixed;
        right: 8px;
        top: 62px;
        width: calc(100vw - 16px);
    }
}

.consultation-cart-count {
    background: #007f8c;
}

.notification-toggle svg {
    fill: none;
    height: 21px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 21px;
}

.notification-count {
    align-items: center;
    background: #e63b43;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 9px;
    font-weight: 800;
    height: 18px;
    justify-content: center;
    min-width: 18px;
    padding: 0 3px;
    position: absolute;
    right: -4px;
    top: -5px;
}

.notification-panel {
    background: #fff;
    border: 1px solid #e2e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0, 47, 54, 0.17);
    display: none;
    max-height: min(520px, calc(100vh - 90px));
    min-width: 390px;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(420px, calc(100vw - 24px));
    z-index: 30;
}

.notification-menu.active .notification-panel {
    display: block;
}

.notification-panel-heading {
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    padding: 16px 18px;
}

.notification-panel-heading strong {
    font-size: 17px;
}

.notification-panel-heading span,
.notification-item time {
    color: var(--secondary-text);
    font-size: 11px;
}

.notification-list {
    max-height: 440px;
    overflow-y: auto;
}

.notification-item {
    align-items: flex-start;
    border-bottom: 1px solid #edf0f1;
    display: grid;
    gap: 11px;
    grid-template-columns: 10px 1fr;
    padding: 15px 18px;
    text-decoration: none;
}

.notification-item,
.notification-item:visited {
    color: var(--primary-text);
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item:hover {
    background: #f7faf9;
}

.notification-status-dot {
    background: #e6a000;
    border-radius: 50%;
    height: 9px;
    margin-top: 5px;
    width: 9px;
}

.notification-item.accepted .notification-status-dot {
    background: #2778db;
}

.notification-item.paid .notification-status-dot {
    background: #16a34a;
}

.notification-item.payment .notification-status-dot {
    background: #e6a000;
}

.notification-item.rejected .notification-status-dot {
    background: #d94848;
}

.notification-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.notification-item p {
    color: var(--secondary-text);
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 5px;
}

.notification-empty {
    color: var(--secondary-text);
    margin: 0;
    padding: 30px 20px;
    text-align: center;
}

@media (max-width: 560px) {
    .notification-panel {
        min-width: 0;
        position: fixed;
        right: 12px;
        top: 62px;
    }
}

.account-summary {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    margin-left: 4px;
    padding: 0;
}

.account-avatar {
    align-items: center;
    background: var(--accent-teal);
    border-radius: 50%;
    color: white;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    text-transform: uppercase;
    width: 30px;
}

.account-avatar-image {
    object-fit: cover;
}

.account-name {
    color: var(--primary-text);
    font-weight: 700;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.verified-badge {
    align-items: center;
    background: #16a34a;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    height: 20px;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    width: 20px;
}

.verified-badge-small {
    font-size: 9px;
    height: 16px;
    margin-left: -3px;
    width: 16px;
}

.member-badge {
    align-items: center;
    background: #f5b800;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    height: 20px;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    width: 20px;
}

.member-badge-small {
    font-size: 9px;
    height: 16px;
    margin-left: -3px;
    width: 16px;
}

.profile-display-name {
    align-items: center;
    display: flex;
    gap: 8px;
}

.account-dropdown {
    background: white;
    border: 1px solid #e2e7eb;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(0, 47, 54, 0.14);
    display: none;
    min-width: 190px;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 20;
}

.account-menu.active .account-dropdown {
    display: grid;
    gap: 4px;
}

.account-dropdown a {
    border-radius: 6px;
    color: var(--primary-text);
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 12px;
}

.account-dropdown a:hover {
    background: #f3f7f8;
    text-decoration: none;
}

.account-dropdown span {
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 500;
}

.account-dropdown .disabled-link {
    cursor: default;
}

/* === PROFILE PAGE === */
.medical-records-page {
    background: #f3f7f6;
}

.medical-records-main {
    margin: 0 auto;
    max-width: 980px;
    padding: 54px 28px 80px;
}

.medical-records-heading span {
    color: var(--accent-teal);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.medical-records-heading h1 {
    font-size: 32px;
    margin: 7px 0 8px;
}

.medical-records-heading p {
    color: var(--secondary-text);
    margin: 0;
}

.medical-record-list {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.medical-record-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: grid;
    gap: 22px;
    grid-template-columns: 78px 1fr;
    padding: 22px;
}

.medical-record-date {
    align-items: center;
    background: #eaf6f3;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    height: 76px;
    justify-content: center;
}

.medical-record-date strong {
    font-size: 25px;
}

.medical-record-date span {
    color: var(--secondary-text);
    font-size: 11px;
}

.medical-record-title {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.medical-record-title h2 {
    font-size: 18px;
    margin: 0 0 5px;
}

.medical-record-title p {
    color: var(--secondary-text);
    font-size: 12px;
    margin: 0;
}

.medical-record-status {
    background: #e8f7ee;
    border-radius: 999px;
    color: #168344;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
}

.medical-record-details {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
}

.medical-record-details div {
    border-top: 1px solid #edf0f1;
    padding-top: 12px;
}

.medical-record-details dt {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.medical-record-details dd {
    color: var(--secondary-text);
    line-height: 1.55;
    margin: 0;
}

.medical-record-pending {
    background: #f7f9fa;
    border-radius: 8px;
    color: var(--secondary-text);
    margin: 18px 0 0;
    padding: 13px;
}

.medical-record-empty {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 48px 24px;
    text-align: center;
}

.medical-record-empty h2 {
    margin-top: 0;
}

.medical-record-empty p {
    color: var(--secondary-text);
    margin-bottom: 22px;
}

.profile-access-request-list {
    display: grid;
    gap: 12px;
}

.profile-access-request-card {
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: grid;
    gap: 14px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding: 16px;
}

.profile-access-request-avatar {
    align-items: center;
    background: #e2f4f1;
    border-radius: 50%;
    color: #007784;
    display: flex;
    font-size: 17px;
    font-weight: 800;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.profile-access-request-info strong,
.profile-access-request-info small {
    display: block;
}

.profile-access-request-info small {
    color: var(--secondary-text);
    font-size: 11px;
    margin: 4px 0 7px;
}

.profile-access-status {
    border-radius: 999px;
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 8px;
}

.profile-access-status.pending {
    background: #fff4cc;
    color: #865f00;
}

.profile-access-status.approved {
    background: #dcf6e6;
    color: #116b39;
}

.profile-access-status.rejected {
    background: #ffe2e2;
    color: #a32929;
}

.profile-access-actions {
    display: flex;
    gap: 8px;
}

.profile-access-actions button {
    border: 0;
    cursor: pointer;
    font-weight: 800;
}

.profile-access-reject {
    background: #ffe7e7;
    border-radius: 6px;
    color: #a32929;
    padding: 10px 14px;
}

.consultation-list-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.consultation-list-heading h2 {
    margin-bottom: 10px;
}

.consultation-list-heading>strong {
    background: #e2f4f1;
    border-radius: 999px;
    color: #007784;
    font-size: 11px;
    padding: 8px 11px;
    white-space: nowrap;
}

.consultation-cart-list {
    display: grid;
    gap: 14px;
}

.consultation-cart-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: grid;
    gap: 16px;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 18px;
    scroll-margin-top: 24px;
}

.consultation-cart-card:target {
    border-color: #e2b900;
    box-shadow: 0 0 0 3px rgba(255, 216, 20, .25);
}

.consultation-doctor-avatar {
    align-items: center;
    background: #e2f4f1;
    border-radius: 50%;
    color: #007784;
    display: flex;
    font-size: 20px;
    font-weight: 800;
    height: 54px;
    justify-content: center;
    overflow: hidden;
    width: 54px;
}

.consultation-doctor-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.consultation-cart-title {
    align-items: flex-start;
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.consultation-cart-title small {
    color: var(--secondary-text);
    font-size: 10px;
}

.consultation-cart-title h3 {
    font-size: 17px;
    margin: 3px 0 4px;
}

.consultation-cart-title h3 a {
    color: var(--primary-text);
}

.consultation-cart-title p,
.consultation-created {
    color: var(--secondary-text);
    font-size: 11px;
    margin: 0;
}

.consultation-created {
    white-space: nowrap;
}

.consultation-progress {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 17px;
}

.consultation-stage {
    align-items: center;
    background: #f6f8f8;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    min-height: 60px;
    padding: 11px;
}

.consultation-stage>span {
    align-items: center;
    background: #dfe6e7;
    border-radius: 50%;
    color: #607378;
    display: flex;
    flex: 0 0 28px;
    font-size: 11px;
    font-weight: 850;
    height: 28px;
    justify-content: center;
}

.consultation-stage small,
.consultation-stage strong {
    display: block;
}

.consultation-stage small {
    color: var(--secondary-text);
    font-size: 9px;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.consultation-stage strong {
    font-size: 11px;
}

.consultation-stage.approved {
    background: #e8f7ee;
}

.consultation-stage.approved>span {
    background: #16a765;
    color: #fff;
}

.consultation-stage.rejected {
    background: #ffeaea;
}

.consultation-stage.rejected>span {
    background: #d94848;
    color: #fff;
}

.consultation-stage.pending>span {
    background: #f0b429;
    color: #fff;
}

.consultation-cart-reason {
    background: #f7f9fa;
    border-radius: 8px;
    color: var(--secondary-text);
    font-size: 12px;
    line-height: 1.5;
    margin: 12px 0 0;
    padding: 11px;
}

.consultation-cart-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.consultation-cart-attachments a {
    background: #edf4f5;
    border-radius: 6px;
    color: #006f7b;
    font-size: 10px;
    font-weight: 750;
    max-width: 190px;
    overflow: hidden;
    padding: 7px 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.consultation-payment-deadline {
    align-items: center;
    border-radius: 9px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 12px;
    padding: 11px 13px;
}

.consultation-payment-deadline strong,
.consultation-payment-deadline span {
    display: block;
}

.consultation-payment-deadline strong {
    font-size: 12px;
}

.consultation-payment-deadline span {
    font-size: 10px;
    margin-top: 3px;
}

.consultation-payment-deadline.awaiting {
    background: #fff4cc;
    color: #725500;
}

.consultation-payment-deadline.paid {
    background: #e3f7ea;
    color: #116b39;
}

.consultation-payment-deadline.expired {
    background: #ffe5e5;
    color: #9f2929;
}

.consultation-pay-button {
    background: #ffd814;
    border: 0;
    border-radius: 8px;
    color: #16383e;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    min-width: 142px;
    padding: 10px 14px;
}

.consultation-pay-button:hover:not(:disabled) {
    background: #f0c800;
}

.consultation-pay-button:disabled {
    background: #e6e9e9;
    color: #718083;
    cursor: not-allowed;
}

.payment-modal-backdrop {
    align-items: center;
    background: rgba(0, 37, 43, .62);
    display: flex;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: min(8vh, 64px) min(22vw, 360px);
    position: fixed;
    z-index: 1400;
}

.payment-modal-backdrop[hidden] {
    display: none;
}

.payment-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 31, 37, .3);
    max-width: 600px;
    padding: 26px;
    width: 100%;
}

.payment-modal-header {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.payment-modal-header span {
    color: var(--secondary-text);
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.payment-modal-header h3 {
    font-size: 21px;
    margin: 4px 0 0;
}

.payment-modal-header>strong {
    color: #007784;
    font-size: 25px;
}

.payment-order-summary {
    background: #f4f8f8;
    border-radius: 11px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0;
    padding: 13px;
}

.payment-order-summary span,
.payment-order-summary strong {
    display: block;
}

.payment-order-summary span {
    color: var(--secondary-text);
    font-size: 9px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.payment-order-summary strong {
    font-size: 11px;
}

.payment-card-preview {
    background: linear-gradient(135deg, #003f48, #008c98);
    border-radius: 13px;
    color: #fff;
    display: grid;
    min-height: 112px;
    padding: 18px;
}

.payment-card-preview span {
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
}

.payment-card-preview strong {
    align-self: end;
    font-size: 18px;
    letter-spacing: .08em;
}

.payment-card-preview small {
    font-size: 8px;
    opacity: .72;
}

.payment-form-fields {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.payment-form-fields label {
    font-size: 11px;
    font-weight: 800;
}

.payment-form-fields input {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    display: block;
    font: inherit;
    margin-top: 6px;
    padding: 11px;
    width: 100%;
}

.payment-form-fields input:focus {
    border-color: #008c98;
    box-shadow: 0 0 0 3px rgba(0, 140, 152, .12);
    outline: 0;
}

.payment-field-wide {
    grid-column: 1 / -1;
}

.payment-security-note {
    color: var(--secondary-text);
    font-size: 10px;
    line-height: 1.5;
    margin: 12px 0 0;
}

.payment-modal-actions {
    display: flex;
    gap: 9px;
    justify-content: flex-end;
    margin-top: 18px;
}

.payment-modal-action {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    padding: 11px 16px;
}

.payment-modal-action.cancel {
    background: #edf1f1;
    color: #24464b;
}

.payment-modal-action.submit {
    background: #ffd814;
    color: #16383e;
}

.payment-modal-action.submit:hover {
    background: #f0c800;
}

@media (max-width: 620px) {
    .medical-records-main {
        padding: 34px 16px 60px;
    }

    .medical-record-card {
        grid-template-columns: 1fr;
    }

    .medical-record-date {
        align-items: baseline;
        flex-direction: row;
        gap: 6px;
        height: auto;
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .medical-record-title {
        flex-direction: column;
    }

    .profile-access-request-card {
        grid-template-columns: 48px 1fr;
    }

    .profile-access-actions {
        grid-column: 2;
    }

    .consultation-list-heading,
    .consultation-cart-title {
        flex-direction: column;
    }

    .consultation-cart-card {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 14px;
    }

    .consultation-doctor-avatar {
        height: 42px;
        width: 42px;
    }

    .consultation-progress {
        grid-template-columns: 1fr;
    }

    .consultation-payment-deadline {
        align-items: stretch;
        flex-direction: column;
    }

    .consultation-pay-button {
        width: 100%;
    }

    .payment-modal-backdrop {
        padding: 7vh 14px;
    }

    .payment-modal {
        padding: 21px 17px;
    }

    .payment-order-summary {
        grid-template-columns: 1fr;
    }
}

.profile-page {
    background: #f2f6f5;
}

.profile-main {
    margin: 0 auto;
    max-width: 920px;
    padding: 56px 32px 80px;
}

.profile-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 47, 54, 0.08);
    padding: 36px;
}

.profile-heading {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
}

.profile-heading h1 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.profile-heading p {
    color: var(--secondary-text);
    font-size: 14px;
}

.profile-avatar-upload {
    align-items: center;
    background: var(--accent-teal);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex: 0 0 62px;
    font-size: 26px;
    font-weight: 700;
    height: 62px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 62px;
}

.profile-avatar-preview {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile-avatar-overlay {
    align-items: center;
    background: rgba(0, 47, 54, 0.72);
    bottom: 0;
    display: flex;
    font-size: 9px;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    transition: opacity 0.2s ease;
}

.profile-avatar-upload:hover .profile-avatar-overlay,
.profile-avatar-upload:focus-within .profile-avatar-overlay {
    opacity: 1;
}

.profile-avatar-input input[type="file"] {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.profile-avatar-input .profile-field-error {
    margin: -18px 0 18px 80px;
}

.hidden {
    display: none !important;
}

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

.profile-field>label,
.profile-field>span {
    color: var(--primary-text);
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.profile-tabs {
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.profile-tab {
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--secondary-text);
    cursor: pointer;
    flex: 0 0 auto;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
}

.profile-tab.active {
    border-bottom-color: var(--accent-teal);
    color: var(--primary-text);
}

.profile-panel {
    display: none;
}

.profile-panel.active {
    display: block;
}

.profile-panel h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.profile-panel-description {
    color: var(--secondary-text);
    font-size: 14px;
    margin: -10px 0 22px;
}

.account-information {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.account-information-item {
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 16px 18px;
}

.account-information-item:last-child {
    border-bottom: 0;
}

.account-information-item span {
    color: var(--secondary-text);
    font-size: 13px;
}

.account-information-item strong {
    font-size: 14px;
    overflow-wrap: anywhere;
    text-align: right;
}

.work-schedule-setup {
    background: #f7faf9;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    margin-bottom: 24px;
    padding: 18px;
}

.work-schedule-heading h3 {
    font-size: 17px;
    margin: 0 0 4px;
}

.work-schedule-heading p {
    color: var(--secondary-text);
    font-size: 12px;
    margin: 0 0 14px;
}

.work-schedule-options {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-schedule-option {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    cursor: pointer;
    padding: 13px;
}

.work-schedule-option.active {
    background: #eaf3ff;
    border-color: #2778db;
    box-shadow: inset 0 0 0 1px #2778db;
}

.work-schedule-option input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.work-schedule-option strong,
.work-schedule-option small {
    display: block;
}

.work-schedule-option strong {
    font-size: 13px;
}

.work-schedule-option small {
    color: var(--secondary-text);
    font-size: 10px;
    line-height: 1.35;
    margin-top: 4px;
}

.custom-work-hours {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 180px));
    margin-top: 14px;
}

.custom-work-hours[hidden] {
    display: none;
}

.custom-work-hours label {
    font-size: 12px;
    font-weight: 800;
}

.custom-work-hours input {
    border: 1px solid var(--border-color);
    border-radius: 7px;
    display: block;
    font: inherit;
    margin-top: 6px;
    padding: 9px 10px;
    width: 100%;
}

.work-schedule-save {
    margin-top: 15px;
}

.weekend-off-option {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    gap: 11px;
    margin-top: 14px;
    max-width: 430px;
    padding: 12px 13px;
}

.weekend-off-option input {
    accent-color: #2778db;
    height: 18px;
    width: 18px;
}

.weekend-off-option strong,
.weekend-off-option small {
    display: block;
}

.weekend-off-option strong {
    font-size: 12px;
}

.weekend-off-option small {
    color: var(--secondary-text);
    font-size: 10px;
    margin-top: 3px;
}

.doctor-calendar-header {
    align-items: center;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    margin-bottom: 18px;
}

.busy-time-editor {
    background: #f7faf9;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 24px;
    max-height: 430px;
    overflow-y: auto;
    padding: 18px;
}

.busy-time-editor[hidden] {
    display: none;
}

.busy-time-editor.is-revealing {
    animation: booking-shifts-radial-in 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: var(--reveal-x) var(--reveal-y);
}

.busy-time-editor.is-closing {
    animation: booking-shifts-out 170ms ease-in forwards;
    pointer-events: none;
}

.busy-time-editor-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.busy-time-editor-heading span,
.busy-time-editor-heading strong {
    display: block;
}

.busy-time-editor-heading span,
.busy-time-editor-heading small {
    color: var(--secondary-text);
    font-size: 12px;
}

.busy-time-editor-heading strong {
    font-size: 17px;
    margin-top: 3px;
}

.busy-time-group+.busy-time-group {
    margin-top: 20px;
}

.busy-time-group h3 {
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    margin: 0 0 10px;
    padding-bottom: 8px;
}

.busy-time-slot-list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(6, minmax(92px, 1fr));
}

.busy-time-slot {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    cursor: pointer;
    padding: 11px 6px;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.busy-time-slot:hover {
    border-color: #2778db;
}

.busy-time-slot.selected {
    background: #2778db;
    border-color: #2778db;
    color: #fff;
}

.busy-time-slot input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.busy-time-slot span {
    font-size: 13px;
    font-weight: 700;
}

.busy-time-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.busy-time-actions .booking-back-action {
    margin: 0;
}

.doctor-calendar-header h3 {
    font-size: 18px;
    margin: 0;
    text-align: center;
}

.calendar-month-action {
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-text);
    display: flex;
    font-size: 25px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    width: 38px;
}

.calendar-month-action:hover {
    background: #eef5f3;
    text-decoration: none;
}

.doctor-calendar {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.doctor-calendar[hidden],
.doctor-calendar-header[hidden] {
    display: none;
}

.doctor-calendar.is-leaving,
.doctor-calendar-header.is-leaving {
    animation: booking-calendar-out 190ms ease-in forwards;
    pointer-events: none;
}

.doctor-calendar.is-returning,
.doctor-calendar-header.is-returning {
    animation: booking-calendar-return 340ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.calendar-weekday {
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 0;
    text-align: center;
}

.calendar-day {
    align-items: center;
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 62px;
    overflow: hidden;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.calendar-day.activating::after {
    animation: booking-day-ripple 420ms ease-out forwards;
    background: rgba(39, 120, 219, 0.28);
    border-radius: 50%;
    content: "";
    height: 20px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 20px;
}

.calendar-day span {
    font-size: 15px;
    font-weight: 700;
}

.calendar-day small {
    color: #fff;
    display: none;
    font-size: 10px;
    font-weight: 700;
}

.calendar-day em {
    color: #1f73d6;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    margin-top: 3px;
}

.calendar-day.busy em {
    color: #fff;
}

.calendar-day:hover {
    border-color: var(--accent-teal);
}

.calendar-day.selected {
    border-color: #2778db;
    box-shadow: inset 0 0 0 2px #2778db;
}

.calendar-day.today {
    box-shadow: inset 0 0 0 2px var(--accent-teal);
}

.calendar-day.busy {
    background: #16a34a;
    border-color: #15803d;
    color: #fff;
}

.calendar-day.busy small {
    display: block;
}

.calendar-day.empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.calendar-legend {
    align-items: center;
    color: var(--secondary-text);
    display: flex;
    font-size: 12px;
    gap: 7px;
    margin-top: 14px;
}

.calendar-legend span {
    background: #16a34a;
    border-radius: 4px;
    height: 14px;
    width: 14px;
}

.doctor-appointment-requests {
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
    padding-top: 24px;
}

.appointment-request-heading {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.appointment-request-heading h3 {
    font-size: 18px;
    margin: 0 0 5px;
}

.appointment-request-heading p {
    color: var(--secondary-text);
    font-size: 13px;
    margin: 0;
}

.appointment-request-heading>strong {
    background: #eaf3ff;
    border-radius: 999px;
    color: #1f73d6;
    flex: 0 0 auto;
    font-size: 12px;
    padding: 7px 11px;
}

.appointment-request-list {
    display: grid;
    gap: 12px;
}

.appointment-request-card {
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: grid;
    gap: 14px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding: 14px;
}

.appointment-patient-avatar,
.referral-doctor-avatar {
    align-items: center;
    background: #dff3ef;
    border-radius: 50%;
    color: var(--accent-teal);
    display: flex;
    flex: 0 0 auto;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    overflow: hidden;
    width: 48px;
}

.appointment-patient-avatar img,
.referral-doctor-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.appointment-request-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.appointment-request-title h4 {
    font-size: 15px;
    margin: 0;
}

.appointment-request-details p {
    color: var(--secondary-text);
    font-size: 12px;
    margin: 5px 0 0;
}

.appointment-request-details .appointment-reason {
    color: var(--primary-text);
}

.appointment-status {
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
}

.appointment-status.pending {
    background: #fff3cd;
    color: #7a5700;
}

.appointment-status.accepted {
    background: #dcfce7;
    color: #16733a;
}

.appointment-status.rejected {
    background: #fee2e2;
    color: #a12424;
}

.appointment-request-actions {
    display: flex;
    gap: 8px;
}

.appointment-action {
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 12px;
}

.appointment-action.accept {
    background: #168a4a;
    border: 1px solid #168a4a;
    color: #fff;
}

.appointment-action.reject {
    background: #fff;
    border: 1px solid #cf4b4b;
    color: #b52f2f;
}

.appointment-request-empty {
    background: #f7faf9;
    border-radius: 9px;
    color: var(--secondary-text);
    font-size: 13px;
    padding: 18px;
    text-align: center;
}

.referral-modal-backdrop {
    align-items: center;
    background: rgba(7, 28, 36, 0.62);
    display: flex;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: 8vh min(25vw, 360px);
    position: fixed;
    z-index: 1200;
}

.referral-modal-backdrop[hidden] {
    display: none;
}

.referral-modal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-width: 620px;
    padding: 26px;
    position: relative;
    width: 100%;
}

.referral-modal>h3 {
    font-size: 21px;
    margin: 0 38px 7px 0;
}

.referral-modal>p {
    color: var(--secondary-text);
    font-size: 13px;
    margin: 0 0 18px;
}

.referral-modal-close {
    align-items: center;
    background: #f1f4f5;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    font-size: 22px;
    height: 34px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 34px;
}

.referral-doctor-list {
    display: grid;
    gap: 9px;
    max-height: 330px;
    overflow-y: auto;
}

.referral-doctor-option {
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 11px;
}

.referral-doctor-option.selected {
    background: #edf7ff;
    border-color: #2778db;
}

.referral-doctor-option input {
    accent-color: #2778db;
}

.referral-doctor-option>span:last-child {
    min-width: 0;
}

.referral-doctor-option strong,
.referral-doctor-option small {
    display: block;
}

.referral-doctor-option strong {
    font-size: 14px;
}

.referral-doctor-option small {
    color: var(--secondary-text);
    font-size: 11px;
    margin-top: 2px;
}

.referral-doctor-avatar {
    height: 42px;
    width: 42px;
}

.referral-modal-actions {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.referral-skip {
    background: transparent;
    border: 0;
    color: var(--secondary-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 640px) {

    .work-schedule-options,
    .custom-work-hours {
        grid-template-columns: 1fr;
    }

    .appointment-request-heading,
    .appointment-request-actions,
    .referral-modal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .appointment-request-card {
        align-items: start;
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .appointment-patient-avatar {
        height: 42px;
        width: 42px;
    }

    .appointment-request-actions {
        grid-column: 1 / -1;
    }

    .appointment-request-actions form,
    .appointment-request-actions button {
        width: 100%;
    }

    .referral-modal-backdrop {
        padding: 5vh 14px;
    }

    .busy-time-editor-heading {
        display: block;
    }

    .busy-time-editor-heading small {
        display: block;
        margin-top: 8px;
    }

    .busy-time-slot-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .doctor-calendar {
        gap: 4px;
    }

    .calendar-day {
        border-radius: 6px;
        min-height: 42px;
    }

    .calendar-day span {
        font-size: 13px;
    }
}

.profile-field small {
    color: var(--secondary-text);
    display: block;
    font-size: 11px;
    margin-top: 6px;
}

.profile-field-error {
    color: #a12a23;
    font-size: 12px;
    margin-top: 6px;
}

.profile-field input,
.profile-field select,
.profile-field textarea {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-text);
    font: inherit;
    height: 46px;
    outline: none;
    padding: 0 12px;
    width: 100%;
}

.profile-field textarea {
    height: 140px;
    padding: 12px;
    resize: vertical;
}

.profile-field[data-input-type="textarea"] {
    grid-column: 1 / -1;
}

.profile-field input:focus,
.profile-field select:focus,
.profile-field textarea:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 130, 150, 0.14);
}

.profile-actions {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-top: 30px;
}

.profile-cancel {
    color: var(--primary-text);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .profile-main {
        padding: 28px 16px 56px;
    }

    .profile-card {
        padding: 24px 18px;
    }

    .profile-fields {
        grid-template-columns: 1fr;
    }
}

.text-button {
    background: transparent;
    border: 0;
    color: var(--primary-text);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0;
}

.text-button:hover {
    color: var(--accent-teal);
}

.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    align-items: center;
    background: rgba(0, 47, 54, 0.46);
    display: none;
    inset: 0;
    justify-content: center;
    padding-block: 46px;
    padding-inline: min(33.333vw, 460px);
    position: fixed;
    z-index: 1000;
}

.modal-backdrop.active {
    display: flex;
}

.register-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
    max-height: calc(100vh - 92px);
    max-width: 460px;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    width: 100%;
}

@media (max-width: 1100px) {
    .modal-backdrop {
        padding: 20px;
    }

    .register-modal {
        max-height: calc(100vh - 40px);
    }
}

.register-modal h2 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.register-modal p {
    color: var(--secondary-text);
    font-size: 14px;
    margin-bottom: 18px;
}

.modal-close {
    align-items: center;
    background: #f3f5f7;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    font-size: 22px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 34px;
}

.register-form {
    display: grid;
    gap: 14px;
}

.register-form label,
.role-choice legend {
    color: var(--primary-text);
    font-size: 13px;
    font-weight: 700;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="tel"],
.register-form input[type="password"] {
    border: 1px solid var(--border-color);
    border-radius: 7px;
    display: block;
    font-size: 15px;
    height: 44px;
    margin-top: 6px;
    outline: 0;
    padding: 0 12px;
    width: 100%;
}

.register-form input:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 130, 150, 0.14);
}

.role-choice {
    border: 1px solid var(--border-color);
    border-radius: 7px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    padding: 12px;
}

.role-choice legend {
    padding: 0 4px;
}

.role-choice label {
    align-items: center;
    background: #f8fafb;
    border-radius: 6px;
    display: flex;
    gap: 8px;
    padding: 10px;
}

.doctor-extra-fields {
    display: none;
    gap: 14px;
}

.doctor-extra-fields.active {
    display: grid;
}

.register-submit {
    margin-top: 4px;
    width: 100%;
}

.form-alert {
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    margin: 14px auto;
    max-width: 920px;
    padding: 12px 16px;
}

.form-alert.success {
    background: #e8f7ef;
    color: #126b3c;
}

.form-alert.error {
    background: #fff1f0;
    color: #a12a23;
    margin: 0 0 16px;
}

/* === HERO SECTION === */
.hero {
    background-size: cover;
    background-position: center;
    padding: 0 0 40px 0;
    background-color: #D8EAF4;
    min-height: 620px;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 620px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-copy {
    margin-top: 330px;
    max-width: 1100px;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.9);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 3px rgba(31, 58, 137, 0.95),
        0 0 9px rgba(91, 119, 218, 0.85);
}

.hero p {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow:
        0 1px 2px rgba(24, 43, 99, 0.95),
        0 0 5px rgba(72, 101, 190, 0.75);
}

.hero-search {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(20, 47, 77, 0.2);
    display: flex;
    margin: 0 auto 18px;
    max-width: 640px;
    padding: 6px;
    width: 100%;
}

.hero-search-icon {
    color: #557182;
    flex: 0 0 auto;
    font-size: 25px;
    line-height: 1;
    margin-left: 12px;
}

.hero-search input {
    background: #fff !important;
    border: 0;
    color: var(--primary-text);
    flex: 1;
    font-size: 15px;
    min-width: 0;
    outline: 0;
    padding: 11px 12px;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

.hero-search input:focus,
.hero-search input:active,
.hero-search input:-webkit-autofill,
.hero-search input:-webkit-autofill:hover,
.hero-search input:-webkit-autofill:focus {
    background-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--primary-text) !important;
    caret-color: var(--primary-text);
    transition: background-color 9999s ease-out 0s;
}

.hero-search input::placeholder {
    color: #71838d;
}

.hero-search button {
    background: var(--accent-teal);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 22px;
}

.hero-search button:hover {
    background: #006f80;
}

/* Carousel */
.conditions-carousel {
    display: flex;
    gap: 15px;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 24px 20px;
    margin-bottom: 20px;
    width: 100%;
    scroll-padding-inline: 24px;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}

.conditions-carousel.dragging {
    cursor: grabbing;
}

.conditions-carousel::-webkit-scrollbar {
    display: none;
}

.condition-item {
    background: white;
    border-radius: 8px;
    flex: 0 0 122px;
    width: 122px;
    min-height: 162px;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    color: var(--primary-text);
    user-select: none;
}

.condition-item:hover {
    border-color: var(--accent-teal);
    text-decoration: none;
    transform: translateY(-1px);
}

.condition-item img {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    margin-bottom: 0;
    object-fit: cover;
}

.condition-item span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* === TWO OPTIONS SECTION === */
.two-options {
    padding: 60px 0;
    background: var(--bg-light-gray);
}

.two-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.two-options img {
    width: 100%;
    border-radius: 12px;
}

.toggle-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    align-items: center;
}

.toggle-card {
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    flex: 1;
    background: white;
    color: var(--primary-text);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.toggle-card.active {
    border: 2px solid var(--accent-teal);
}

.toggle-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.toggle-card p {
    font-size: 12px;
    color: var(--secondary-text);
    margin-bottom: 10px;
}

.toggle-card .price {
    font-size: 18px;
    font-weight: bold;
}

.care-option-panel {
    display: none;
    min-height: 230px;
}

.care-option-panel.active {
    display: block;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li::before {
    content: "✔";
    color: var(--accent-teal);
    font-weight: bold;
}

.price-breakdown {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.price-disclaimer {
    font-size: 11px;
    color: var(--secondary-text);
    margin-bottom: 20px;
}

/* === CONDITIONS GRID === */
.conditions-section {
    padding: 40px 0;
    background: var(--bg-light-gray);
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tab {
    background: white;
    border: 0;
    color: var(--primary-text);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.tab.active {
    background: var(--accent-teal);
    color: white;
    border-color: var(--accent-teal);
}

.conditions-grid {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 18px;
}

.conditions-grid.active {
    display: grid;
}

.condition-card {
    background: white;
    border: 1px solid #e9eef2;
    border-bottom-color: #69d8ca;
    padding: 14px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-text);
    display: block;
    min-height: 47px;
}

.condition-card:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    text-decoration: none;
}

@media (max-width: 900px) {
    .conditions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .conditions-grid {
        grid-template-columns: 1fr;
    }

    .hero,
    .hero .container {
        min-height: 560px;
    }

    .hero-copy {
        margin-top: 290px;
    }

    .hero-search {
        border-radius: 14px;
        padding: 5px;
    }

    .hero-search-icon {
        display: none;
    }

    .hero-search input {
        font-size: 13px;
        padding-left: 9px;
    }

    .hero-search button {
        padding: 11px 14px;
    }
}

/* === DOCTOR SEARCH === */
.search-page {
    background: #f6f7f8;
    color: #172033;
}

.search-header {
    background: white;
    border-bottom: 1px solid #e7e9ee;
}

.search-nav {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.search-logo {
    color: #00a671;
    font-size: 22px;
    font-weight: 800;
}

.search-logo:hover {
    text-decoration: none;
}

.search-nav nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 13px;
    font-weight: 600;
}

.search-nav nav a {
    color: #172033;
}

.search-nav nav .active-nav {
    color: var(--accent-teal);
}

.search-nav .login-link {
    border: 1px solid #1a73e8;
    color: #1a73e8;
    padding: 8px 16px;
    border-radius: 4px;
}

.doctor-search-top {
    background: white;
    border-bottom: 1px solid #e2e5ea;
    padding: 22px 16px 16px;
}

.doctor-search-inner,
.doctor-results-card {
    width: min(100%, 900px);
    margin: 0 auto;
}

.doctor-search-form {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border: 1px solid transparent;
    border-radius: 999px;
    height: 48px;
    overflow: hidden;
}

.doctor-search-form:focus-within {
    border-color: #1a73e8;
    background: white;
}

.doctor-search-form input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 22px;
    font-size: 15px;
    min-width: 0;
}

.doctor-search-form button {
    width: 88px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #1a73e8;
    cursor: pointer;
    font-weight: 700;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
}

.search-filters span {
    background: #f4f5f7;
    border: 1px solid #eceff3;
    border-radius: 999px;
    padding: 7px 12px;
}

.search-filters .active-filter {
    background: #e8f1ff;
    border-color: #cfe0ff;
    color: #1769d6;
}

.doctor-results-wrap {
    padding: 10px 16px 56px;
}

.doctor-results-card {
    background: white;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    overflow: hidden;
}

.doctor-results-heading {
    padding: 18px 20px;
    border-bottom: 1px solid #e7e9ee;
}

.doctor-results-heading h1 {
    font-size: 15px;
    margin-bottom: 4px;
}

.doctor-results-heading p {
    color: #677282;
    font-size: 13px;
}

.doctor-results-heading .fallback-note {
    color: #8a5a00;
    margin-top: 6px;
}

.doctor-row {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 18px;
    align-items: center;
    min-height: 132px;
    padding: 20px 24px;
    border-bottom: 1px solid #e7e9ee;
}

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

.doctor-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #edf0f4;
    background: #f3f5f7;
}

.doctor-row>.doctor-avatar-fallback {
    align-items: center;
    color: #173f4c;
    display: flex;
    font-size: 24px;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
}

.doctor-info h2 {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.doctor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.doctor-tags span {
    background: #f3f4f6;
    border-radius: 999px;
    color: #222b3a;
    font-size: 12px;
    padding: 5px 10px;
}

.doctor-info p {
    color: #253246;
    font-size: 13px;
}

.doctor-cta {
    align-items: center;
    border-radius: 6px;
    color: white;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    min-width: 128px;
    padding: 0 18px;
}

.doctor-cta:hover {
    color: white;
    text-decoration: none;
}

.doctor-cta.primary {
    background: #1f73d6;
}

.doctor-cta.success {
    background: #20b969;
}

.search-page-messages {
    margin: 16px auto 0;
    max-width: 1080px;
    padding: 0 16px;
}

.doctor-result-actions {
    display: grid;
    gap: 8px;
    min-width: 155px;
}

.doctor-result-actions form,
.doctor-result-actions .doctor-cta {
    width: 100%;
}

button.doctor-cta {
    border: 0;
    cursor: pointer;
}

.doctor-cta.recommend {
    background: #168a4a;
}

.doctor-cta.secondary {
    background: #fff;
    border: 1px solid #1f73d6;
    color: #1f73d6;
}

.doctor-cta.secondary:hover {
    background: #edf5ff;
    color: #1f73d6;
}

.doctor-cta:disabled {
    background: #e8ecee;
    color: #7e898f;
    cursor: default;
}

.profile-recommended-doctors {
    border-top: 1px solid var(--border-color);
    margin-top: 24px;
    padding-top: 22px;
}

.profile-recommended-heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.profile-recommended-heading h3 {
    font-size: 17px;
    margin: 0 0 4px;
}

.profile-recommended-heading p {
    color: var(--secondary-text);
    font-size: 12px;
    margin: 0;
}

.profile-recommended-heading .btn {
    flex: 0 0 auto;
}

.profile-recommended-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-recommended-card {
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--primary-text);
    display: flex;
    gap: 11px;
    padding: 11px;
}

.profile-recommended-card:hover {
    border-color: var(--accent-teal);
    text-decoration: none;
}

.profile-recommended-avatar {
    align-items: center;
    background: #dff3ef;
    border-radius: 50%;
    color: var(--accent-teal);
    display: flex;
    flex: 0 0 auto;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    width: 42px;
}

.profile-recommended-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile-recommended-card strong,
.profile-recommended-card small {
    display: block;
}

.profile-recommended-card strong {
    font-size: 13px;
}

.profile-recommended-card small {
    color: var(--secondary-text);
    font-size: 10px;
    margin-top: 3px;
}

/* === PUBLIC DOCTOR PROFILE === */
.doctor-public-page {
    background: #f5f8f8;
}

.doctor-public-main {
    margin: 0 auto;
    max-width: 1120px;
    padding: 34px 20px 70px;
}

.doctor-public-messages {
    margin-bottom: 16px;
}

.doctor-public-hero {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: grid;
    gap: 22px;
    grid-template-columns: 126px minmax(0, 1fr) auto;
    padding: 26px;
}

.doctor-public-avatar {
    align-items: center;
    background: #ddf5ef;
    border-radius: 50%;
    color: var(--accent-teal);
    display: flex;
    font-size: 42px;
    font-weight: 900;
    height: 126px;
    justify-content: center;
    overflow: hidden;
    width: 126px;
}

.doctor-public-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.doctor-public-name {
    align-items: center;
    display: flex;
    gap: 9px;
}

.doctor-public-name h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
}

.doctor-public-position,
.doctor-public-workplace {
    color: var(--secondary-text);
    font-size: 13px;
    margin: 7px 0 0;
}

.doctor-public-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.doctor-public-tags span {
    background: #e8f5f3;
    border-radius: 999px;
    color: #006d78;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
}

.doctor-public-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(95px, 1fr));
}

.doctor-public-stats>div {
    background: #f6f9fa;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.doctor-public-stats strong,
.doctor-public-stats>div>span {
    display: block;
}

.doctor-service-fees {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(190px, .8fr) minmax(360px, 1.2fr);
    margin-top: 22px;
    padding: 20px 24px;
}

.doctor-service-fees-heading h2 {
    font-size: 19px;
    margin: 0 0 5px;
}

.doctor-service-fees-heading p {
    color: var(--secondary-text);
    font-size: 12px;
    margin: 0;
}

.doctor-service-fee-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doctor-service-fee-card {
    background: #f4f8f8;
    border-radius: 10px;
    padding: 14px 16px;
}

.doctor-service-fee-card>span {
    color: var(--secondary-text);
    display: block;
    font-size: 10px;
    font-weight: 750;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.doctor-service-fee-card strong {
    color: var(--primary-text);
    display: block;
    font-size: 18px;
}

.doctor-service-fee-card strong small {
    color: var(--secondary-text);
    font-size: 11px;
    font-weight: 650;
}

.doctor-booking-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 22px;
    padding: 24px;
}

.doctor-booking-heading {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.doctor-booking-heading h2 {
    font-size: 20px;
    margin: 0 0 5px;
}

.doctor-booking-heading p {
    color: var(--secondary-text);
    font-size: 13px;
    margin: 0 0 20px;
}

.booking-now-button {
    background: #ffd814;
    border: 0;
    border-radius: 9px;
    color: #002f35;
    cursor: pointer;
    flex: 0 0 auto;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    min-width: 210px;
    padding: 14px 22px;
}

.booking-now-button:hover {
    background: #f4c900;
}

.booking-now-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.booking-schedule-fields {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 17px;
}

.booking-schedule-fields label {
    font-size: 11px;
    font-weight: 800;
}

.booking-schedule-fields select,
.booking-schedule-fields input[type="date"] {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-text);
    display: block;
    font: inherit;
    margin-top: 6px;
    padding: 11px;
    width: 100%;
}

.booking-schedule-fields select:disabled {
    background: #f2f4f4;
    color: #849294;
}

.booking-date-field {
    font-size: 11px;
    font-weight: 800;
    position: relative;
    z-index: 12;
}

.booking-field-label {
    display: block;
    margin-bottom: 6px;
}

.booking-date-trigger {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-text);
    cursor: pointer;
    display: flex;
    font: inherit;
    justify-content: space-between;
    padding: 11px;
    text-align: left;
    width: 100%;
}

.booking-date-trigger:hover {
    border-color: #008b98;
}

.booking-date-picker {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 37, 43, .2);
    left: 0;
    padding: 10px;
    position: absolute;
    top: calc(100% + 6px);
    width: 100%;
    z-index: 30;
}

.booking-date-picker[hidden] {
    display: none;
}

.booking-date-picker-header {
    align-items: center;
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    margin-bottom: 8px;
}

.booking-date-picker-header strong {
    font-size: 13px;
    text-align: center;
}

.booking-date-picker-header button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-text);
    cursor: pointer;
    display: flex;
    font-size: 18px;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.booking-date-picker-header button:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.booking-date-weekdays,
.booking-date-grid {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.booking-date-weekdays {
    margin-bottom: 4px;
}

.booking-date-weekdays span {
    color: var(--secondary-text);
    font-size: 9px;
    text-align: center;
}

.booking-date-day {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--primary-text);
    cursor: pointer;
    font: inherit;
    height: 32px;
    padding: 0;
}

.booking-date-day:hover:not(:disabled),
.booking-date-day.selected {
    background: #e8f7f5;
    border-color: #008b98;
    color: #006b75;
}

.booking-date-day.today {
    box-shadow: inset 0 0 0 1px #008b98;
}

.booking-date-day.unavailable {
    background: #fff0f0;
    border-color: #ef7777;
    color: #c62828;
    cursor: not-allowed;
    opacity: 1;
}

.booking-date-day.out-of-range {
    background: #f3f5f5;
    border-color: #dde2e2;
    color: #a2acad;
    cursor: not-allowed;
    opacity: 1;
}

.booking-date-day.empty {
    border: 0;
}

.booking-date-month-stage {
    overflow: hidden;
}

.booking-date-grid {
    transition: opacity 150ms ease, transform 150ms ease;
}

.booking-date-grid[hidden] {
    display: none;
}

.booking-date-grid.slide-out-left {
    opacity: 0;
    transform: translateX(-24px);
}

.booking-date-grid.slide-out-right {
    opacity: 0;
    transform: translateX(24px);
}

.booking-date-grid.slide-in-right {
    opacity: 0;
    transform: translateX(24px);
}

.booking-date-grid.slide-in-left {
    opacity: 0;
    transform: translateX(-24px);
}

.doctor-booking-notice {
    background: #eef6ff;
    border: 1px solid #cfe3fb;
    border-radius: 8px;
    color: #315f8d;
    font-size: 12px;
    margin: 0 0 16px;
    padding: 10px 12px;
}

.public-booking-shifts .doctor-booking-notice {
    margin: 18px 0 0;
}

.public-booking-calendar-header {
    align-items: center;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    margin-bottom: 12px;
}

.public-booking-calendar-header[hidden],
.public-booking-calendar[hidden] {
    display: none;
}

.public-booking-calendar-header h3 {
    font-size: 17px;
    margin: 0;
    text-align: center;
}

.public-booking-calendar-header a {
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-text);
    display: flex;
    font-size: 24px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    width: 36px;
}

.public-booking-calendar-header a:hover {
    background: #edf7f5;
    text-decoration: none;
}

.public-booking-calendar {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

[data-calendar-component="booking"] {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
}

.quick-booking-date-picker {
    align-items: stretch;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    margin-top: 4px;
}

.quick-booking-date-strip {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.quick-booking-date-strip::-webkit-scrollbar {
    display: none;
}

.quick-booking-date {
    background: #fff;
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--primary-text);
    cursor: pointer;
    flex: 0 0 calc(100% / 7);
    min-height: 58px;
    padding: 9px 8px 7px;
    text-align: center;
}

.quick-booking-date:hover {
    background: #f4f7fb;
}

.quick-booking-date.selected {
    background: #eaf1ff;
    border-bottom-color: #2778db;
}

.quick-booking-date strong {
    font-size: 12px;
    white-space: nowrap;
}

.quick-booking-scroll {
    align-items: center;
    align-self: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--secondary-text);
    cursor: pointer;
    display: flex;
    font-size: 0;
    height: 28px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: relative;
    width: 28px;
    z-index: 2;
}

.quick-booking-scroll::before {
    border-style: solid;
    border-width: 0 1.5px 1.5px 0;
    content: "";
    display: block;
    height: 6px;
    width: 6px;
}

.quick-booking-scroll.previous::before {
    transform: translate(1px, -1px) rotate(135deg);
}

.quick-booking-scroll.next::before {
    transform: translate(-1px, -1px) rotate(-45deg);
}

.quick-booking-scroll.previous {
    margin-left: -6px;
}

.quick-booking-scroll.next {
    margin-right: -6px;
}

.quick-booking-scroll:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

@media (max-width: 760px) {
    .quick-booking-date {
        flex-basis: calc(100% / 3);
    }
}

[data-calendar-component="booking"]+.public-booking-shifts {
    border-top: 0;
    margin-top: 12px;
    max-height: none;
    overflow: visible;
    padding: 0 8px 10px;
}

[data-calendar-component="booking"]+.public-booking-shifts .doctor-booking-time-groups {
    max-height: 330px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 8px;
}

[data-calendar-component="booking"]+.public-booking-shifts .doctor-booking-time-group>div {
    grid-template-columns: repeat(6, minmax(88px, 1fr));
}

[data-calendar-component="booking"] .public-booking-calendar {
    gap: 5px;
}

[data-calendar-component="booking"] .public-booking-day {
    aspect-ratio: auto;
    min-height: 46px;
    padding: 4px;
}

[data-calendar-component="booking"] .public-booking-day strong {
    font-size: 13px;
}

.public-booking-calendar.is-leaving,
.public-booking-calendar-header.is-leaving {
    animation: booking-calendar-out 190ms ease-in forwards;
    pointer-events: none;
}

.public-booking-calendar.is-returning,
.public-booking-calendar-header.is-returning {
    animation: booking-calendar-return 340ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.public-booking-weekday {
    color: var(--secondary-text);
    font-size: 11px;
    font-weight: 800;
    padding: 5px;
    text-align: center;
}

.public-booking-day {
    align-items: center;
    aspect-ratio: 1.15;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--primary-text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 58px;
    padding: 5px;
    overflow: hidden;
    position: relative;
}

.public-booking-day.activating::after {
    animation: booking-day-ripple 420ms ease-out forwards;
    background: rgba(39, 120, 219, 0.28);
    border-radius: 50%;
    content: "";
    height: 20px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 20px;
}

.public-booking-day strong,
.public-booking-day small {
    display: block;
}

.profile-booking-calendar .public-booking-day em {
    color: #1f73d6;
    display: block;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
    margin-top: 3px;
}

.profile-booking-calendar .public-booking-day.busy {
    background: #eaf8ef;
    border-color: #22a65a;
}

.profile-booking-calendar .public-booking-day.busy small {
    color: #168344;
}

.profile-booking-calendar .public-booking-day.busy em {
    color: #126b3c;
}

.public-booking-day strong {
    font-size: 14px;
}

.public-booking-day small {
    color: #159557;
    font-size: 9px;
    font-weight: 700;
    margin-top: 4px;
}

.public-booking-day:hover:not(:disabled),
.public-booking-day.selected {
    border-color: #2778db;
}

.public-booking-day.selected {
    background: #eaf3ff;
    box-shadow: inset 0 0 0 1px #2778db;
}

.public-booking-day.today {
    box-shadow: inset 0 0 0 2px var(--accent-teal);
}

.public-booking-day:disabled {
    background: #f3f5f6;
    color: #a6adb1;
    cursor: not-allowed;
}

.public-booking-day:disabled small {
    color: #a6adb1;
}

.public-booking-day.empty {
    background: transparent;
    border-color: transparent;
}

.public-booking-shifts {
    border-top: 1px solid var(--border-color);
    margin-top: 22px;
    padding-top: 18px;
}

.public-booking-shifts[hidden] {
    display: none;
}

.public-booking-shifts.is-revealing {
    animation: booking-shifts-radial-in 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: var(--reveal-x) var(--reveal-y);
}

.public-booking-shifts.is-closing {
    animation: booking-shifts-out 170ms ease-in forwards;
    pointer-events: none;
}

.public-booking-selected-heading span,
.public-booking-selected-heading strong {
    display: block;
}

.public-booking-selected-heading span {
    color: var(--secondary-text);
    font-size: 11px;
}

.public-booking-selected-heading strong {
    font-size: 16px;
    margin-top: 3px;
}

.calendar-shift-heading {
    align-items: center;
    display: flex;
    gap: 11px;
}

.calendar-back-circle {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-text);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 38px;
    font-size: 23px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
    width: 38px;
}

.calendar-back-circle>span,
.public-booking-selected-heading .calendar-back-circle>span,
.busy-time-editor-heading .calendar-back-circle>span {
    align-items: center;
    color: inherit;
    display: flex;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    height: 100%;
    justify-content: center;
    line-height: 1;
    margin: 0;
    transform: translateY(-1px);
    width: 100%;
}

.calendar-back-circle>img {
    display: block;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
    width: 20px;
}

.calendar-back-circle:hover {
    background: #edf7f5;
    border-color: var(--accent-teal);
    transform: translateX(-2px);
}

.calendar-back-circle:focus-visible {
    outline: 3px solid rgba(0, 137, 160, 0.22);
    outline-offset: 2px;
}

.doctor-booking-dates,
.doctor-booking-time-group {
    border: 0;
    margin: 0;
    padding: 0;
}

.doctor-booking-dates legend,
.doctor-booking-time-group legend {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 9px;
}

.doctor-booking-dates>div {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(7, minmax(105px, 1fr));
    overflow-x: auto;
    padding-bottom: 5px;
}

.doctor-booking-dates label,
.doctor-booking-time-group label {
    cursor: pointer;
}

.doctor-booking-dates input,
.doctor-booking-time-group input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.doctor-booking-dates label>span {
    border: 1px solid var(--border-color);
    border-radius: 9px;
    display: block;
    padding: 10px 8px;
    text-align: center;
}

.doctor-booking-dates strong,
.doctor-booking-dates small,
.doctor-booking-dates em {
    display: block;
}

.doctor-booking-dates strong {
    font-size: 12px;
}

.doctor-booking-dates small {
    color: var(--secondary-text);
    font-size: 11px;
    margin-top: 3px;
}

.doctor-booking-dates em {
    color: #159557;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    margin-top: 5px;
}

.doctor-booking-dates label.selected>span {
    background: #eaf3ff;
    border-color: #2778db;
    box-shadow: inset 0 0 0 1px #2778db;
}

.doctor-booking-time-groups {
    max-height: 330px;
    margin-top: 20px;
    overflow-y: auto;
    padding-right: 5px;
}

.doctor-booking-time-group+.doctor-booking-time-group {
    margin-top: 18px;
}

.doctor-booking-time-group>div {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(6, minmax(100px, 1fr));
}

.doctor-booking-time-group label>span {
    border: 1px solid var(--border-color);
    border-radius: 7px;
    display: block;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 5px;
    text-align: center;
}

.doctor-booking-time-group label.selected>span {
    background: #2778db;
    border-color: #2778db;
    color: #fff;
}

.doctor-booking-time-group label.unavailable {
    cursor: pointer;
}

.doctor-booking-time-group label.unavailable>span {
    background: #fff0f0;
    border-color: #df4545;
    color: #b42323;
}

.doctor-booking-time-group label.unavailable>span::after {
    content: " · Fully booked";
    font-size: 9px;
    font-weight: 800;
}

.booking-slot-unavailable-message {
    background: #fff0f0;
    border: 1px solid #efb1b1;
    border-radius: 8px;
    color: #a82424;
    font-size: 12px;
    font-weight: 700;
    margin-top: 12px;
    padding: 10px 12px;
}

.booking-slot-unavailable-message[hidden] {
    display: none;
}

.booking-slot-unavailable-message.showing {
    animation: unavailable-slot-message-in 240ms ease-out both;
}

@keyframes unavailable-slot-message-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doctor-booking-reason {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-top: 20px;
}

.doctor-booking-reason small {
    color: var(--secondary-text);
    font-weight: 500;
}

.doctor-booking-reason textarea {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: block;
    font: inherit;
    margin-top: 7px;
    padding: 11px;
    resize: vertical;
    width: 100%;
}

.booking-request-modal-backdrop {
    align-items: center;
    background: rgba(0, 37, 43, 0.55);
    display: flex;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: min(10vh, 80px) min(25vw, 420px);
    position: fixed;
    z-index: 100;
}

.booking-request-modal-backdrop[hidden] {
    display: none;
}

.booking-request-modal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 31, 37, 0.28);
    max-width: 620px;
    padding: 26px;
    position: relative;
    width: 100%;
}

.booking-request-modal h3 {
    font-size: 20px;
    margin: 0 44px 8px 0;
}

.booking-request-modal-close {
    align-items: center;
    background: #f1f4f5;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    font-size: 24px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 2px;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 36px;
}

.booking-request-summary {
    background: #eef6ff;
    border-radius: 8px;
    color: #245c91;
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
    padding: 11px 13px;
}

.booking-request-modal .doctor-booking-reason {
    margin-top: 0;
}

.booking-request-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.booking-service-selector {
    border: 0;
    margin: 18px 0 0;
    padding: 0;
}

.booking-service-selector legend {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.booking-service-selector>div {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-service-option {
    background: #f7f9fa;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    display: block;
    padding: 13px;
}

.booking-service-option.selected {
    background: #eaf6f3;
    border-color: #008a96;
    box-shadow: inset 0 0 0 1px #008a96;
}

.booking-service-option.unavailable {
    cursor: not-allowed;
    opacity: .5;
}

.booking-service-option input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.booking-service-option>span,
.booking-service-option>strong {
    display: block;
}

.booking-service-option>span {
    color: var(--secondary-text);
    font-size: 11px;
    margin-bottom: 5px;
}

.booking-service-option>strong {
    font-size: 16px;
}

.booking-service-option>strong small {
    color: var(--secondary-text);
    font-size: 10px;
}

.booking-fee-total {
    align-items: center;
    background: #fff8db;
    border: 1px solid #f1d468;
    border-radius: 9px;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 11px 13px;
}

.booking-fee-total[hidden] {
    display: none;
}

.booking-fee-total span {
    color: #6c5915;
    font-size: 11px;
}

.booking-fee-total strong {
    color: #493900;
    font-size: 16px;
}

.consultation-service-price {
    margin-top: 5px !important;
}

.consultation-service-price strong {
    color: #007784;
}

.booking-attachment-field {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-top: 18px;
}

.booking-attachment-field small,
.booking-attachment-field>span {
    color: var(--secondary-text);
    font-weight: 500;
}

.booking-attachment-field input {
    border: 1px dashed #aebfc2;
    border-radius: 8px;
    display: block;
    margin: 7px 0 6px;
    padding: 11px;
    width: 100%;
}

.booking-attachment-preview {
    background: #f5f8f8;
    border-radius: 8px;
    color: var(--secondary-text);
    font-size: 11px;
    margin: 10px 0 0;
    padding: 10px 10px 10px 28px;
}

.booking-attachment-preview .invalid {
    color: #b42318;
    font-weight: 750;
}

.appointment-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.appointment-attachments a {
    color: var(--primary-text);
    display: grid;
    gap: 4px;
    max-width: 100px;
}

.appointment-attachments img,
.appointment-video-file {
    align-items: center;
    background: #eaf3ff;
    border-radius: 7px;
    display: flex;
    height: 66px;
    justify-content: center;
    object-fit: cover;
    width: 88px;
}

.appointment-attachments small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .booking-request-modal-backdrop {
        padding: 10vh 16px;
    }

    .booking-request-modal {
        padding: 22px 18px;
    }

    .booking-request-modal-actions .btn {
        width: 100%;
    }
}

.doctor-booking-submit {
    margin-top: 14px;
}

.public-booking-shift-actions {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.public-booking-shift-actions .doctor-booking-submit {
    margin-top: 0;
}

.booking-back-action {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    padding: 12px 17px;
}

.booking-back-action:hover {
    background: #f1f6f5;
}

@keyframes booking-day-ripple {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(12);
    }
}

@keyframes booking-calendar-out {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.97);
    }
}

@keyframes booking-calendar-return {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes booking-shifts-radial-in {
    0% {
        clip-path: circle(0 at var(--reveal-x) var(--reveal-y));
        opacity: 0.35;
        transform: scale(0.985);
    }

    100% {
        clip-path: circle(160% at var(--reveal-x) var(--reveal-y));
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes booking-shifts-out {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.985);
    }
}

@media (prefers-reduced-motion: reduce) {

    .calendar-day.activating::after,
    .doctor-calendar.is-leaving,
    .doctor-calendar-header.is-leaving,
    .doctor-calendar.is-returning,
    .doctor-calendar-header.is-returning,
    .busy-time-editor.is-revealing,
    .busy-time-editor.is-closing,
    .public-booking-day.activating::after,
    .public-booking-calendar.is-leaving,
    .public-booking-calendar-header.is-leaving,
    .public-booking-calendar.is-returning,
    .public-booking-calendar-header.is-returning,
    .public-booking-shifts.is-revealing,
    .public-booking-shifts.is-closing {
        animation: none;
    }
}

.doctor-public-stats strong {
    color: var(--primary-text);
    font-size: 23px;
}

.doctor-public-stats strong span,
.doctor-rating-large,
.doctor-review-author b {
    color: #efaa00;
}

.doctor-public-stats>div>span {
    color: var(--secondary-text);
    font-size: 11px;
    margin-top: 3px;
}

.doctor-public-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 340px;
    margin-top: 22px;
}

.doctor-public-content {
    display: grid;
    gap: 22px;
}

.doctor-public-section,
.doctor-review-form-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.doctor-public-section h2,
.doctor-review-form-card h2 {
    font-size: 19px;
    margin: 0 0 14px;
}

.doctor-introduction {
    font-size: 14px;
    line-height: 1.75;
    margin: 0;
}

.introduction-translation-button {
    background: transparent;
    border: 0;
    color: #087f8c;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    margin-top: 14px;
    padding: 0;
}

.introduction-translation-button:hover {
    text-decoration: underline;
}

.introduction-translation {
    background: #f2f8f7;
    border-left: 3px solid var(--accent-teal);
    border-radius: 0 8px 8px 0;
    margin-top: 14px;
    padding: 13px 15px;
}

.introduction-translation[hidden] {
    display: none;
}

.introduction-translation strong {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

.introduction-translation p {
    color: var(--secondary-text);
    line-height: 1.65;
    margin: 0;
}

.doctor-training-history {
    border-top: 1px solid var(--border-color);
    margin-top: 26px;
    padding-top: 24px;
}

.doctor-training-history h2 {
    margin-top: 0;
}

.public-recommended-doctors {
    border-top: 1px solid var(--border-color);
    margin-top: 22px;
    padding-top: 18px;
}

.public-recommended-doctors h3 {
    font-size: 15px;
    margin: 0 0 11px;
}

.public-recommended-doctors>div {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-recommended-doctors a {
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-text);
    display: grid;
    gap: 2px 9px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 9px;
}

.public-recommended-doctors a:hover {
    border-color: var(--accent-teal);
    text-decoration: none;
}

.public-recommended-doctors a>span {
    align-items: center;
    background: #dff3ef;
    border-radius: 50%;
    display: flex;
    font-weight: 900;
    grid-row: 1 / 3;
    height: 38px;
    justify-content: center;
    overflow: hidden;
    width: 38px;
}

.public-recommended-doctors img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.public-recommended-doctors strong {
    font-size: 12px;
}

.public-recommended-doctors small {
    color: var(--secondary-text);
    font-size: 9px;
}

.doctor-public-empty {
    color: var(--secondary-text);
    font-size: 13px;
    margin: 0;
}

.doctor-review-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.doctor-review-heading h2 {
    margin-bottom: 4px;
}

.doctor-review-heading p {
    color: var(--secondary-text);
    font-size: 12px;
    margin: 0;
}

.doctor-rating-large {
    font-size: 20px;
    font-weight: 900;
}

.doctor-review-list {
    display: grid;
    gap: 11px;
}

.doctor-review-card {
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.doctor-review-author {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
}

.doctor-review-author>span {
    align-items: center;
    background: #dff3ef;
    border-radius: 50%;
    color: var(--accent-teal);
    display: flex;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.doctor-review-author strong,
.doctor-review-author small {
    display: block;
}

.doctor-review-author strong {
    font-size: 13px;
}

.doctor-review-author small {
    color: var(--secondary-text);
    font-size: 10px;
    margin-top: 2px;
}

.doctor-review-author b {
    font-size: 12px;
}

.doctor-review-card>p {
    font-size: 13px;
    line-height: 1.55;
    margin: 10px 0 0 48px;
}

.doctor-review-form-card {
    position: sticky;
    top: 20px;
}

.doctor-rating-options {
    border: 0;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 0 16px;
    padding: 0;
}

.doctor-rating-options legend {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
}

.doctor-rating-options label {
    cursor: pointer;
    text-align: center;
}

.doctor-rating-options input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.doctor-rating-options label>span {
    background: #f4f6f7;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    color: #aab1b5;
    display: block;
    font-size: 21px;
    padding: 7px 0;
}

.doctor-rating-options input:checked+span {
    background: #fff6da;
    border-color: #efaa00;
    color: #efaa00;
}

.doctor-rating-options small {
    display: none;
}

.doctor-review-comment {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 14px;
}

.doctor-review-comment textarea,
.doctor-review-comment select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: block;
    font: inherit;
    margin-top: 7px;
    padding: 11px;
    resize: vertical;
    width: 100%;
}

.doctor-review-comment select {
    background: #fff;
    cursor: pointer;
}

.doctor-review-form-card .btn {
    width: 100%;
}

@media (max-width: 820px) {
    .doctor-service-fees {
        grid-template-columns: 1fr;
    }

    .doctor-booking-time-group>div {
        grid-template-columns: repeat(3, minmax(95px, 1fr));
    }

    .doctor-public-hero {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .doctor-public-avatar {
        font-size: 30px;
        height: 90px;
        width: 90px;
    }

    .doctor-public-stats {
        grid-column: 1 / -1;
    }

    .doctor-public-layout {
        grid-template-columns: 1fr;
    }

    .doctor-review-form-card {
        position: static;
    }
}

@media (max-width: 520px) {
    .booking-schedule-fields {
        grid-template-columns: 1fr;
    }

    .booking-service-selector>div {
        grid-template-columns: 1fr;
    }

    .doctor-service-fee-list {
        grid-template-columns: 1fr;
    }

    .public-booking-shift-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .public-booking-shift-actions button {
        width: 100%;
    }

    .public-booking-calendar {
        gap: 4px;
    }

    .public-booking-day {
        border-radius: 6px;
        min-height: 44px;
    }

    .public-booking-day small {
        font-size: 7px;
    }

    .doctor-booking-time-group>div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .doctor-public-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .doctor-public-avatar,
    .doctor-public-tags,
    .doctor-public-name {
        justify-self: center;
    }

    .doctor-public-tags,
    .doctor-public-name {
        justify-content: center;
    }

    .doctor-public-name h1 {
        font-size: 23px;
    }
}

/* === APPOINTMENT PAGE === */
.appointment-page {
    background: #f6f7f8;
}

.appointment-hero {
    background: linear-gradient(135deg, #e1f4f0 0%, #f7fbfc 100%);
    border-bottom: 1px solid #dfe7ea;
    padding: 56px 20px;
}

.appointment-hero-inner,
.appointment-content {
    margin: 0 auto;
    max-width: 1080px;
}

.appointment-hero-inner {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    align-items: center;
}

.appointment-hero h1 {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.appointment-hero p {
    color: var(--secondary-text);
    font-size: 16px;
    max-width: 580px;
}

.appointment-search {
    background: white;
    border: 1px solid #dce5ea;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 47, 54, 0.1);
    display: grid;
    gap: 12px;
    padding: 18px;
}

.appointment-search input {
    border: 1px solid var(--border-color);
    border-radius: 7px;
    font-size: 15px;
    height: 46px;
    padding: 0 14px;
}

.appointment-search button {
    background: var(--accent-teal);
    border: 0;
    border-radius: 7px;
    color: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    height: 46px;
}

.appointment-content {
    display: grid;
    gap: 28px;
    padding: 34px 20px 64px;
}

.appointment-section {
    background: white;
    border: 1px solid #e2e7eb;
    border-radius: 8px;
    padding: 22px;
}

.appointment-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

.specialty-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.specialty-chip-grid a {
    background: #eef8f6;
    border: 1px solid #b9e6df;
    border-radius: 999px;
    color: var(--primary-text);
    font-size: 14px;
    font-weight: 700;
    padding: 9px 14px;
}

.specialty-chip-grid a:hover {
    color: var(--accent-teal);
    text-decoration: none;
}

.appointment-doctor-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointment-doctor-card {
    border: 1px solid #e5e9ed;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 68px 1fr;
    padding: 14px;
}

.appointment-doctor-card img {
    border-radius: 50%;
    height: 68px;
    object-fit: cover;
    width: 68px;
}

.appointment-doctor-card h3 {
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 5px;
}

.appointment-doctor-card p,
.appointment-doctor-card span {
    color: var(--secondary-text);
    display: block;
    font-size: 12px;
}

.appointment-doctor-card>.doctor-avatar-fallback {
    align-items: center;
    align-self: start;
    background: #f3f5f7;
    border: 1px solid #edf0f4;
    color: #173f4c;
    display: flex;
    font-size: 22px;
    font-weight: 700;
    height: 68px;
    justify-content: center;
    line-height: 1;
    width: 68px;
}

.appointment-doctor-card a {
    align-self: end;
    color: var(--accent-teal);
    font-size: 13px;
    font-weight: 800;
    grid-column: 2;
}

@media (max-width: 760px) {

    .appointment-hero-inner,
    .appointment-doctor-grid {
        grid-template-columns: 1fr;
    }

    .appointment-hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 760px) {
    .search-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding: 14px 18px;
    }

    .search-nav nav {
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 4px;
        width: 100%;
    }

    .doctor-row {
        grid-template-columns: 72px 1fr;
        gap: 14px;
        padding: 18px;
    }

    .doctor-avatar {
        height: 68px;
        width: 68px;
    }

    .doctor-cta {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* === SPLIT LAYOUTS === */
.split-section {
    padding: 60px 0;
}

.bg-mint {
    background-color: var(--bg-mint);
}

.bg-white {
    background-color: white;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

/* Pills */
.pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.pill {
    background: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

/* === HOW IT WORKS === */
.how-it-works {
    padding: 60px 0;
    background: white;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: left;
}

.step-card img {
    width: 120px;
    margin: 0 auto 20px;
    display: block;
}

.step-number {
    color: var(--accent-teal);
    font-weight: bold;
    border: 1px solid var(--accent-teal);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 5px;
}

.step-card h4 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.step-card p {
    font-size: 14px;
    color: var(--secondary-text);
}

/* === FAQ & TESTIMONIAL === */
.faq-testimonial {
    padding: 60px 0;
    background: #f0f6f4;
}

.faq-list {
    max-width: 1200px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: space-between;
    list-style: none;
    padding: 20px 0;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icons {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 18px;
    justify-content: center;
    margin-left: 24px;
    width: 18px;
}

.faq-icon {
    height: 18px;
    object-fit: contain;
    width: 18px;
}

.faq-icon-close,
.faq-item[open] .faq-icon-open {
    display: none;
}

.faq-item[open] .faq-icon-close {
    display: block;
}

.faq-answer {
    color: var(--primary-text);
    font-size: 12px;
    line-height: 1.5;
    max-width: 920px;
    padding: 0 34px 18px 0;
}

.faq-answer p {
    margin-bottom: 10px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-note {
    font-size: 11px;
    font-weight: 600;
}

.faq-all-link {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 24px;
}

.testimonial {
    text-align: center;
    margin-top: 80px;
}

.testimonial video,
.testimonial-image {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.quote-icon {
    color: var(--accent-teal);
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
}

.quote-text {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 10px auto;
    font-style: italic;
}

.quote-author {
    font-size: 12px;
    color: var(--secondary-text);
}

/* === BOTTOM BANNER & FOOTER === */
.bottom-banner {
    background-color: #003B44;
    color: white;
    padding: 40px 0;
}

.bottom-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-banner h2 {
    font-size: 24px;
}

footer {
    background-color: var(--Mediall-nav);
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-featured-posts {
    background: #f3f7f7;
    border-top: 1px solid #d7e1e1;
    padding: 34px 0;
}

.visually-hidden {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.footer-featured-groups {
    display: grid;
    gap: 42px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-featured-group h3 {
    color: #101820;
    font-size: 22px;
    margin: 0 0 20px;
}

.footer-featured-list {
    display: grid;
    gap: 17px;
}

.footer-featured-list a {
    color: #152126;
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
}

.footer-featured-list a:hover {
    color: #2865d8;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .footer-featured-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .footer-featured-groups {
        grid-template-columns: 1fr;
    }
}