body {
    background-color: #f0fbfc;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.primary {
    color: #008893;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:visited {
    background-color: #008893 !important;
    border-color: #008893 !important;
}

.btn-outline-success,
.btn-outline-success:hover,
.btn-outline-success:active,
.btn-outline-success:visited {
    background-color: #008893 !important;
    border-color: #008893 !important;
    color: #fff !important;
}


.nav {
    background-color: #008893;
    width: 70px;
    border-radius: 0px 1em 1em 0px;
    padding: 0.4%;
    position: absolute;
    left: 0%;
    top: 120px;
    box-shadow: 1px 1px 10px 2px #000;
    height: 80%;
}

.nav-a {
    padding-top: 20px;
    margin-left: 2px;
}

.nav-a:nth-of-type(1) {
    padding-top: 20px;
    margin-left: 0px;
    margin-top: 2px;
}

.navbar {
    display: none;
}

.page {
    height: 100%;
    width: 80%;
    background-color: rgba(0, 136, 147, 0.19);
    border-radius: 1.5em;
    padding-left: 5%;
    padding-right: 10%;
    padding-top: 5%;
    padding-bottom: 15%;
    box-shadow: 1px 1px 10px 2px #000;
    margin-bottom: 20%;
    margin-top: 3.6%;
    margin-left: 1%;
}

#book-form {
    width: 80%;
}

.img-1 {
    width: 50%;
    height: 100%;
}

.times {
    width: 67%;
    height: 3em;
    margin-top: 30%;
    font-size: 100%;
}

.t1,
.t2 {
    margin-left: 40%;


}

.t3,
.t4 {
    margin-left: 0%;
}

.heading {
    font-size: 2em;
    font-weight: 600;
    margin-top: 2%;
}

.ips {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

/* .sub{
    margin-top: 6%;
} */



/* xs */

@media ((min-width: 0px) and (max-width: 576px)) {}

/* small */

@media ((min-width: 576px) and (max-width: 768px)) {}

/* medium */

@media ((min-width: 768px) and (max-width: 992px)) {}

/* large */

@media (min-width: 992px) {}

/* footer */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

footer {
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    background: #313232;
}

footer .content-f {
    max-width: 1350px;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

footer .content-f p,
a {
    color: #fff;
}

footer .content-f .box-f {
    width: 33%;
    transition: all 0.4s ease;
}

footer .content-f .topic {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;

}

footer .content-f p {
    text-align: justify;
}

footer .content-f .lower .topic {
    margin: 24px 0 5px 0;
}

footer .content-f .lower i {
    padding-right: 16px;
}

footer .content-f .middle {
    padding-left: 80px;
}

footer .content-f .middle a {
    line-height: 32px;
}

footer .content-f .right input[type="text"] {
    height: 45px;
    width: 100%;
    outline: none;
    color: #d9d9d9;
    background: #232121;
    border-radius: 5px;
    padding-left: 10px;
    font-size: 17px;
    border: 2px solid #222222;
}

footer .content-f .right input[type="submit"] {
    height: 42px;
    width: 100%;
    font-size: 18px;
    color: #d9d9d9;
    background: #008893;
    outline: none;
    border-radius: 5px;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 12px;
    border: 2px solid #008893;
    transition: all 0.3s ease-in-out;
}

.content-f .right input[type="submit"]:hover {
    background: none;
    color: #008893;
}

footer .content-f .media-icons a {
    font-size: 16px;
    height: 45px;
    width: 45px;
    display: inline-block;
    text-align: center;
    line-height: 43px;
    border-radius: 5px;
    border: 2px solid none;
    margin: 30px 5px 0 0;
    transition: all 0.3s ease;
}

.content-f .media-icons a:hover {
    border-color: #008893;
}

footer .bottom-f {
    width: 100%;
    text-align: right;
    color: #d9d9d9;
    padding: 0 40px 5px 0;
}

footer .bottom-f a {
    color: #008893;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: #008893;
}

@media (max-width:992px) {
    footer .content-f .middle {
        padding-left: 50px;
    }
}

@media (max-width:768px) {
    footer .content-f .box {
        width: 50%;
    }

    .content-f .right {
        margin-top: 40px;
    }
}

@media (max-width:576px) {
    footer {
        position: relative;
    }

    footer .content-f .box-f {
        width: 100%;
        margin-top: 30px;
    }

    footer .content-f .middle {
        padding-left: 0;
    }
}

a {
    text-decoration: none;
}

* {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}


:root {
    --bg-color-a: #3b39af;
    /* page header + form label */
    --bg-color-b: #404040;
    /* calendar header */
    --bg-color-c: #d73a3a;
    /* buttons */
}

.hide {
    display: none !important;
}

/* (B) PERIOD SELECTOR */
#calPeriod {
    padding: 5px;
    background: var(--bg-color-a);
}

#calPeriod input,
#calPeriod select {
    font-size: 15px;
    border: 0;
    outline: none;
    color: #fff;
    background: 0;
    cursor: pointer;
}

