/* Font Awesome icon font override - prevents Lexend from breaking icons */
.fa,
.fas,
.far,
.fal,
.fab,
.fa-solid,
.fa-brands,
.fa-regular {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome", Arial, Helvetica, sans-serif !important;
    font-weight: 900 !important;
}

body {
    font-family: "Lexend", sans-serif;
}

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.background {
    justify-content: center;
    padding: 80px 15px;
    font-family: "Lexend", sans-serif;
}

@media screen and (max-width: 768px) {
    .background {
        justify-content: center;
        padding: 10px 20px;
    }
}

/* Small Mobile View (≤480px) */
@media screen and (max-width: 480px) {
    .background {
        justify-content: center;
        padding: 10px 20px;
    }
}
/* Search Section Styles */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
    font-family: "Lexend", sans-serif;
}

.hos-main-layout.sidebar-collapsed .hos-sidebar {
    display: none;
}

.search-section {
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    background: white;
}

.top-search {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #f9fafb;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
    background: #007681;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #0e7490;
}

.filter-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: white;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
}

.filter-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.all-filters-btn {
    background: #007681;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    align-self: end;
}

.all-filters-btn:hover {
    background: #0e7490;
}

/* Hospital Content Area */
.hos-container {
    max-width: 1400px;
    margin: 20px auto 0 auto;
    padding: 0 20px;
}

.hos-main-layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* Sidebar Styles */
.hos-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.hos-sidebar-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.hos-sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 20px;
}

.hos-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 20px 20px 16px 20px;
    margin: 0;
}

.hos-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    margin: 0;
}

.hos-filter-checkbox {
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.hos-filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #0891b2;
    cursor: pointer;
}

.hos-filter-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    flex: 1;
}

.hos-filter-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Hospital Cards Container */
.hos-cards-list-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Hospital Card Styles */
.hospital-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: auto;
}

/* Top Section - Header with Photo, Info, and Time Slots */
.compact-hospital-header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.compact-hospital-header-left {
    display: flex;
    gap: 12px;
    flex: 1;
}

.compact-hospital-img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.compact-hospital-maininfo {
    flex: 1;
}

.compact-hospital-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.compact-hospital-title-row h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.compact-hospital-title-row .hospital-type {
    font-size: 12px;
    color: #666;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
}

.compact-hospital-maininfo .hospital-location {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.compact-hospital-landmark {
    font-size: 12px;
    color: #333;
    font-weight: 600;
}

/* Right Side - Time Slots and Book Button */
.compact-hospital-header-right {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    min-width: 280px;
}

/* Time Slots Container for Clinics */
.hos-time-slots-container {
    margin-bottom: 0;
    width: auto;
    flex: 1;
}

.hos-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 80px;
    overflow-y: auto;
}

/* WebKit browsers */
.hos-time-slots::-webkit-scrollbar {
    width: 2px;
}

.hos-time-slots::-webkit-scrollbar-track {
    background: transparent;
}

.hos-time-slots::-webkit-scrollbar-thumb {
    background-color: #007681;
    border-radius: 10px;
}

.hos-time-slots::-webkit-scrollbar-thumb:hover {
    background-color: #007681;
}

/* Time Slot Styles for Clinics */
.hos-time-slot {
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 6px 10px;
    margin: 0;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    min-width: 60px;
    text-align: center;
}

.hos-time-slot.available {
    background-color: #f0f9ff;
    color: #22919A;
    border-color: #22919A;
}

