/* Appointment System Styles */
/* Dedicated CSS file for appointment booking functionality */

.appointment-booking-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    margin-top: 100px;
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.booking-header p {
    color: #666;
    font-size: 1.1rem;
}

.human-verification {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #107c10;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.verification-title {
    color: #107c10;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Simple Math Challenge Styles */
.simple-math-challenge {
    background: white;
    border: 2px solid #107c10;
    border-radius: 15px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.math-instructions h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.math-problem {
    margin: 30px 0;
}

.math-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 2.5rem;
    font-weight: bold;
}

.number {
    background: #107c10;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    min-width: 80px;
    display: inline-block;
}

.operator, .equals {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: bold;
}

.math-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.simple-math-input {
    width: 120px;
    padding: 15px;
    border: 3px solid #ddd;
    border-radius: 10px;
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.simple-math-input:focus {
    border-color: #107c10;
    outline: none;
    box-shadow: 0 0 10px rgba(16, 124, 16, 0.3);
}

.simple-math-input.correct {
    border-color: #28a745;
    background-color: #d4edda;
}

.simple-math-input.incorrect {
    border-color: #dc3545;
    background-color: #f8d7da;
}

.check-button {
    background: linear-gradient(135deg, #107c10 0%, #0f5f0f 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 124, 16, 0.3);
}

.check-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 124, 16, 0.4);
}

.check-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.math-result {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 15px;
    min-height: 30px;
}

.math-result.success {
    color: #28a745;
}

.math-result.error {
    color: #dc3545;
}

.help-text {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    text-align: left;
}

.help-text p {
    margin: 0;
    color: #1565c0;
    font-size: 1rem;
    line-height: 1.5;
}

.help-text i {
    color: #ff9800;
    margin-right: 8px;
}

.appointment-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #107c10;
    padding-bottom: 10px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #107c10;
    outline: none;
}

/* SMS Consent Styling - Small and Unobtrusive */
.sms-consent {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.sms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.3;
    color: #6c757d;
    margin: 0;
}

.sms-checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.sms-consent-text {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.2;
}

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

.priority-option {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

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

.priority-header h4 {
    color: #856404;
    margin: 0;
    font-size: 1.2rem;
}

.price-tag {
    background: #107c10;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.priority-description {
    color: #856404;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.slider-wrapper {
    position: relative;
}

.priority-slider {
    display: none;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.slider-label:hover {
    background: #e9ecef;
}

.priority-slider:checked + .slider-label {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
}

.slider-button {
    background: #6c757d;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.priority-slider:checked + .slider-label .slider-button {
    background: #28a745;
    transform: translateX(10px);
}

.submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.btn-submit {
    background: linear-gradient(135deg, #107c10 0%, #0f5f0f 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(16, 124, 16, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 124, 16, 0.4);
}

.btn-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.verification-status {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
}

.verification-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.verification-status.completed {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.verification-status.failed {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

/* Confirmation page styles */
.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #107c10;
    margin-bottom: 2rem;
}

.appointment-details {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.detail-value {
    color: #666;
    flex: 2;
    text-align: right;
}

.priority-service {
    color: #28a745 !important;
    font-weight: 600;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid #28a745;
    display: inline-block;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-outline {
    background: transparent;
    color: #107c10;
    border: 2px solid #107c10;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #107c10;
    color: white;
}

.appointment-id {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-family: monospace;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .appointment-booking-container {
        padding: 20px 15px;
        margin-top: 80px;
    }
    
    .booking-header h1 {
        font-size: 2rem;
    }
    
    .human-verification {
        padding: 25px 20px;
    }
    
    .simple-math-challenge {
        padding: 25px 20px;
    }
    
    .math-numbers {
        font-size: 2rem;
        gap: 10px;
    }
    
    .number {
        padding: 12px 20px;
        min-width: 60px;
    }
    
    .math-input-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .simple-math-input {
        width: 100px;
        font-size: 1.3rem;
    }
    
    .check-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .appointment-form {
        padding: 25px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .help-text {
        padding: 15px;
        font-size: 0.9rem;
    }
}
