:root {
    --navy: #0f2c5e;
    --navy-mid: #1a3f7e;
    --navy-light: #e8eef8;
    --teal: #00c6be;
    --teal-dark: #009f98;
    --teal-pale: #e0f9f8;
    --white: #ffffff;
    --gray-50: #f7f9fc;
    --gray-100: #eef1f6;
    --gray-300: #c8d0df;
    --gray-500: #7b8ba5;
    --gray-700: #3d4f6a;
    --text: #1c2d4a;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-card: 0 4px 24px rgba(15, 44, 94, 0.1);
    --shadow-hover: 0 12px 40px rgba(15, 44, 94, 0.18);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--gray-50);
    color: var(--text);
    line-height: 1.6;
}

.btn-special {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff !important;
    border-radius: 50px;
    padding: 0.4rem 1.25rem !important;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(0, 198, 190, 0.35);
    transition: var(--transition);
}
.btn-special:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 198, 190, 0.45);
}

.hero {
    background: linear-gradient(
        135deg,
        var(--navy) 0%,
        var(--navy-mid) 60%,
        #1e5fa3 100%
    );
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 198, 190, 0.18);
    border: 1px solid rgba(0, 198, 190, 0.35);
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.hero h1 {
    font-family: "Lora", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.25;
}
.hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.97rem;
    max-width: 520px;
}
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
}
.hero-stat strong {
    display: block;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 800;
    line-height: 1;
}
.hero-stat span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 3px;
    display: block;
}
.hero-art {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(
        circle,
        rgba(0, 198, 190, 0.18) 0%,
        transparent 70%
    );
    border-radius: 50%;
}


.search-panel {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(15, 44, 94, 0.16);
    padding: 28px 32px;
    margin-top: -48px;
    position: relative;
    z-index: 10;
}
.search-panel .form-label {
    font-size: 0.77rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gray-500);
    margin-bottom: 6px;
}
.form-control,
.form-select {
    border: 2px solid var(--gray-100);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: var(--text);
    font-family: "Plus Jakarta Sans", sans-serif;
    transition: var(--transition);
    background: var(--gray-50);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 198, 190, 0.15);
    background: #fff;
}
.btn-search {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.8rem;
    font-weight: 700;
    font-size: 0.92rem;
    width: 100%;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 198, 190, 0.3);
}
.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 198, 190, 0.4);
}
.btn-reset {
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    width: 100%;
    transition: var(--transition);
}
.btn-reset:hover {
    background: var(--gray-300);
}


.section-title {
    font-family: "Lora", serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--navy);
}
.section-sub {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.day-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.day-tab {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: 50px;
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}
.day-tab:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
}
.day-tab.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.result-bar {
    background: var(--navy-light);
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 600;
}
#result-count {
    color: var(--teal-dark);
    font-weight: 800;
}

.doc-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.doc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.doc-card-top {
    background: linear-gradient(
        160deg,
        var(--navy-light) 0%,
        var(--teal-pale) 100%
    );
    padding: 24px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.doc-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 4px 16px rgba(15, 44, 94, 0.15);
    object-fit: cover;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--navy-mid);
    overflow: hidden;
}
.doc-avatar-wrap {
    position: relative;
    margin-bottom: 12px;
}
.online-dot {
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
    right: 4px;
}
.spec-badge {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 6px;
}
.doc-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 2px;
}
.doc-title {
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.doc-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.schedule-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    background: var(--gray-50);
    border-radius: 10px;
    margin-bottom: 7px;
    font-size: 0.82rem;
}
.schedule-day {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
    min-width: 52px;
    text-align: center;
    letter-spacing: 0.03em;
}
.schedule-time {
    color: var(--gray-700);
    font-weight: 600;
}
.schedule-room {
    color: var(--gray-500);
    font-size: 0.76rem;
    margin-left: auto;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 4px 0 14px;
}
.stars {
    color: #f59e0b;
    letter-spacing: -0.5px;
}

.btn-book {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1.2rem;
    font-weight: 700;
    font-size: 0.85rem;
    width: 100%;
    transition: var(--transition);
    margin-top: auto;
}
.btn-book:hover {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    transform: translateY(-1px);
}

#no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}
#no-results i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--gray-300);
}
#no-results h5 {
    color: var(--gray-700);
    font-weight: 700;
}

.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.modal-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: #fff;
    border: none;
    padding: 22px 28px;
}
.modal-title {
    font-weight: 800;
    font-size: 1.05rem;
}
.modal-header .btn-close {
    filter: invert(1);
}
.modal-body {
    padding: 28px;
}
.modal-footer {
    border-top: 1px solid var(--gray-100);
    padding: 16px 28px;
}

.doctor-mini {
    background: var(--navy-light);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.doctor-mini-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}
.doctor-mini-name {
    font-weight: 800;
    color: var(--navy);
    font-size: 0.95rem;
}
.doctor-mini-spec {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.section-wrap {
    padding: 56px 0 20px;
}
.loader-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 44, 94, 0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.loader-spin {
    width: 52px;
    height: 52px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0 70px;
    }
    .search-panel {
        padding: 20px;
        margin-top: -36px;
    }
    .hero-stats {
        gap: 20px;
    }
}
