/*
Theme Name:     Shefa Homeo
Theme URI:      https://bdithome.com/
Description:    A child theme of Hello Elementor.
Author:         Apu Dash
Author URI:     https://bdithome.com/
Template:       hello-elementor
Version:        1.0.0
Text Domain:    hello-elementor-child
*/

@import url("../hello-elementor/style.css");

/* Import Anek Bangla font (already handled in functions.php, but good to have here for clarity) */
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@400;500;600;700&display=swap');

/* Base Styles */
body {
    font-family: 'Anek Bangla', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Light gray background */
}





/* General Form Styles */
.appointment-form-group {
    margin-bottom: 20px;
}
.appointment-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.appointment-form-group input[type="text"],
.appointment-form-group input[type="number"],
.appointment-form-group textarea,
.appointment-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Symptom Menu Styles */
#symptom_menu_containers {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-top: 10px;
}

#symptom_menu_primary {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
    margin-bottom: 10px;
}

.symptom-sub-menu-wrapper {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #a6a6a6;
}

.symptom-checkbox-label {
    display: block;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

/* Hover effect for sub-menu items */
.symptom-checkbox-label:hover {
    background-color: #f0f0f0;
    border-color: #b0b0b0;
}

/* Style for the checkbox itself */
.symptom-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0; /* Hide the default checkbox */
}

/* Style for the 'marked' state (when checkbox is checked) */
.symptom-checkbox-label input[type="checkbox"]:checked + span::before {
    content: '\f00c'; /* Font Awesome checkmark icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    color: #4CAF50;
    font-size: 16px;
}

/* Adding an icon for all labels for a consistent look */
.symptom-checkbox-label span {
    padding-left: 30px;
    position: relative;
    display: inline-block;
}

.symptom-checkbox-label span::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    background-color: #fff;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 3px;
    transition: background-color 0.2s ease-in-out;
}

.symptom-checkbox-label:hover span::before {
    background-color: #f0f0f0;
}

.symptom-checkbox-label input[type="checkbox"]:checked + span::before {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.symptom-children-container {
    padding-left: 15px;
    margin-top: 5px;
    display: none; /* Initially hidden */
}

/* --- Appointment Form Styles --- */
.appointment-form-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Anek Bangla', sans-serif;
    color: #333;
}

.appointment-form-container h2 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Anek Bangla', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="file"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

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

/* Payment Options */
.payment-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.payment-options input[type="radio"] {
    display: none;
}

.payment-options label {
    background-color: #e9ecef;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 400;
    color: #555;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    border: 1px solid #dee2e6;
    flex-grow: 1;
    text-align: center;
}

.payment-options input[type="radio"]:checked + label {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.payment-info-box {
    background-color: #e0f7fa;
    border: 1px solid #b2ebf2;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    color: #00796b;
    font-size: 15px;
    line-height: 1.5;
}

/* Submit Button */
.appointment-form-container button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.1s ease-in-out;
    margin-top: 30px;
    font-family: 'Anek Bangla', sans-serif;
}

.appointment-form-container button[type="submit"]:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.appointment-form-container button[type="submit"]:active {
    transform: translateY(0);
}

/* Status Messages */
.appointment-form-status {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.appointment-form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.appointment-form-message {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #6c757d;
}

/* --- New Single Page Styles --- */
.single-appointment-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Anek Bangla', sans-serif;
    color: #333;
}

.single-appointment-container h1 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 30px;
    font-size: 32px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.appointment-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.appointment-details-table th,
.appointment-details-table td {
    padding: 15px;
    border: 1px solid #e9ecef;
    text-align: left;
    vertical-align: top;
    font-size: 16px;
}

.appointment-details-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    width: 35%;
}

.appointment-details-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.appointment-details-table tr:hover {
    background-color: #e9ecef;
    transition: background-color 0.2s ease-in-out;
}

.table-attachment a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.table-attachment a:hover {
    text-decoration: underline;
}

/* Responsive Table Styles */
@media screen and (max-width: 768px) {
    .single-appointment-container {
        padding: 15px;
    }
    .appointment-details-table thead {
        display: none;
    }
    .appointment-details-table,
    .appointment-details-table tbody,
    .appointment-details-table tr,
    .appointment-details-table td {
        display: block;
        width: 100%;
    }
    .appointment-details-table tr {
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .appointment-details-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .appointment-details-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: #0056b3;
    }
}



/* Custom styles for the info cards */
.info-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    font-family: 'Anek Bangla', sans-serif;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-card h3 i {
    font-size: 24px;
    margin-right: 10px;
    color: #0073e6; /* You can change this color */
}

/* Symptom list specific styles */
.symptom-card .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.symptom-card .info-list li {
    background-color: #f9f9f9;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-left: 3px solid #0073e6; /* You can change this color */
    border-radius: 4px;
    font-size: 16px;
    color: #555;
    transition: background-color 0.3s ease;
}

.symptom-card .info-list li:hover {
    background-color: #f1f1f1;
}

/* Doctor name specific styles */
.doctor-card .doctor-name {
    font-size: 18px;
    font-weight: 500;
    color: #0073e6;
    margin: 0;
}

.info-card-empty {
    color: #888;
    font-style: italic;
}


/* ======== HORIZONTAL LAYOUT CSS ========  */

.custom-cards-container {
    display: flex;
    gap: 20px; /* Space between the cards */
    flex-wrap: wrap; /* Allows cards to wrap on smaller screens */
    align-items: flex-start; /* Aligns items to the top */
}

.custom-cards-container .info-card {
    flex: 1 1 calc(50% - 10px); /* Adjusts width for two items with gap */
}


/* ======== STYLES FOR PAYMENT METHOD BUTTONS ========  */

.payment-method-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-family: 'Anek Bangla', sans-serif;
}

.payment-method-item {
    flex: 1 1 auto;
}

.payment-method-item input[type="radio"] {
    display: none; /* Hide the default radio button */
}

.payment-method-item label {
    display: block;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 20px;
    text-align: center;
    transition: all 0.2s ease-in-out;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
}

/* Hover and active state for the buttons */
.payment-method-item label:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.payment-method-item input[type="radio"]:checked + label {
    background-color: #0073e6; /* Highlight color when selected */
    border-color: #0073e6;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 115, 230, 0.3);
}


/* For smaller screens, make the cards full width */
@media (max-width: 767px) {
    .custom-cards-container {
        flex-direction: column; /* Stack the cards vertically */
    }
    .custom-cards-container .info-card {
        width: 100%;
        flex: none; /* Reset flex to allow full width */
    }
    
    .payment-method-group {
        flex-direction: column;
    }
}

/* ======== TABLE STYLES FOR DETAILS PAGE ======== */

.single-appointment-container {
    font-family: 'Anek Bangla', sans-serif;
}
.appointment-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Anek Bangla', sans-serif;
}

.appointment-details-table th, 
.appointment-details-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.appointment-details-table thead tr {
    background-color: #f2f2f2;
    color: #333;
}

.appointment-details-table tbody tr:last-child td {
    border-bottom: none;
}

.appointment-details-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Responsive Table */
@media screen and (max-width: 767px) {
    .appointment-details-table thead {
        display: none;
    }

    .appointment-details-table, 
    .appointment-details-table tbody, 
    .appointment-details-table tr, 
    .appointment-details-table td {
        display: block;
        width: 100%;
    }

    .appointment-details-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        background-color: #fff;
    }

    /* প্রথম কলামটি হাইড করার জন্য নতুন রুল */
    .appointment-details-table td:first-child {
        display: none;
    }
    
    .appointment-details-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .appointment-details-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
        color: #555;
    }
}