#calPeriod option {
    color: #000;
}

#calYear {
    width: 100px;
    margin-left: 10px;
}

/* (C) CALENDAR */
/* (C1) SHARED */
.calHead,
.calRow {
    display: flex;
}

.calCell {
    width: 15.2857%;
}

/* (C2) HEADER - DAY NAMES */
.calHead .calCell {
    color: #fff;
    background: var(--bg-color-b);
    font-weight: 700;
    text-align: center;
    /* padding: px 0; */
}

/* (C3) BODY - INDIVIDUAL DAYS */
.calBlank {
    background: #eee;
}

.calToday {
    background: #feffd3;
}

.calToday .cellDate {
    color: #ff9b9b;
}

.calBody .calCell {
    border: 1px solid #f5f5f5;
    min-height: 0px;
}

.cellDate,
.evt {
    padding: 5px;
}

.cellDate {
    font-size: 16px;
    font-weight: 700;
    color: #b5b5b5;
}

.evt {
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    cursor: pointer;
}

/* (D) EVENT FORM */
#calForm {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100vw;
    height: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
}

#calForm:is([open]) {
    display: flex;
    flex-wrap: wrap;
}

#calForm form {
    position: relative;
    width: 450px;
    padding: 1px;
    border-radius: 10px;
    background: #fff;
}

#evtClose {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    color: #b12020;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
}

#calForm h2 {
    margin: 0 0 1px 0;
}

#calForm label,
#calForm input[type=text],
#calForm textarea {
    width: 100%;
}

#calForm label {
    color: #a1a1a1;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 5px;
}

#calForm input[type=text],
#calForm textarea {
    width: 40%;
    padding: 10px;
    border: 1px solid #eee;
    background: #f5f5f5;
}

#calForm textarea {
    height: 100px;
    resize: none;
}

#calForm input[type=button],
#calForm input[type=submit] {
    border: 0;
    padding: 10px;
    margin: 10px 2px 0 0;
    color: #fff;
    background: var(--bg-color-c);
    cursor: pointer;
}

.calendar {
    width: 40%;
    height: 100%;
    position: relative;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Add or modify in appointment.css */

/* Style the select element itself */
#doctor {
    /* Add padding to the right to make space for the tick AND dropdown arrow */
    /* Adjust this value as needed based on tick size and arrow width */
    padding-right: 45px !important;
}

/* Style for the absolutely positioned tick */
.success-tick {
    position: absolute;
    top: 50%;
    /* Center vertically */
    /* Adjust 'right' to position before the dropdown arrow */
    /* This value might need tweaking */
    right: 30px;
    transform: translateY(-50%);
    /* Fine-tune vertical centering */
    color: rgb(40, 10, 129);
    font-weight: bold;
    font-size: 1.1em;
    /* Slightly larger tick */
    display: none;
    /* Initially hidden */
    pointer-events: none;
    /* Prevents tick from interfering with clicks */
    z-index: 2;
    /* Ensure it's above the select box background */
}

/* Optional: Style the select input when valid */
select.is-valid {
    border-color: #198754;
    /* Bootstrap success green */
    /* Background image approach (alternative, keep only if not using the span method) */
    /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e"); */
    /* background-repeat: no-repeat; */
    /* background-position: right calc(0.375em + 0.1875rem) center; */
    /* background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem); */
}

