/* Contact Page Styles - Updated for Turnstile */

/* Fix page header positioning to show h1 properly */
.page-header {
    padding-top: 350px !important;
    padding-bottom: 80px !important;
}

.page-header h1 {
    font-size: 4rem !important;
    font-weight: 800 !important;
    color: white !important;
    margin-bottom: 30px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
    margin-top: 0 !important;
}

.page-header p {
    font-size: 1.4rem !important;
    color: rgba(255,255,255,0.95) !important;
    text-align: center !important;
    max-width: 700px !important;
    margin: 0 auto 50px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Contact Methods Section */
.contact-methods {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

/* Contact Card Styling */
.contact-card {
    background: white;
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
    height: 100%;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 30px;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
}

.contact-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-card p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Contact Icon Styling */
.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

/* Contact Info and Response Time */
.contact-info {
    font-weight: 700;
    color: #2c5aa0;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.response-time {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    font-weight: 600;
    font-size: 0.95rem;
}

.response-time i {
    margin-right: 8px;
}

/* Contact Form Section */
.contact-form-section {
    padding: 100px 0;
    background: white;
}

.form-container {
    background: white;
    border-radius: 25px;
    padding: 60px 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Form Styling */
.form-group {
    margin-bottom: 25px;
}

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

.form-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3e50;
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
    background: white;
    outline: none;
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

/* Textarea specific styling */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Character Counter */
.char-counter {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: right;
    margin-top: 5px;
    font-weight: 500;
}

.char-counter.text-warning {
    color: #f0ad4e !important;
}

.char-counter.text-danger {
    color: #dc3545 !important;
}

/* Form Check (Checkboxes) */
.form-check {
    margin: 20px 0;
    padding-left: 0;
}

.form-check-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    border: 2px solid #2c5aa0;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
}

.form-check-label {
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 0;
    cursor: pointer;
}

.form-check-label a {
    color: #2c5aa0;
    text-decoration: none;
}

.form-check-label a:hover {
    color: #1e3d6f;
    text-decoration: underline;
}

/* Security Verification Section */
.security-verification {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 78px; /* Standard Turnstile height */
}

.security-loading {
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-loading i {
    margin-right: 8px;
    color: #2c5aa0;
}

.security-disabled {
    color: #28a745;
    font-weight: 500;
    text-align: center;
    font-style: italic;
}

.security-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border: 2px solid #f5c6cb;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.security-error i {
    margin-right: 8px;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success/Error Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-weight: 600;
    border: 2px solid #c3e6cb;
    display: flex;
    align-items: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-weight: 600;
    border: 2px solid #f5c6cb;
    display: flex;
    align-items: center;
}

.success-message i,
.error-message i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Form Validation States */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745;
    background: #f8fff8;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Locations Section */
.locations-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.location-card {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.location-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
}

.location-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
}

.location-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.location-card:hover .location-icon {
    transform: scale(1.1);
}

.location-info {
    text-align: left;
    color: #6c757d;
    line-height: 1.7;
}

.location-info strong {
    color: #2c5aa0;
    font-weight: 600;
}

/* Live Chat Button */
.live-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1000;
}

.live-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.live-chat i {
    margin-right: 8px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Header Stats */
.header-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 3rem !important;
    }
    
    .page-header p {
        font-size: 1.2rem !important;
    }
    
    .header-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-card {
        padding: 40px 30px;
    }
    
    .form-container {
        padding: 40px 30px;
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .live-chat {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding-top: 300px !important;
        padding-bottom: 60px !important;
    }
    
    .page-header h1 {
        font-size: 2.5rem !important;
    }
    
    .page-header p {
        font-size: 1.1rem !important;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .btn-submit {
        padding: 15px 30px;
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .security-verification {
        padding: 20px 15px;
    }
    
    .live-chat {
        position: fixed;
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 11px;
    }
}

/* Animation effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card,
.location-card {
    animation: fadeInUp 0.6s ease-out;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

/* Focus states for accessibility */
.contact-card:focus-within {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

.btn-submit:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Turnstile widget styling adjustments */
.cf-turnstile {
    margin: 0 auto;
}

/* Override any conflicting Bootstrap styles for Turnstile */
.turnstile-container iframe {
    max-width: none !important;
    border: none !important;
    background: transparent !important;
}

/* Custom styling for better integration */
.security-verification .cf-turnstile {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
