/* Appointment Booking Form Styles */

.appointment-container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

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

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

.form-control {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    outline: none;
}

.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-control[type="date"],
.form-control[type="time"] {
    cursor: pointer;
}

.form-group textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.row-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-primary {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.show {
    display: block;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
}

.header-section h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.header-section p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.fee-display {
    background: #f0f5ff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    color: #667eea;
    display: none;
    font-size: 18px;
    margin-top: 10px;
}

.fee-display.show {
    display: block;
}

.required {
    color: #dc3545;
}

.loading-spinner {
    display: none;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner.show {
    display: block;
}

.form-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.form-error.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .appointment-container {
        padding: 25px;
        margin: 20px 15px;
    }
    
    .header-section h1 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .appointment-container {
        padding: 20px;
        margin: 15px 10px;
        border-radius: 8px;
    }
    
    .row-2cols {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header-section h1 {
        font-size: 24px;
    }
    
    .header-section p {
        font-size: 14px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-control {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .btn-primary {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .alert {
        padding: 12px;
        font-size: 13px;
    }
}

/* Success Message Animation */
.success-animation {
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Input focus states */
.form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #28a745;
}
