/* Appointment Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3c72 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: slideInDown 0.8s ease;
}

.header-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
    animation: slideInUp 0.8s ease 0.2s both;
}

.breadcrumb {
    animation: slideInUp 0.8s ease 0.4s both;
}

.breadcrumb a {
    color: #ffd700;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 10px;
    opacity: 0.7;
}

/* Emergency Banner */
.emergency-banner {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px 0;
    animation: pulse-emergency 2s ease-in-out infinite;
}

@keyframes pulse-emergency {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 107, 0.6);
    }
}

.emergency-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.emergency-text {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.emergency-text i {
    font-size: 1.5rem;
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.emergency-actions {
    display: flex;
    gap: 15px;
}

.emergency-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.emergency-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.emergency-btn.whatsapp:hover {
    background: #25d366;
}

/* Main Appointment Content */
.appointment-main {
    padding: 60px 0;
    background: #f8f9fa;
}

.appointment-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Form Section */
.appointment-form-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #2c5aa0, #1e3c72);
    color: white;
    padding: 30px;
    text-align: center;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.appointment-form {
    padding: 40px;
}

.form-section {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: #2c5aa0;
    margin-bottom: 25px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Styling */
.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #2c5aa0;
}

.form-group label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.terms-checkbox,
.consent-checkbox {
    margin-bottom: 20px;
}

.terms-checkbox label,
.consent-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    cursor: pointer;
}

.terms-checkbox a,
.consent-checkbox a {
    color: #2c5aa0;
    text-decoration: underline;
}

/* Submit Section */
.form-submit {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.submit-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: pulse-book-now 3s infinite;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

.submit-note {
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Sidebar Styles */
.appointment-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-5px);
}

.sidebar-card h3 {
    color: #2c5aa0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.info-item i {
    color: #2c5aa0;
    margin-top: 2px;
    width: 20px;
}

.info-item div strong {
    display: block;
    color: #333;
    margin-bottom: 3px;
}

.info-item div span {
    color: #666;
    font-size: 0.95rem;
}

/* Price List */
.price-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item span {
    color: #666;
}

.price-item strong {
    color: #2c5aa0;
    font-size: 1.1rem;
}

.price-note {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Emergency Card */
.emergency-card {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.emergency-card h3,
.emergency-card p {
    color: white;
}

.emergency-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.emergency-call,
.emergency-whatsapp {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.emergency-call:hover {
    background: rgba(255, 255, 255, 0.3);
}

.emergency-whatsapp:hover {
    background: #25d366;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 0;
}

.benefits-list i {
    color: #4CAF50;
    font-size: 1.1rem;
}

/* Form Validation Styles */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Loading State */
.form-loading {
    position: relative;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .appointment-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .appointment-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .emergency-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .appointment-form {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .emergency-buttons {
        flex-direction: column;
    }
    
    .sidebar-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 90px 0 30px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .form-header {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .appointment-form {
        padding: 20px;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .emergency-banner,
    .appointment-sidebar,
    .submit-btn {
        display: none;
    }
    
    .appointment-content {
        grid-template-columns: 1fr;
    }
    
    .appointment-form-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
