/* Medical Appointments Frontend Styles */

.medical-appointments-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ma-search-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.ma-search-section h2 {
    margin-top: 0;
    color: #333;
}

.ma-search-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.ma-search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ma-search-btn {
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.ma-search-btn:hover {
    background: #005a87;
}

.ma-providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ma-provider-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.ma-provider-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ma-provider-card h3 {
    margin-top: 0;
    color: #0073aa;
}

.ma-provider-card .credentials {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.ma-provider-card .phone {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.ma-provider-card .tags {
    margin: 10px 0;
    font-size: 12px;
}

.ma-provider-card .tag {
    display: inline-block;
    background: #e8f4f8;
    color: #0073aa;
    padding: 4px 8px;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.ma-schedule-btn {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
}

.ma-schedule-btn:hover {
    background: #005a87;
}

.ma-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ma-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

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

.ma-modal-close:hover {
    color: #000;
}

.ma-calendar {
    margin: 20px 0;
}

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

.ma-calendar-header button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.ma-calendar-header button:hover {
    background: #005a87;
}

.ma-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.ma-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background: white;
    font-size: 12px;
}

.ma-calendar-day:hover {
    background: #f0f0f0;
}

.ma-calendar-day.selected {
    background: #0073aa;
    color: white;
}

.ma-calendar-day.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.ma-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.ma-time-slot {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    background: white;
    font-size: 12px;
}

.ma-time-slot:hover {
    background: #f0f0f0;
}

.ma-time-slot.selected {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.ma-time-slot.booked {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.ma-form-group {
    margin-bottom: 15px;
}

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

.ma-form-group input,
.ma-form-group select,
.ma-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

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

.ma-form-group input:focus,
.ma-form-group select:focus,
.ma-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}

.ma-submit-btn {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

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

.ma-required {
    color: red;
}

@media (max-width: 768px) {
    .ma-providers-grid {
        grid-template-columns: 1fr;
    }
    
    .ma-search-form {
        flex-direction: column;
    }
    
    .ma-search-input {
        min-width: 100%;
    }
    
    .ma-modal-content {
        width: 95%;
        padding: 20px;
    }
}

