:root {
    --primary: #c8212c;
    --primary-strong: #9f1720;
    --primary-soft: #fff0f1;
    --secondary: #2457a7;
    --accent: #e5b72f;
    --ink: #27324a;
    --muted: #6d7280;
    --surface: #ffffff;
    --surface-soft: #fffaf0;
    --border: #eadfbd;
    --shadow-sm: 0 8px 24px rgba(45, 48, 69, .08);
    --shadow-md: 0 18px 50px rgba(47, 47, 70, .13);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-strong);
}

img {
    max-width: 100%;
}

.btn {
    border-radius: 11px;
    font-weight: 700;
    padding: .72rem 1.15rem;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

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

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-strong);
    --bs-btn-hover-border-color: var(--primary-strong);
    --bs-btn-active-bg: var(--primary-strong);
    --bs-btn-active-border-color: var(--primary-strong);
    box-shadow: 0 8px 18px rgba(7, 95, 88, .18);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: #9fc8c4;
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
}

.btn-light-primary {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: transparent;
}

.btn-light-primary:hover {
    color: #fff;
    background: var(--primary);
}

.btn-icon-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
}

.icon-action {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--primary);
    background: #fff;
    transition: .18s ease;
}

.icon-action:hover,
.icon-action:focus-visible {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 18px rgba(7, 95, 88, .18);
    transform: translateY(-1px);
}

.icon-action-primary {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.icon-action-primary:hover {
    background: var(--primary-strong);
}

.utility-bar {
    color: #dff6f3;
    background: #0c3f3c;
    font-size: .86rem;
}

.utility-content {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.utility-item,
.utility-actions,
.utility-link {
    display: flex;
    align-items: center;
}

.utility-item {
    gap: .55rem;
    min-width: 0;
}

.utility-icon {
    color: #70d7cc;
}

.utility-actions {
    gap: 1.25rem;
}

.utility-link {
    gap: .5rem;
    color: #e8fbf9;
    text-decoration: none;
    white-space: nowrap;
}

.utility-link:hover {
    color: #fff;
}

.clinic-navbar {
    min-height: 82px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(215, 231, 228, .85);
    box-shadow: 0 5px 24px rgba(23, 62, 59, .06);
    backdrop-filter: blur(12px);
}

.clinic-brand {
    display: inline-flex;
    align-items: center;
    gap: .78rem;
    color: var(--ink);
    text-decoration: none;
    max-width: 350px;
}

.brand-logo,
.brand-symbol {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: var(--primary-soft);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.brand-symbol {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-size: 1.5rem;
}

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

.brand-copy strong,
.brand-copy small {
    display: block;
}

.brand-copy strong {
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-copy small {
    margin-top: .15rem;
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.clinic-navbar .navbar-nav {
    gap: .15rem;
}

.clinic-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #355251;
    font-size: .93rem;
    font-weight: 700;
    border-radius: 9px;
    padding: .62rem .72rem !important;
}

.clinic-navbar .nav-link:hover,
.clinic-navbar .nav-link:focus {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-icon {
    color: var(--secondary);
    font-size: .88rem;
}

.nav-appointment-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    white-space: nowrap;
}

.clinic-toggler {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 11px;
}

.clinic-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(7, 95, 88, .12);
}

.clinic-dropdown {
    min-width: 230px;
    padding: .55rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

.clinic-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .75rem;
    border-radius: 9px;
    color: #365251;
    font-weight: 600;
}

.clinic-dropdown .dropdown-item i {
    color: var(--secondary);
}

.clinic-dropdown .dropdown-item:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.hero-section,
.hero-section .carousel-item {
    position: relative;
}

.hero-img {
    width: 100%;
    height: min(680px, 70vh);
    min-height: 500px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 45, 42, .92) 0%, rgba(5, 45, 42, .72) 42%, rgba(5, 45, 42, .12) 76%);
}

.hero-content-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 720px;
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .48rem .82rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: #d9fffb;
    background: rgba(255, 255, 255, .1);
    font-size: .84rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    max-width: 680px;
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -.04em;
}

.hero-content p {
    max-width: 620px;
    margin-bottom: 1.8rem;
    color: #e6f5f3;
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.hero-control {
    width: 8%;
    opacity: 1;
}

.hero-control > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(9, 58, 54, .58);
    backdrop-filter: blur(8px);
}

