/**
 * GD Appointments - Frontend Styles
 * Booking system styling similar to AMEDSIP
 */

/* General Styles */
.gd-booking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Doctor Header */
.gd-doctor-header {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 25px !important; /* Increased padding */
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gd-doctor-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.gd-doctor-info h2 {
    margin: 0 0 8px 0 !important; /* Reduced spacing */
    color: #0c7489;
    font-size: 24px;
    line-height: 1.2 !important;
}

.gd-specialization {
    color: #666;
    margin: 3px 0 !important; /* Reduced spacing */
    line-height: 1.3 !important;
}

.gd-experience {
    color: #666;
    margin: 3px 0 !important; /* Reduced spacing */
    line-height: 1.3 !important;
}

.gd-fee {
    color: #000;
    font-weight: bold;
    font-size: 18px;
    margin: 8px 0 !important; /* Reduced spacing */
    line-height: 1.3 !important;
}

.gd-address {
    color: #666;
    margin: 8px 0 !important; /* Reduced spacing */
    line-height: 1.3 !important;
}

/* Instructions Alert */
.gd-instructions {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 20px !important; /* Increased padding */
    margin-bottom: 20px;
    color: #856404;
}

/* Booking Container */
.gd-booking-container {
    background: #f5f5f5;
    padding: 25px !important; /* Increased padding */
    border-radius: 8px;
}

.gd-booking-row {
    display: flex;
    gap: 30px;
}

.gd-booking-col {
    flex: 1;
}

.gd-booking-form-col {
    flex: 0 0 40%;
}

.gd-booking-calendar-col {
    flex: 1;
}

/* Booking Panel */
.gd-booking-panel {
    background: #fff;
    padding: 30px !important; /* Increased padding */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gd-booking-panel h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #0c7489;
    padding-bottom: 10px;
}

/* Form Styles */
.gd-form-group {
    margin-bottom: 20px;
}

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

.gd-form-group .required {
    color: #dc3545;
}

.gd-form-control {
    width: 100%;
    padding: 12px 15px !important; /* Increased padding for better look */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.gd-form-control:focus {
    outline: none;
    border-color: #0c7489;
    box-shadow: 0 0 0 0.2rem rgba(12,116,137,0.25);
}

.gd-form-control[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
}

.gd-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Select dropdown styling */
select.gd-form-control {
    padding: 12px 15px !important;
    height: auto !important;
    appearance: auto;
}

/* Calendar Styles */
#gd-calendar-container {
    background: #fff;
    padding: 25px !important; /* Increased padding */
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gd-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.gd-calendar-nav button {
    background: #0c7489;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.gd-calendar-nav button:hover {
    background: #095561;
}

.gd-cal-month-year {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.gd-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.gd-cal-weekdays div {
    text-align: center;
    font-weight: bold;
    color: #666;
    padding: 8px;
}

.gd-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.gd-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: not-allowed;
    background: #f9f9f9;
    color: #999;
}

.gd-cal-day.available {
    background: #e8f5f7;
    border-color: #0c7489;
    color: #0c7489;
    cursor: pointer;
    font-weight: bold;
}

.gd-cal-day.available:hover {
    background: #0c7489;
    color: white;
}

.gd-cal-day.selected {
    background: #0c7489;
    color: white;
}

.gd-cal-day.past {
    background: #f0f0f0;
    color: #ccc;
}

.gd-cal-day.empty {
    border: none;
    background: transparent;
}

/* Time Slots */
#gd-slots-container {
    background: #fff;
    padding: 25px !important; /* Increased padding */
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gd-selected-date-display {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.gd-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.gd-time-slot {
    background: #0c7489;
    color: white;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.gd-time-slot:hover {
    background: #095561;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gd-time-slot.selected {
    background: #ffc107;
    color: #000;
}

.gd-time-slot .slot-token {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.gd-time-slot .slot-status {
    font-size: 12px;
}

/* Pricing Info */
.gd-pricing-info {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 20px !important; /* Increased padding */
    margin-top: 15px;
}

.gd-pricing-info p {
    margin: 5px 0;
}

.gd-pricing-info .note {
    color: #dc3545;
    font-size: 12px;
}

/* Payment Button */
#gd-payment-container {
    margin-top: 20px;
}

.gd-pay-button {
    width: 100%;
    background: #17a2b8;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.gd-pay-button:hover {
    background: #138496;
}

.gd-pay-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Success Modal */
.gd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gd-modal-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.gd-modal-content h3 {
    color: #28a745;
    font-size: 28px;
    margin-bottom: 20px;
}

.gd-modal-content p {
    margin: 10px 0;
    color: #666;
}

#gd-booking-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: left;
}

#gd-booking-details p {
    margin: 8px 0;
}

.gd-btn-close {
    background: #0c7489;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.gd-btn-close:hover {
    background: #095561;
}

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

.gd-doctor-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gd-doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.gd-doctor-card-image {
    width: 100%;
    height: 150px; /* Reduced from 200px */
    object-fit: cover;
}

.gd-doctor-card-body {
    padding: 25px !important; /* Increased padding on all sides */
}

.gd-doctor-card-title {
    font-size: 18px;
    margin: 0 0 5px 0 !important; /* Reduced spacing */
    color: #0c7489;
    line-height: 1.2 !important; /* Tighter line spacing */
}

.gd-doctor-card-text {
    color: #666;
    margin: 2px 0 !important; /* Very tight spacing between lines */
    line-height: 1.3 !important; /* Reduced line spacing */
    font-size: 14px;
}

.gd-doctor-card-text strong {
    font-weight: 600;
}

.gd-doctor-instructions {
    color: #666;
    margin: 8px 0 12px 0 !important;
    line-height: 1.3 !important;
    font-size: 13px;
}

.gd-book-now-btn {
    display: block;
    width: 100%;
    background: #0c7489;
    color: white !important;
    text-align: center;
    padding: 16px 12px !important; /* More vertical padding */
    text-decoration: none !important;
    border-radius: 4px;
    margin-top: 15px;
    transition: background 0.3s;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.gd-book-now-btn:hover {
    background: #095561;
    text-decoration: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gd-booking-row {
        flex-direction: column;
    }
    
    .gd-booking-form-col,
    .gd-booking-calendar-col {
        flex: 1 1 100%;
    }
    
    .gd-doctor-header {
        flex-direction: column;
        text-align: center;
    }
    
    .gd-doctor-photo {
        margin: 0 auto;
    }
    
    .gd-time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
