@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

.background {
    justify-content: center;
    padding: 80px 50px;
    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 doctor section */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Main Search Section */
.search-section {
    /* background: white; */
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Top Search Bar */
.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;
    font-family: "Lexend", sans-serif;
}

.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;
    font-family: "Lexend", sans-serif;
}

.search-btn:hover {
    background: #0e7490;
}

/* Filter Section */
.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;
    font-family: "Lexend", sans-serif;
}

.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);
}

.filter-select:hover {
    border-color: #9ca3af;
}

/* All Filters Button */
.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;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .search-section {
        padding: 20px;
    }

    .top-search {
        flex-direction: column;
        gap: 12px;
    }

    .search-input {
        width: 100%;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .filter-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .all-filters-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .search-section {
        padding: 16px;
        border-radius: 8px;
    }

    .top-search {
        margin-bottom: 20px;
    }

    .search-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .search-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .filter-select {
        padding: 8px 10px;
        font-size: 13px;
        padding-right: 28px;
    }

    .filter-label {
        font-size: 12px;
    }

    .all-filters-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .filter-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .filter-section {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Focus styles for accessibility */
.search-input:focus,
.filter-select:focus,
.search-btn:focus,
.all-filters-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}




.findoc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px;
}

/* Main Layout */
.findoc-main-layout {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

/* Sidebar */
.findoc-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    height: fit-content;
}

.findoc-sidebar-section {
    margin-bottom: 32px;
}

.findoc-sidebar-section:last-child {
    margin-bottom: 0;
}

.findoc-sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.findoc-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 2px 0;
}

.findoc-filter-item:last-child {
    margin-bottom: 0;
}

.findoc-filter-checkbox {
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.findoc-filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #007681;
    cursor: pointer;
}

.findoc-filter-label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    flex: 1;
}

.findoc-filter-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

/* Doctor Cards Container */
.findoc-doctors-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Doctor Card */
.findoc-doctor-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.findoc-doctor-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.findoc-doctor-info {
    flex: 1;
    min-width: 0;
}

.dp-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 !important;
    text-decoration: none;
    font-family: "Lexend", sans-serif;
}

.findoc-doctor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.findoc-doctor-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.findoc-verified-badge {
    background: #007681;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}


.findoc-doctor-specialty {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    margin: 7px 0px 8px 0px;
}

.findoc-doctor-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.findoc-doctor-location p {
    margin: 0 !important;
}

.findoc-location-icon {
    width: 14px;
    height: 14px;
    fill: #6b7280;
}

.findoc-doctor-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.findoc-stars {
    color: #f59e0b;
    font-size: 14px;
}

.findoc-rating-text {
    font-size: 14px;
    color: #374151;
}

.findoc-doctor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
}

.findoc-tag {
    background: #eff6ff;
    color: #007681;
    font-size: 10px;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 16px;
}

/* Availability Section */
.findoc-availability-section {
    flex: 1;
    max-width: 400px;
}

.findoc-availability-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.findoc-available-today {
    color: #0891b2;
    font-size: 14px;
    /* font-weight: 600; */
}

.findoc-date-info {
    font-size: 14px;
    color: #6b7280;
}

.findoc-time-slots-container {
    margin-bottom: 16px;
}

.findoc-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 120px;
    margin-bottom: 8px;
    overflow-y: auto;
}

/* WebKit browsers */
.findoc-time-slots::-webkit-scrollbar {
    width: 2px;
}

.findoc-time-slots::-webkit-scrollbar-track {
    background: transparent;
}

.findoc-time-slots::-webkit-scrollbar-thumb {
    background-color: #007681;
    border-radius: 10px;
}

.findoc-time-slots::-webkit-scrollbar-thumb:hover {
    background-color: #007681;
}
.findoc-time-slot {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    width: 70px;
    transition: all 0.2s ease;
}

.findoc-time-slot:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.findoc-date-section {
    margin-bottom: 16px;
}

.findoc-date-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

/* Action Buttons */
.findoc-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin: auto 0;
}

.findoc-book-button {
    background: #007681;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.findoc-book-button:hover {
    background: #007681;
}

.findoc-call-button {
    background: white;
    color: #007681;
    border: 2px solid #007681;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.findoc-call-button:hover {
    background: #f0f9ff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .findoc-main-layout {
        flex-direction: column-reverse;
    }

    .findoc-sidebar {
        width: auto;
        order: 2;
    }

    .findoc-doctors-container {
        order: 1;
    }
}

@media (max-width: 768px) {
    .findoc-container {
        padding: 16px;
    }

    .findoc-doctor-card {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .findoc-availability-section {
        max-width: none;
    }

    .findoc-action-buttons {
        width: 100%;
        flex-direction: row;
        gap: 12px;
    }

    .findoc-action-buttons button {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .findoc-doctor-card {
        padding: 16px;
    }

    .findoc-doctor-image {
        width: 60px;
        height: 60px;
    }

    .findoc-action-buttons {
        flex-direction: column;
    }

    .findoc-time-slots {
        gap: 6px;
    }

    .findoc-time-slot {
        padding: 6px 10px;
        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 */
}
.findoc-time-slot {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px 4px 0 0;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
  }
  
  .findoc-time-slot.selected,
  .findoc-time-slot:active {
    background: #007681;
    color: #fff;
    border: 1.5px solid #007681;
    box-shadow: 0 2px 8px rgba(8,145,178,0.10);
  }
  
  .findoc-time-slot:hover:not(.selected) {
    background: #e0f7fa;
    color: #007681;
    border-color: #007681;
  }