.hos-time-slot.available:hover {
    background-color: #22919A;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

.hos-time-slot.available.selected {
    background-color: #22919A;
    color: white;
    border-color: #22919A;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.4);
}

.hos-time-slot.booked {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
    cursor: not-allowed;
    opacity: 0.7;
}

.hos-time-slot.expired {
    background-color: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.hos-time-slot.cursor-not-allowed {
    cursor: not-allowed !important;
}

.hos-time-slot.cursor-pointer {
    cursor: pointer !important;
}

.hos-availability-header {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.hos-date-section {
    margin-top: 8px;
}

.hos-date-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

/* Single Book Appointment Button */
.compact-hospital-book-button {
    padding: 10px 16px;
    background: #007681;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 140px;
}

.compact-hospital-book-button:hover {
    background: #067e8b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 113, 129, 0.3);
}

/* Middle Section - Doctor Slider */
.compact-hospital-doctors {
    margin-top: 8px;
}

/* Doctor Slider Styles */
.doctors-slider-container {
    display: flex;
    align-items: center;
    gap: 0px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-right: 0px;
}

.doctors-viewport {
    flex-grow: 1;
    overflow: hidden;
    min-width: 0;
}

.doctors-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 5px;
}

.doctors-slider-container.has-slider .doctors-section {
    transition: transform 0.4s cubic-bezier(0.70, 0, 0, 0.50, 1);
    will-change: transform;
}

.doctor-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 8px;
    min-width: 140px;
    width: 217px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    box-sizing: border-box;
}

.doctor-card-top {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.doctor-image-clinic {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.doctor-info {
    flex: 1;
}

.doctor-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.doctor-name:hover {
    color: #007681;
    text-decoration: underline;
}

.doctor-specialty {
    font-size: 10px;
    color: #FFF;
    background: #22919a;
    border-radius: 2px;
    padding: 1px 6px;
    margin-top: 2px;
    width: fit-content;
    line-height: normal;
}

.doctor-details {
    text-align: center;
}

.doctor-experience {
    font-size: 12px;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.2;
}

.doctor-rating {
    font-size: 9px;
    color: #666;
    text-align: center;
}

.slider-arrow.next-arrow {
    background: white;
    border-radius: 50%;
    width: 28px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #007681;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0px;
    margin: 0px;
}

.slider-arrow.next-arrow:hover {
    background: #f0f9ff;
    border-color: #0891b2;
}

.doctors-slider-container.no-slider .slider-arrow.next-arrow {
    display: none;
}

/* Bottom Section - Stats and About */
.compact-hospital-stats-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.hospital-stats {
    display: flex;
    justify-content: space-around;
    padding: 10px 0px;
    margin: 0 12px 0 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    align-items: center;
}

.hospital-stats .stat-item {
    text-align: center;
    flex: 1;
}

.hospital-stats .stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-bottom: 4px;
}

.hospital-stats .stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #007681;
    display: block;
    line-height: 1;
}

.about-section {
    padding: 0px 10px 10px 0px;
    border-radius: 8px;
    transition: all 0.2s ease;
}


.about-section .about-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.about-section .about-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

/* Ownership Section Styles */
.ownership-section {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.ownership-section:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ownership-section .ownership-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.ownership-section .ownership-text {
    font-size: 13px;
    color: #007681;
    line-height: 1.6;
    font-weight: 500;
    background: rgba(0, 118, 129, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease;
}

.ownership-section:hover .ownership-text {
    background: rgba(0, 118, 129, 0.15);
    color: #005a63;
}

/* Slot Count Information */
.hos-slot-counts {
    margin-top: 8px;
    padding: 13px 8px;
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.hos-slot-count-info {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}

.hos-slot-count-info:last-child {
    margin-bottom: 0;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    background: #007681;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin: 10px 0;
    display: none;
    width: fit-content;
    margin-left: auto;
}

.sidebar-toggle:hover {
    background: #0e7490;
}

/* Responsive Design */

/* Large Tablets (≤1024px) */
@media screen and (max-width: 1024px) {
    .container,
    .hos-container {
        max-width: 100%;
        padding: 10px;
    }

    .hos-main-layout {
        flex-direction: row;
        gap: 15px;
    }

    .hos-sidebar {
        width: 200px;
    }

    .compact-hospital-stats-about {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .compact-hospital-header-right {
        min-width: auto;
        width: 100%;
    }

    .doctors-slider-container {
        display: flex;
    align-items: center;
    gap: 0px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    margin-right: 0px;
    }

    .doctors-section {
        gap: 8px;
    }

    .doctor-card {
        min-width: 140px;
        padding: 8px;
    }

    .doctor-image-clinic {
        width: 45px;
        height: 45px;
    }

    .doctor-name {
        font-size: 13px;
    }

    .doctor-specialty {
        font-size: 11px;
    }

    .doctor-experience,
    .doctor-rating {
        font-size: 10px;
    }

    .slider-arrow.next-arrow {
        width: 30px;
        height: 22px;
        font-size: 18px;
    }

    .filter-section {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .compact-hospital-img {
        width: 70px;
        height: 50px;
    }

    .compact-hospital-title-row h3 {
        font-size: 14px;
    }

    .hospital-type,
    .hospital-location,
    .compact-hospital-landmark {
        font-size: 12px;
    }

    .hospital-stats .stat-number {
        font-size: 16px;
    }

    .about-section .about-text {
        font-size: 12px;
    }

    /* Ownership section responsive adjustments for tablets */
    .ownership-section .ownership-title {
        font-size: 14px;
    }

    .ownership-section .ownership-text {
        font-size: 12px;
    }

    /* Time slots responsive adjustments for tablets */
    .hos-time-slots-container {
        max-width: 350px;
    }

    .hos-time-slot {
        font-size: 13px;
        padding: 7px 11px;
    }
}

/* Mobile Devices (≤768px) */
@media screen and (max-width: 768px) {
    .hos-main-layout {
        flex-direction: column;
    }

    .hos-sidebar {
        width: 100%;
        display: none;
    }

    .hos-main-layout.sidebar-collapsed .hos-sidebar {
        display: none;
    }

    .sidebar-toggle {
        display: block;
    }

    .hospital-card {
        padding: 15px;
    }

    .compact-hospital-header-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .compact-hospital-header-right {
        align-items: stretch;
        min-width: auto;
        width: 100%;
    }

    .compact-hospital-stats-about {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .top-search {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .filter-section {
        grid-template-columns: 1fr;
    }

    .all-filters-btn {
        width: 100%;
        align-self: stretch;
    }

    .doctors-slider-container {
        width: var(--slider-width, auto);
        max-width: calc(100% - 20px);
        margin-right: 20px;
    }

    .doctors-section {
        gap: 6px;
    }

    .doctor-card {
        min-width: 120px;
        padding: 6px;
    }

    .doctor-image-clinic {
        width: 40px;
        height: 40px;
    }

    .doctor-name {
        font-size: 12px;
    }

    .doctor-specialty,
    .doctor-experience,
    .doctor-rating {
        font-size: 10px;
    }

    .slider-arrow.next-arrow {
        width: 28px;
        height: 20px;
        font-size: 16px;
    }

    .compact-hospital-img {
        width: 60px;
        height: 45px;
    }

    .compact-hospital-title-row h3 {
        font-size: 13px;
    }

    .hospital-type,
    .hospital-location,
    .compact-hospital-landmark {
        font-size: 11px;
    }

    .hospital-stats .stat-item {
        min-width: 50px;
    }

    .hospital-stats .stat-label {
        font-size: 12px;
    }

    .hospital-stats .stat-number {
        font-size: 14px;
    }

    .about-section .about-title {
        font-size: 14px;
    }

    .about-section .about-text {
        font-size: 11px;
    }

    /* Ownership section responsive adjustments for mobile */
    .ownership-section .ownership-title {
        font-size: 13px;
    }

    .ownership-section .ownership-text {
        font-size: 10px;
    }
}

/* Small Mobile Devices (≤480px) */
@media screen and (max-width: 480px) {
    .search-section {
        padding: 15px;
    }

    .search-input {
        padding: 10px 0px 10px 10px;
        font-size: 13px;
    }

    .search-btn {
        padding: 10px;
        font-size: 13px;
    }

    .filter-label {
        font-size: 12px;
    }

    .filter-select {
        font-size: 13px;
        padding: 8px 10px;
        padding-right: 30px;
        background-size: 14px;
    }

    .all-filters-btn {
        font-size: 13px;
        padding: 8px 15px;
    }

    .hos-sidebar {
        padding: 10px;
    }

    .hos-sidebar-title {
        font-size: 14px;
        padding: 15px 15px 10px 15px;
    }

    .hos-filter-label,
    .hos-filter-count {
        font-size: 13px;
    }

    .hos-filter-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .hospital-card {
        padding: 10px;
    }

    .compact-hospital-img {
        width: 60px;
        height: 45px;
    }

    .compact-hospital-title-row h3 {
        font-size: 13px;
    }

    .hospital-type,
    .hospital-location,
    .compact-hospital-landmark {
        font-size: 11px;
    }

    .doctors-slider-container {
        width: var(--slider-width, auto);
        max-width: calc(100% - 20px);
        margin-right: 0px;
    }

    .doctors-section {
        gap: 5px;
    }

    .doctor-card {
        min-width: 100px;
        padding: 5px;
    }

    .doctor-card-top {
        gap: 8px;
    }

    .doctor-image-clinic {
        width: 35px;
        height: 35px;
    }

    .doctor-name {
        font-size: 11px;
    }

    .doctor-specialty,
    .doctor-experience,
    .doctor-rating {
        font-size: 9px;
    }

    .slider-arrow.next-arrow {
        width: 20px;
        height: 18px;
        font-size: 14px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-number {
        font-size: 13px;
    }

    .about-title {
        font-size: 13px;
    }

    .about-text {
        font-size: 10px;
    }

    /* Ownership section responsive adjustments for small mobile */
    .ownership-section .ownership-title {
        font-size: 12px;
    }

    .ownership-section .ownership-text {
        font-size: 9px;
    }

    /* Time slots responsive adjustments */
    .hos-time-slots-container {
        max-width: 100%;
    }

    .hos-time-slots {
        max-height: 60px;
    }

    .hos-time-slot {
        font-size: 10px;
        padding: 4px 8px;
        margin: 1px;
        min-width: 50px;
    }

    .compact-hospital-availability {
        padding: 8px;
        margin-top: 8px;
    }
}

/* Very Small Mobile Devices (≤360px) */
@media screen and (max-width: 360px) {
    .doctors-slider-container {
        width: var(--slider-width, auto);
        max-width: calc(100% - 20px);
        margin-right: 20px;
    }

    .doctors-section {
        gap: 4px;
    }

    .doctor-card {
        min-width: 90px;
        padding: 4px;
    }

    .doctor-card-top {
        gap: 6px;
    }

    .doctor-image-clinic {
        width: 30px;
        height: 30px;
    }

    .doctor-name {
        font-size: 10px;
    }

    .doctor-specialty,
    .doctor-experience,
    .doctor-rating {
        font-size: 8px;
    }

    .slider-arrow.next-arrow {
        width: 22px;
        height: 16px;
        font-size: 12px;
    }
}

/* Right Side Drawer Styles */
.right-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
}

@media (min-width: 1400px) {
    .right-drawer {
        right: -350px;
        max-width: 350px;
        left: auto;
        margin-left: auto;
        margin-right: calc((100% - 1400px) / 2);
    }
}

.right-drawer.open {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.drawer-content {
    width: 100%;
    max-width: 300px;
    margin: auto;
    text-align: center;
}

.close-drawer {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-family: "Lexend", sans-serif;
    font-size: 34px;
    cursor: pointer;
    color: #333;
}

.drawer-logo {
    margin-bottom: 20px;
}

.drawer-logo img {
    max-width: 150px;
    height: auto;
}

.drawer-tagline {
    font-size: 14px;
    color: #555;
    font-family: "Lexend", sans-serif;
    margin-bottom: 30px;
    text-transform: uppercase;
    /* letter-spacing: 1px; */
    padding: 0 30px;
}

.phone-input-group {
    text-align: left;
    margin-bottom: 20px;
    font-family: "Lexend", sans-serif;
}

.phone-input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-family: "Lexend", sans-serif;
    font-weight: 500;
}

.phone-input-wrapper {
    position: relative;
}

.phone-input {
    width: 100%;
    padding: 12px 0px 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: "Lexend", sans-serif;
    font-size: 16px;
}

.phone-input-verified {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #23939E;
}

.submit-phone-btn {
    background-color: #23939E;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-family: "Lexend", sans-serif;
    transition: background-color 0.3s ease;
}

.submit-phone-btn:hover {
    background-color: #2e99a3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .right-drawer {
        width: 100%;
        right: -100%;
        visibility: hidden;
        opacity: 0;
    }

    .right-drawer.open {
        right: 0;
        visibility: visible;
        opacity: 1;
    }

    .drawer-content {
        max-width: 80%;
    }
}

/* OTP Section Styles */
.otp-input-group {
    text-align: center;
    margin-bottom: 20px;
}

.otp-input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    font-family: "Lexend", sans-serif;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #D8DADC;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.otp-input:focus {
    border: 2px solid black;
}

.resend-otp-btn {
    background: none;
    border: none;
    color: #444444;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
    align-items: center;
    text-decoration: underline;
}

.resend-otp-btn:hover {
    color: #0056b3;
}

@media (max-width: 480px) {
    .otp-inputs {
        gap: 5px;
    }

    .otp-input {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* User Details Modal Styles */
.user-details-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dim background */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Lexend", sans-serif;
    z-index: 1001;
    overflow-y: scroll;
    /* Above the drawer */
}

.user-details-modal-content {
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    position: relative;
    text-align: center;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-logo {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    /* Center the logo */
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.modal-tagline {
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0px 155px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: "Lexend", sans-serif;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    /* Include padding in width */
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #23939E;
}

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

.input-with-icon input {
    padding-right: 40px;
    /* Ensure sufficient space for the icon */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: "Lexend", sans-serif;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.input-with-icon .icon-right {
    position: absolute;
    right: 10px;
    /* Fine-tuned position for the calendar icon */
    top: 50%;
    transform: translateY(-50%);
    color: #23939E;
    /* Calendar icon color */
    cursor: pointer;
    z-index: 2;
    /* Ensure it's clickable */
    font-size: 18px;
    /* Consistent icon size */
}

.input-with-icon .icon-right .fa-calendar-days {
    color: #23939E;
    /* Ensure Font Awesome icon color is consistent */
}

.form-group.full-width {
    grid-column: 1 / -1;
    /* Spans across both columns */
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.submit-modal-btn {
    background-color: #23939E;
    /* Teal */
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto;
    /* Adjust width based on content */
    min-width: 150px;
}

.submit-modal-btn:hover {
    background-color: #23939E;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .user-details-modal-content {
        padding: 20px;
        width: 95%;
    }

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

    .modal-header {
        flex-direction: column;
        gap: 15px;
    }

    .close-modal {
        position: static;
        margin-top: 10px;
    }

    .modal-logo {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .user-details-modal-content {
        padding: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    .submit-modal-btn {
        width: 100%;
    }
}

/* Custom styles for jQuery UI Datepicker */

.modal-title {
    font-size: 17px;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 700;
    font-family: "Lexend", sans-serif;
}

.modal-subtitle {
    font-size: 12px;
    color: #d0d0d0;
    margin-bottom: 25px;
    line-height: 1.5;
    font-family: "Lexend", sans-serif;
}

/* Registration Success Modal Styles */
.registration-success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Slightly darker dim background */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Lexend", sans-serif;
    z-index: 1002;
    /* Above user details modal */
}

.registration-success-modal-content {
    background-color: #fff;
    padding: 40px 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    /* Slightly smaller for success message */
    width: 90%;
    text-align: center;
    position: relative;
}

.success-modal-header {
    margin-bottom: 25px;
}

.success-modal-header .modal-logo {
    max-width: 120px;
    margin: 0 auto;
}

.success-icon-container {
    margin: 20px auto 30px auto;
    width: 80px;
    height: 80px;
    background-color: #e6f7f3;
    /* Light green background for icon */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon {
    font-size: 40px;
    color: #28a745;
    /* Green checkmark */
}

.registration-success-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.registration-success-message {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.5;
}

.back-to-doctor-btn {
    background-color: #007681;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.back-to-doctor-btn:hover {
    background-color: #0e7490;
}

@media (max-width: 480px) {
    .registration-success-modal-content {
        padding: 30px 20px;
    }

    .registration-success-title {
        font-size: 22px;
    }

    .registration-success-message {
        font-size: 14px;
    }

    .back-to-doctor-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Validation Error Messages */
.error-message {
    color: #dc3545;
    /* Red color for errors */
    font-size: 13px;
    margin-top: 5px;
    text-align: left;
    min-height: 18px;
    /* Reserve space to prevent layout shifts */
}