/* WML Booking Sessions Public Styles */

/* Session List Styles */
.wml-booking-sessions-list {
    margin: 20px 0;
}

.session-filters {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

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

.filter-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

.filter-form .button {
    padding: 8px 16px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.filter-form .button:hover {
    background: #005a87;
}

.filter-form .button-secondary {
    background: #6c757d;
    color: white;
    text-decoration: none;
    margin-left: 10px;
}

.filter-form .button-secondary:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
}

/* Sessions Grid */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.session-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.session-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.session-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.session-status.available {
    background: #d4edda;
    color: #155724;
}

.session-status.full {
    background: #f8d7da;
    color: #721c24;
}

.session-status.cancelled {
    background: #d6d8db;
    color: #383d41;
}

.session-excerpt {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.session-meta {
    margin-bottom: 20px;
}

.session-meta > div {
    margin-bottom: 8px;
    font-size: 14px;
}

.session-meta strong {
    color: #495057;
}

.session-price {
    background: #f0f6fc;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #007cba;
    margin-top: 10px;
}

.session-price strong {
    color: #007cba;
}

.session-price .woocommerce-Price-amount {
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
}

.session-actions {
    text-align: right;
}

.book-session-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.book-session-btn:hover {
    background: #218838;
}

.book-session-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* No sessions message */
.no-sessions {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Modal Styles */
.wml-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

/* Booking Form Styles */
.wml-booking-form {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.form-actions .button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.cancel-booking {
    background: #6c757d;
    color: white;
}

.cancel-booking:hover {
    background: #545b62;
}

.submit-booking {
    background: #007cba;
    color: white;
}

.submit-booking:hover {
    background: #005a87;
}

/* Single Session Booking Form */
.wml-booking-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.session-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.session-info h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Doctor List Styles */
.wml-doctors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.doctor-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.doctor-photo {
    text-align: center;
    margin-bottom: 15px;
}

.doctor-photo img {
    border-radius: 50%;
    max-width: 100px;
    height: 100px;
    object-fit: cover;
}

.doctor-name {
    margin: 0 0 10px 0;
    color: #2c3e50;
    text-align: center;
}

.doctor-specialties {
    text-align: center;
    margin-bottom: 15px;
}

.specialty-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px;
}

.doctor-bio {
    margin-bottom: 15px;
    color: #6c757d;
    line-height: 1.5;
}

.doctor-contact p {
    margin: 5px 0;
    font-size: 14px;
}

/* User Dashboard Styles */
.wml-user-dashboard {
    margin: 20px 0;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.booking-header h4 {
    margin: 0;
    color: #2c3e50;
}

.booking-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.booking-status-pending .booking-status {
    background: #fff3cd;
    color: #856404;
}

.booking-status-confirmed .booking-status {
    background: #d4edda;
    color: #155724;
}

.booking-status-cancelled .booking-status {
    background: #f8d7da;
    color: #721c24;
}

.booking-status-completed .booking-status {
    background: #cce5ff;
    color: #004085;
}

.booking-details p {
    margin: 5px 0;
    font-size: 14px;
}

.booking-actions {
    margin-top: 15px;
    text-align: right;
}

.cancel-booking-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cancel-booking-btn:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .session-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .session-status {
        margin-top: 10px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .wml-doctors-list {
        grid-template-columns: 1fr;
    }
    
    .booking-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .booking-actions {
        text-align: left;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for loading */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Two-Step Booking Modal Styles */
#booking-progress {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6c757d;
    transition: color 0.3s ease;
}

.step.active {
    color: #007cba;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #007cba;
    color: white;
}

.step-title {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

/* Date Time Selection Styles */
.datetime-selection {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.availability-info {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.availability-info.available {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.availability-info.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-icon {
    font-size: 18px;
}

.status-text {
    font-weight: 600;
}

#booking-time:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.form-group .description {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

.form-group .description.no-availability {
    color: #dc3545;
    font-weight: 600;
}

/* Step Navigation Buttons */
#next-step {
    background: #007cba;
    color: white;
}

#next-step:hover {
    background: #005a87;
}

#prev-step {
    background: #6c757d;
    color: white;
}

#prev-step:hover {
    background: #545b62;
}

/* Enhanced Modal for Two Steps */
.modal-content {
    max-width: 600px;
    max-height: 85vh;
}

/* Responsive Two-Step Modal */
@media (max-width: 768px) {
    .progress-steps {
        gap: 20px;
    }
    
    .step-title {
        font-size: 11px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .datetime-selection {
        padding: 15px;
    }
    
    .availability-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Payment Options Styles */
.payment-options {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.payment-options h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.payment-choice {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-option:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.payment-option input[type="radio"] {
    margin: 0 12px 0 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.payment-option input[type="radio"]:checked + .payment-option-content {
    color: #007cba;
}

.payment-option input[type="radio"]:checked {
    accent-color: #007cba;
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: #007cba;
    background: #f0f8ff;
}

.payment-option-content {
    flex: 1;
}

.payment-option-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.payment-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.payment-amount {
    font-size: 20px;
    font-weight: 700;
    color: #007cba;
    margin-bottom: 3px;
}

.payment-remaining {
    font-size: 14px;
    color: #dc3545;
    font-weight: 500;
}

.payment-option:has(input[type="radio"]:checked) .payment-amount {
    color: #005a87;
}

/* Mobile responsive for payment options */
@media (max-width: 768px) {
    .payment-options {
        margin: 15px 0;
        padding: 15px;
    }
    
    .payment-option {
        padding: 12px;
    }
    
    .payment-amount {
        font-size: 18px;
    }
} 