select.is-valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* --- Modern Hospital-Blue Navbar Styles --- */
.navbar-amref {
    background: #1976D2 !important;
    box-shadow: 0 2px 8px rgba(25,118,210,0.08);
    z-index: 1050;
}
.navbar-amref .navbar-brand img {
    width: 60px;
    height: 60px;
    padding: 4px 8px;
}
.navbar-amref .nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.15rem;
    margin: 0 0.7rem;
    border-radius: 2rem;
    transition: background 0.2s, color 0.2s;
    padding: 0.4rem 1.1rem;
}
.navbar-amref .nav-link.active, .navbar-amref .nav-link[aria-current="page"] {
    background: #43A047;
    color: #fff !important;
}
.navbar-amref .nav-link:hover, .navbar-amref .nav-link:focus {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
    text-decoration: underline;
}
.navbar-amref .btn-primary, .navbar-amref .btn-outline-success {
    border-radius: 2rem;
    font-weight: 700;
    margin-left: 1rem;
    box-shadow: 0 2px 8px rgba(25,118,210,0.08);
}
.navbar-amref .btn-primary {
    background: #43A047 !important;
    border-color: #43A047 !important;
}
.navbar-amref .btn-primary:hover {
    background: #388e3c !important;
    border-color: #388e3c !important;
}
.navbar-amref .btn-success {
    background: #43A047 !important;
    border-color: #43A047 !important;
    border-radius: 2rem;
    font-weight: 700;
}
.navbar-amref .btn-success:hover {
    background: #388e3c !important;
    border-color: #388e3c !important;
}
.navbar-amref .navbar-toggler {
    border: none;
}
.navbar-amref .navbar-toggler:focus {
    box-shadow: 0 0 0 2px #43A047;
}

/* --- Hero Banner and Section Styles (moved from HTML) --- */
.hero-banner {
    position: relative;
    background: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd23?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 2.5rem;
}
.hero-banner .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(25,118,210,0.7) 0%, rgba(67,160,71,0.5) 100%);
    z-index: 1;
}
.hero-banner .content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
}
.hero-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.hero-banner p {
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 400;
}
.section-divider {
    border: none;
    border-top: 2px solid #e3f2fd;
    margin: 3rem 0 2rem 0;
}
.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1976D2;
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-title i { color: #43A047; font-size: 1.7rem; }
.fade-in-section { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-section.visible { opacity: 1; transform: none; }
.card { border-radius: 1.2rem; box-shadow: 0 4px 24px rgba(25,118,210,0.10); border: none; }
.btn, .btn-primary, .btn-outline-success { border-radius: 2rem !important; font-weight: 600; }
.btn i { margin-right: 0.5rem; }
.form-label { font-weight: 600; }
.calendar-day.selected, .calendar-day:focus { background-color: #1976D2 !important; color: #fff !important; }
.calendar-day { border-radius: 0.5rem; }
.calendar-day.disabled { color: #ccc !important; background: #f8f9fa !important; }
.invalid-feedback, .alert { animation: fadeInUp 0.7s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 991.98px) {
    .hero-banner h1 { font-size: 1.5rem; }
    .section-title { font-size: 1.1rem; }
}

/* --- Improved Calendar Appearance --- */
.calendar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#calWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
}
#calWrap > .text-center.mb-2.fw-bold {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
#calWrap .d-flex.justify-content-between.mb-1 {
    margin-bottom: 0.5rem;
}
.calendar-day {
    border-radius: 50%;
    width: 2.5em !important;
    height: 2.5em !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid #1976D2;
    background: #fff;
    color: #1976D2;
    margin: 0.15em;
    transition: background 0.2s, color 0.2s, border 0.2s;
    outline: none;
}
.calendar-day:hover:not(.disabled):not(.selected),
.calendar-day:focus-visible:not(.disabled):not(.selected) {
    background: #e3f2fd;
    color: #1976D2;
    border-color: #43A047;
    cursor: pointer;
}
.calendar-day.selected {
    background: #43A047 !important;
    color: #fff !important;
    border-color: #43A047 !important;
}
.calendar-day.today:not(.selected) {
    border-color: #ff9800 !important;
    box-shadow: 0 0 0 2px #ff980033;
}
.calendar-day.disabled {
    background: #f0f0f0 !important;
    color: #bbb !important;
    border: none !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}
#calWrap .d-flex.flex-wrap {
    gap: 0.2em 0.2em;
    justify-content: flex-start;
}
#calBack, #calNext {
    border-radius: 50%;
    width: 2.2em;
    height: 2.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    background: #fff;
    color: #1976D2;
    border: 2px solid #1976D2;
    margin: 0 0.2em;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
#calBack:hover, #calNext:hover, #calBack:focus, #calNext:focus {
    background: #e3f2fd;
    color: #43A047;
    border-color: #43A047;
}
.calendar-day:focus {
    outline: 2px solid #43A047;
    outline-offset: 2px;
}