.carousel-indicators [data-bs-target] {
    width: 28px;
    height: 4px;
    border: 0;
    border-radius: 99px;
}

.quick-access-strip {
    position: relative;
    z-index: 2;
    margin-top: -36px;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.quick-access-card {
    min-height: 105px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    color: var(--ink);
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(218, 233, 231, .95);
    border-radius: 17px;
    box-shadow: var(--shadow-md);
    transition: .2s ease;
}

.quick-access-card:hover {
    color: var(--ink);
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(11, 65, 60, .16);
}

.quick-access-card > span {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 14px;
    font-size: 1.3rem;
}

.quick-access-card > div {
    min-width: 0;
    flex: 1;
}

.quick-access-card strong,
.quick-access-card small {
    display: block;
}

.quick-access-card strong {
    font-size: .98rem;
}

.quick-access-card small {
    color: var(--muted);
    font-size: .8rem;
}

.quick-access-card > i {
    color: var(--secondary);
}

.section {
    padding: 88px 0;
}

.soft-section,
.appointment-page {
    background: linear-gradient(180deg, #f4faf9 0%, #fbfdfd 100%);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading.text-start {
    margin-left: 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: .55rem;
    color: var(--secondary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.section-heading p,
.section-lead {
    margin: .85rem auto 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.lead-content {
    color: #425b59;
    font-size: 1.02rem;
}

.feature-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.7rem;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .8rem;
    color: #345351;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.feature-chip i {
    color: var(--secondary);
}

.care-card {
    position: relative;
    overflow: hidden;
    padding: 2.2rem;
    color: #fff;
    background: linear-gradient(145deg, #0b625a, #0f8a7e);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.care-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -90px;
    bottom: -100px;
    border: 35px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.care-card-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    font-size: 1.45rem;
}

.care-card > span {
    color: #aef1e9;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.care-card h3 {
    margin: .6rem 0 1rem;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.care-card p {
    color: #dcf6f3;
}

.service-card,
.doctor-card,
.doctor-profile-card,
.service-detail-card,
.form-card,
.content-page-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 1.55rem;
    transition: .2s ease;
}

.service-card:hover,
.doctor-card:hover,
.service-detail-card:hover {
    transform: translateY(-5px);
    border-color: #aed5d1;
    box-shadow: var(--shadow-md);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.service-icon,
.service-detail-icon {
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--primary-soft);
}

.service-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 1.35rem;
}

.service-count {
    padding: .35rem .6rem;
    color: var(--muted);
    background: #f5f8f8;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

.service-card h3 {
    margin: 1.15rem 0 .9rem;
    font-size: 1.28rem;
    font-weight: 800;
}

.service-preview-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
}

.service-preview-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .38rem 0;
    color: #4e6563;
}

.service-preview-list i {
    color: var(--secondary);
    font-size: .72rem;
}

.card-action-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    color: var(--primary);
    border-top: 1px solid #edf3f2;
    text-decoration: none;
    font-weight: 800;
}

.doctor-card {
    overflow: hidden;
    transition: .2s ease;
}

.doctor-image-wrap {
    position: relative;
    overflow: hidden;
}

.doctor-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: transform .35s ease;
}

.doctor-card:hover img {
    transform: scale(1.035);
}

.doctor-status {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .38rem .65rem;
    color: #175249;
    background: rgba(255, 255, 255, .92);
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.doctor-status i {
    color: #25a56f;
    font-size: .55rem;
}

.doctor-card-body {
    padding: 1.25rem;
}

.doctor-speciality {
    color: var(--secondary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.doctor-card h3,
.doctor-profile-copy h2 {
    color: var(--ink);
    font-weight: 800;
}

.doctor-card h3 {
    margin: .35rem 0 .25rem;
    font-size: 1.18rem;
}

.doctor-degree {
    min-height: 1.5rem;
    margin-bottom: .85rem;
    color: var(--muted);
}

.doctor-meta,
.doctor-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.doctor-meta {
    justify-content: space-between;
    padding: .75rem 0;
    margin-bottom: .85rem;
    border-top: 1px solid #edf3f2;
}

.doctor-meta span,
.doctor-profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #526966;
    font-size: .82rem;
    font-weight: 700;
}

.doctor-meta i,
.doctor-profile-meta i {
    color: var(--secondary);
}

.appointment-cta-section {
    padding: 30px 0 82px;
}

.appointment-cta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    color: #fff;
    background: linear-gradient(120deg, #0c5751, #0b8175);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.appointment-cta-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    font-size: 1.8rem;
}

.appointment-cta-copy span {
    color: #aef0e8;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.appointment-cta-copy h2 {
    margin: .35rem 0 .45rem;
    font-size: 1.85rem;
    font-weight: 800;
}

.appointment-cta-copy p {
    margin: 0;
    color: #dcf5f2;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(110deg, #0b4b47 0%, #0a7168 70%, #15978b 100%);
}

.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.page-hero::before {
    width: 290px;
    height: 290px;
    right: -70px;
    top: -150px;
}

.page-hero::after {
    width: 210px;
    height: 210px;
    right: 120px;
    bottom: -150px;
}

.page-hero-compact {
    padding: 58px 0;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.page-hero-icon {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
    font-size: 1.7rem;
    backdrop-filter: blur(8px);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.page-hero p {
    max-width: 700px;
    margin: .45rem 0 0;
    color: #dff5f2;
}

.doctor-profile-card {
    padding: 1.5rem;
}

.doctor-profile-top {
    display: flex;
    gap: 1.25rem;
}

.doctor-profile-image {
    width: 132px;
    height: 150px;
    flex: 0 0 132px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--primary-soft);
}

.doctor-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-profile-copy {
    min-width: 0;
    padding-top: .2rem;
}

.doctor-profile-copy h2 {
    margin: .3rem 0 .2rem;
    font-size: 1.45rem;
}

.doctor-profile-meta {
    flex-direction: column;
    gap: .4rem;
}

.doctor-about {
    margin: 1.2rem 0 0;
    color: #526866;
}

.schedule-panel {
    margin-top: 1.25rem;
    padding: 1rem;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.schedule-panel-heading {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
}

.schedule-panel-heading > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: #fff;
    border-radius: 10px;
}

.schedule-panel-heading strong,
.schedule-panel-heading small {
    display: block;
}

.schedule-panel-heading small {
    color: var(--muted);
}

.schedule-list {
    padding-top: .55rem;
}

.schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .48rem 0;
    color: #506865;
    border-bottom: 1px dashed #dbe6e4;
}

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

.schedule-row strong {
    color: var(--ink);
    font-size: .88rem;
}

.schedule-row i {
    color: var(--secondary);
}

.content-empty-state {
    padding: 4rem 1.5rem;
    text-align: center;
    background: #fff;
    border: 1px dashed #bad4d1;
    border-radius: var(--radius-md);
}

.content-empty-state > i {
    color: var(--secondary);
    font-size: 2.8rem;
}

.content-empty-state h3 {
    margin: 1rem 0 .35rem;
    font-weight: 800;
}

.content-empty-state p {
    margin: 0;
    color: var(--muted);
}

.service-category-section + .service-category-section {
    margin-top: 4rem;
}

.category-heading {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    font-size: 1.35rem;
}

.category-heading > div:nth-child(2) > span {
    color: var(--secondary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.category-heading h2 {
    margin: .15rem 0 0;
    font-size: 1.8rem;
    font-weight: 800;
}

.category-count {
    padding: .45rem .7rem;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.service-detail-card {
    overflow: hidden;
    transition: .2s ease;
}

.service-detail-image {
    height: 190px;
    overflow: hidden;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.service-detail-card:hover .service-detail-image img {
    transform: scale(1.04);
}

.service-detail-body {
    position: relative;
    padding: 1.35rem;
}

.service-detail-icon {
    width: 44px;
    height: 44px;
    margin-bottom: .85rem;
    border-radius: 12px;
}

.service-detail-body h3 {
    font-size: 1.18rem;
    font-weight: 800;
}

.service-detail-body p,
.service-html-content {
    color: #576c6a;
}

.service-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .85rem;
    margin-top: 1rem;
    border-top: 1px solid #edf3f2;
}

.service-price span {
    color: var(--muted);
    font-size: .8rem;
}

.service-price strong {
    color: var(--primary);
    font-size: 1.2rem;
}

.service-contact-cta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem;
    margin-top: 4rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.service-contact-cta > div:first-child {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 14px;
    font-size: 1.25rem;
}

.service-contact-cta h3,
.service-contact-cta p {
    margin: 0;
}

.service-contact-cta h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.service-contact-cta p {
    color: var(--muted);
}

.content-page-section {
    background: var(--surface-soft);
}

.content-page-card {
    padding: clamp(1.4rem, 4vw, 3rem);
}

.content-page-card h1,
.content-page-card h2,
.content-page-card h3 {
    color: var(--ink);
    font-weight: 800;
}

.content-page-card img {
    height: auto;
    border-radius: 12px;
}

.form-card {
    padding: clamp(1.2rem, 3vw, 2.3rem);
    box-shadow: var(--shadow-md);
}

.appointment-form-card {
    overflow: visible;
}

.form-card-heading,
.form-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-card-heading {
    padding-bottom: 1.35rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.form-card-icon,
.form-section-title > span,
.section-icon,
.selected-slot-icon {
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--primary-soft);
}

.form-card-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    font-size: 1.25rem;
}

.form-card-heading h2,
.form-card-heading p,
.form-section-title h3,
.form-section-title p {
    margin: 0;
}

.form-card-heading h2 {
    font-size: 1.45rem;
    font-weight: 800;
}

.form-card-heading p,
.form-section-title p {
    color: var(--muted);
}

.form-label {
    color: #294946;
    font-size: .9rem;
    font-weight: 800;
}

.form-control,
.form-select {
    min-height: 48px;
    color: var(--ink);
    border-color: #d5e4e2;
    border-radius: 11px;
}

.form-control:focus,
.form-select:focus {
    border-color: #72b8b1;
    box-shadow: 0 0 0 .22rem rgba(7, 95, 88, .1);
}

textarea.form-control {
    min-height: auto;
}

.input-with-icon {
    position: relative;
}

.input-with-icon > i {
    position: absolute;
    z-index: 2;
    left: 16px;
    top: 50%;
    color: #6f8b88;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-with-icon .form-control,
.input-with-icon .form-select {
    padding-left: 44px;
}

.alert-modern {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 0;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.slot-section {
    padding: 1.25rem;
    background: #f8fcfb;
    border: 1px solid #d6e9e6;
    border-radius: 17px;
}

.slot-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 13px;
    font-size: 1.1rem;
}

.slot-section-header h3,
.slot-section-header p {
    margin: 0;
}

.slot-section-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

.slot-section-header p {
    color: var(--muted);
    font-size: .9rem;
}

.slot-empty-state,
.slot-loading {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #fff;
    border: 1px dashed #b9d5d2;
    border-radius: 14px;
    text-align: center;
}

.slot-empty-state {
    flex-direction: column;
}

.empty-state-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: .85rem;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 17px;
    font-size: 1.45rem;
}

.slot-empty-state h4,
.slot-empty-state p {
    margin: 0;
}

.slot-empty-state h4 {
    font-size: 1.05rem;
    font-weight: 800;
}

.slot-empty-state p {
    max-width: 560px;
    margin-top: .3rem;
    color: var(--muted);
}

.slot-loading {
    gap: .9rem;
    color: var(--primary);
}

.slot-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

.slot-loading strong,
.slot-loading small {
    display: block;
    text-align: left;
}

.slot-loading small {
    color: var(--muted);
}

.slot-browser {
    display: grid;
    gap: 1rem;
}

.slot-date-navigation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
}

.slot-date-tabs {
    display: flex;
    gap: .65rem;
    min-width: 0;
    overflow-x: auto;
    padding: .15rem .1rem .45rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #9bc4c0 transparent;
}

.slot-date-tabs::-webkit-scrollbar,
.slot-time-track::-webkit-scrollbar {
    height: 7px;
}

.slot-date-tabs::-webkit-scrollbar-thumb,
.slot-time-track::-webkit-scrollbar-thumb {
    background: #a9cbc7;
    border-radius: 999px;
}

.slot-date-tab {
    min-width: 142px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: .55rem;
    padding: .72rem .8rem;
    color: #405d5a;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
    transition: .18s ease;
}

.slot-date-tab > i {
    grid-row: 1 / 3;
    align-self: center;
    color: var(--secondary);
    font-size: 1.05rem;
}

.slot-date-tab span,
.slot-date-tab small {
    display: block;
    white-space: nowrap;
}

.slot-date-tab span {
    color: var(--ink);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.slot-date-tab small {
    color: var(--muted);
    font-size: .76rem;
}

.slot-date-tab:hover,
.slot-date-tab.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 18px rgba(7, 95, 88, .16);
}

.slot-date-tab.active span,
.slot-date-tab.active small,
.slot-date-tab.active i,
.slot-date-tab:hover span,
.slot-date-tab:hover small,
.slot-date-tab:hover i {
    color: #fff;
}

.slot-time-panel {
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.slot-time-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .8rem;
    margin-bottom: .75rem;
    border-bottom: 1px solid #edf3f2;
}

.slot-time-panel-header small,
.slot-time-panel-header strong {
    display: block;
}

.slot-time-panel-header small {
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.slot-time-panel-header strong {
    color: var(--ink);
    font-size: 1rem;
}

.slot-time-scroll-actions {
    display: flex;
    gap: .45rem;
}

.slot-time-scroll-actions .icon-action,
.slot-date-navigation .icon-action {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}

.slot-time-track {
    display: flex;
    align-items: stretch;
    gap: .55rem;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: .15rem .05rem .65rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #9bc4c0 transparent;
}

.slot-time-btn {
    min-width: 112px;
    height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    padding: .45rem .72rem;
    color: var(--primary);
    background: #fff;
    border: 1px solid #9dc7c2;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: .16s ease;
}

.slot-time-btn > i {
    flex: 0 0 auto;
    color: var(--secondary);
    font-size: .78rem;
}

.slot-time-label {
    display: inline-block;
    color: inherit;
    font-size: .84rem;
    font-weight: 800;
    opacity: 1;
    visibility: visible;
}

.slot-capacity {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: .18rem .38rem;
    color: #41635f;
    background: var(--primary-soft);
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
}

.slot-time-btn:hover,
.slot-time-btn:focus-visible,
.slot-time-btn.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 18px rgba(7, 95, 88, .18);
    transform: translateY(-1px);
}

.slot-time-btn:hover > i,
.slot-time-btn:focus-visible > i,
.slot-time-btn.active > i {
    color: #fff;
}

.slot-time-btn:hover .slot-capacity,
.slot-time-btn.active .slot-capacity {
    color: #fff;
    background: rgba(255, 255, 255, .18);
}

.slot-scroll-hint {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .35rem;
    color: #78908d;
    font-size: .72rem;
}

.selected-slot-summary {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1rem;
    color: var(--ink);
    background: #eaf8f5;
    border: 1px solid #a9d8d1;
    border-radius: 14px;
}

.selected-slot-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #fff;
    background: var(--primary);
    border-radius: 12px;
}

.selected-slot-summary small,
.selected-slot-summary strong {
    display: block;
}

.selected-slot-summary small {
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.selected-slot-summary strong {
    font-size: 1rem;
}

.form-section-title {
    padding-top: .5rem;
}

.form-section-title > span {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
}

.form-section-title h3 {
    font-size: 1.1rem;
    font-weight: 800;
}

.form-submit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

.submit-note {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--muted);
    font-size: .82rem;
}

.submit-note i {
    color: var(--secondary);
}

.footer {
    padding: 65px 0 0;
    color: #dcefed;
    background: #0c3432;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
}

.footer-brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-radius: 14px;
    font-size: 1.25rem;
}

.footer-brand h4,
.footer-brand small {
    margin: 0;
}

.footer-brand h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
}

.footer-brand small,
.footer-copy {
    color: #aecaC7;
}

.footer-title {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.footer-contact-list,
.footer-links {
    display: grid;
    gap: .75rem;
}

.footer-contact-list > div {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: .55rem;
    align-items: start;
}

.footer-contact-list i,
.footer-links i {
    color: #62d3c8;
}

.footer a {
    color: #dcefed;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    margin-top: 3rem;
    color: #a9c5c2;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .82rem;
}

@media (max-width: 1199.98px) {
    .clinic-navbar .nav-link {
        padding-inline: .55rem !important;
    }
}

@media (max-width: 991.98px) {
    .clinic-navbar {
        min-height: 74px;
    }

    .clinic-navbar .navbar-collapse {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding: .8rem 0 1rem;
    }

    .clinic-navbar .nav-link {
        width: 100%;
        padding: .75rem !important;
    }

    .clinic-dropdown {
        box-shadow: none;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .quick-access-strip {
        margin-top: 1rem;
    }

    .appointment-cta,
    .service-contact-cta {
        grid-template-columns: auto 1fr;
    }

    .appointment-cta > a,
    .service-contact-cta > a {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 767.98px) {
    .utility-item {
        display: none;
    }

    .utility-content {
        justify-content: center;
    }

    .brand-logo,
    .brand-symbol {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .brand-copy strong {
        max-width: 210px;
        font-size: .95rem;
    }

    .brand-copy small {
        font-size: .62rem;
    }

    .hero-img {
        min-height: 530px;
        height: 68vh;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(5, 45, 42, .94), rgba(5, 45, 42, .72));
    }

    .hero-content-wrap {
        align-items: flex-end;
        padding-bottom: 4.5rem;
    }

    .hero-content h1 {
        font-size: 2.45rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding: 62px 0;
    }

    .page-hero-compact {
        padding: 45px 0;
    }

    .page-hero-content {
        align-items: flex-start;
    }

    .page-hero-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 15px;
        font-size: 1.3rem;
    }

    .doctor-profile-top {
        flex-direction: column;
    }

    .doctor-profile-image {
        width: 100%;
        height: 260px;
    }

    .category-heading {
        grid-template-columns: auto 1fr;
    }

    .category-count {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .appointment-cta,
    .service-contact-cta {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .appointment-cta-icon,
    .service-contact-cta > div:first-child {
        width: 56px;
        height: 56px;
    }

    .slot-section {
        padding: .9rem;
    }

    .slot-section-header {
        align-items: flex-start;
    }

    .slot-section-header h3 {
        font-size: 1.05rem;
    }

    .slot-date-navigation {
        grid-template-columns: minmax(0, 1fr);
    }

    .slot-date-navigation > .icon-action {
        display: none;
    }

    .slot-date-tab {
        min-width: 130px;
    }

    .slot-time-panel {
        padding: .8rem;
    }

    .slot-time-scroll-actions {
        display: none;
    }

    .slot-time-btn {
        min-width: 104px;
        height: 40px;
        padding: .42rem .62rem;
    }

    .form-submit-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .form-submit-bar .btn {
        width: 100%;
    }

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

@media (max-width: 449.98px) {
    .brand-copy strong {
        max-width: 155px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .quick-access-card {
        min-height: 92px;
    }

    .page-hero-content {
        gap: .8rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: .9rem;
    }

    .slot-section-header .section-icon {
        display: none;
    }

    .slot-date-tab {
        min-width: 120px;
    }

    .slot-time-btn {
        min-width: 98px;
        font-size: .8rem;
    }
}


/* Appointment booking confirmation */
.confirmation-hero {
    position: relative;
    overflow: hidden;
}

.confirmation-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -110px;
    top: -230px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 52px rgba(255, 255, 255, .04), 0 0 0 104px rgba(255, 255, 255, .025);
    pointer-events: none;
}

.confirmation-hero-icon {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.confirmation-page {
    background:
        radial-gradient(circle at 8% 12%, rgba(17, 153, 142, .08), transparent 27%),
        linear-gradient(180deg, #f5fbfa 0%, #fff 72%);
}

.confirmation-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 28px 75px rgba(8, 56, 52, .12);
}

.confirmation-card-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f1fbf8, #fff 68%);
    border-bottom: 1px solid var(--border);
}

.confirmation-success-mark {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 24px;
    background: rgba(11, 126, 116, .1);
}

.confirmation-success-mark span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(8, 108, 99, .25);
}

.confirmation-heading-copy h2 {
    margin: .18rem 0 .35rem;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.confirmation-heading-copy p,
.confirmation-heading-copy .confirmation-kicker {
    margin: 0;
    color: var(--muted);
}

.confirmation-heading-copy .confirmation-kicker {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.booking-reference-box {
    min-width: 230px;
    padding: 1rem 1.1rem;
    text-align: right;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(8, 56, 52, .06);
}

.booking-reference-box small,
.booking-reference-box strong {
    display: block;
}

.booking-reference-box small {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.booking-reference-box > strong {
    margin: .2rem 0 .55rem;
    color: var(--ink);
    font-size: 1.02rem;
    letter-spacing: .025em;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .38rem .65rem;
    font-size: .72rem;
    font-weight: 800;
    border-radius: 999px;
}

.status-pending {
    color: #8a5a00;
    background: #fff4d6;
}

.callback-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    margin: 2rem;
    padding: 1.25rem 1.35rem;
    color: #164d48;
    background: linear-gradient(135deg, #e8f8f4, #f7fcfb);
    border: 1px solid #bfe6df;
    border-radius: 20px;
}

.callback-notice-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: var(--primary);
    border-radius: 15px;
}

.callback-notice h3 {
    margin: 0 0 .25rem;
    font-size: 1.05rem;
}

.callback-notice p {
    margin: 0;
    color: #47736f;
    line-height: 1.65;
}

.confirmation-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.confirmation-detail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .9rem;
    min-height: 94px;
    padding: 1rem;
    background: #fbfdfd;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.confirmation-detail-wide {
    grid-column: 1 / -1;
}

.confirmation-detail-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 14px;
}

.confirmation-detail small,
.confirmation-detail strong,
.confirmation-detail div > span {
    display: block;
}

.confirmation-detail small {
    margin-bottom: .18rem;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.confirmation-detail strong {
    color: var(--ink);
    font-size: .95rem;
}

.confirmation-detail div > span {
    margin-top: .16rem;
    color: var(--muted);
    font-size: .78rem;
}

.confirmation-remarks {
    font-weight: 600 !important;
    line-height: 1.55;
}

.confirmation-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr) 60px minmax(0, 1fr);
    align-items: start;
    margin: 0 2rem 2rem;
    padding: 1.35rem;
    background: #f8fbfb;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.confirmation-step {
    display: flex;
    align-items: flex-start;
    gap: .72rem;
}

.confirmation-step > span {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: #77918f;
    background: #e9f0ef;
    border-radius: 12px;
}

.confirmation-step.is-complete > span {
    color: #fff;
    background: var(--primary);
}

.confirmation-step.is-current > span {
    color: var(--primary);
    background: #dff4ef;
    box-shadow: 0 0 0 5px rgba(11, 126, 116, .08);
}

.confirmation-step strong,
.confirmation-step small {
    display: block;
}

.confirmation-step strong {
    color: var(--ink);
    font-size: .83rem;
}

.confirmation-step small {
    margin-top: .12rem;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.4;
}

.confirmation-step-line {
    height: 2px;
    margin-top: 19px;
    background: linear-gradient(90deg, #a9d8d1, #dfeae8);
}

.confirmation-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: #fbfdfd;
    border-top: 1px solid var(--border);
}

.confirmation-contact {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--muted);
    font-size: .82rem;
}

.confirmation-contact i,
.confirmation-contact a {
    color: var(--primary);
}

.confirmation-contact a {
    font-weight: 800;
    text-decoration: none;
}

.confirmation-button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .65rem;
}

@media (max-width: 991.98px) {
    .confirmation-card-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .booking-reference-box {
        grid-column: 1 / -1;
        width: 100%;
        text-align: left;
    }

    .confirmation-progress {
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .confirmation-step-line {
        width: 2px;
        height: 26px;
        margin: -.25rem 0 -.25rem 18px;
        background: linear-gradient(180deg, #a9d8d1, #dfeae8);
    }

    .confirmation-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .confirmation-button-group {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .confirmation-card {
        border-radius: 22px;
    }

    .confirmation-card-header {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .confirmation-success-mark {
        width: 62px;
        height: 62px;
        border-radius: 18px;
    }

    .confirmation-success-mark span {
        width: 42px;
        height: 42px;
    }

    .callback-notice {
        grid-template-columns: 1fr;
        margin: 1.25rem;
    }

    .confirmation-detail-grid {
        grid-template-columns: 1fr;
        padding: 0 1.25rem 1.25rem;
    }

    .confirmation-detail-wide {
        grid-column: auto;
    }

    .confirmation-progress {
        margin: 0 1.25rem 1.25rem;
    }

    .confirmation-actions {
        padding: 1.25rem;
    }

    .confirmation-button-group,
    .confirmation-button-group .btn {
        width: 100%;
    }
}

@media print {
    .utility-bar,
    .clinic-navbar,
    .page-hero,
    .site-footer,
    .confirmation-actions,
    .scroll-to-top {
        display: none !important;
    }

    .confirmation-page,
    body {
        background: #fff !important;
    }

    .confirmation-page {
        padding: 0 !important;
    }

    .confirmation-card {
        border: 1px solid #bbb;
        box-shadow: none;
    }
}

/* Public service cards with uploaded images */
.home-service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-service-card:hover {
    transform: translateY(-5px);
    border-color: #e2c97e;
    box-shadow: var(--shadow-md);
}

.home-service-image {
    position: relative;
    height: 205px;
    overflow: hidden;
    background: #f7faf9;
}

.home-service-image > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.home-service-card:hover .home-service-image > img {
    transform: scale(1.045);
}

.home-service-category,
.service-image-category {
    position: absolute;
    left: .85rem;
    bottom: .8rem;
    max-width: calc(100% - 1.7rem);
    padding: .38rem .68rem;
    overflow: hidden;
    color: #fff;
    background: rgba(30, 72, 134, .9);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    box-shadow: 0 5px 18px rgba(12, 36, 75, .2);
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(6px);
}

.home-service-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.25rem 1.25rem;
}

.home-service-heading,
.service-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.home-service-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 12px;
}

.home-service-price,
.service-price-chip {
    padding: .32rem .55rem;
    color: #8b3f0b;
    background: #fff3cf;
    border: 1px solid #f1d681;
    border-radius: 999px;
    font-size: .69rem;
    font-weight: 800;
    white-space: nowrap;
}

.home-service-body h3 {
    margin: .85rem 0 .5rem;
    font-size: 1.16rem;
    font-weight: 800;
}

.home-service-body > p {
    flex: 1;
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 1rem;
    color: #596d6b;
    font-size: .9rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.service-detail-card.service-card-with-image {
    display: flex;
    flex-direction: column;
}

.service-card-with-image .service-detail-image {
    position: relative;
    height: 220px;
    flex: 0 0 auto;
    background: #f7faf9;
}

.service-card-with-image .service-detail-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    color: var(--primary);
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 210, 81, .38), transparent 30%),
        linear-gradient(135deg, #fffdf5, #f0f7ff);
}

.service-image-placeholder > span {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(43, 86, 155, .14);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(34, 68, 122, .1);
    font-size: 1.8rem;
}

.service-image-placeholder small {
    max-width: 80%;
    color: #506785;
    font-size: .72rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.service-short-description {
    margin-bottom: .8rem;
    font-size: .92rem;
    line-height: 1.65;
}

.service-html-content {
    flex: 1;
    font-size: .86rem;
    line-height: 1.65;
}

.service-html-content > :last-child {
    margin-bottom: 0;
}

.service-card-footer {
    padding-top: .9rem;
    margin-top: 1rem;
    border-top: 1px solid #edf3f2;
}

.service-enquiry-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--primary);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 800;
}

.service-enquiry-link > span {
    flex: 1;
}

.service-enquiry-link:hover {
    color: var(--secondary);
}

.public-empty-state {
    max-width: 760px;
    padding: 3rem 1.5rem;
    margin: 0 auto 2rem;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.public-empty-state > span {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 22px;
    font-size: 1.75rem;
}

.public-empty-state h2,
.public-empty-state h3 {
    font-weight: 800;
}

.public-empty-state p {
    margin: .5rem 0 0;
    color: var(--muted);
}

.compact-empty-state {
    padding: 2rem 1rem;
}

@media (max-width: 767.98px) {
    .home-service-image,
    .service-card-with-image .service-detail-image {
        height: 190px;
    }
}
