/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero-section {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
}

.contact-hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0 140px;
}

.contact-form-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(84, 133, 5, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(84, 133, 5, 0.3);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
}

.form-control.is-valid {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(84, 133, 5, 0.2);
}

.form-feedback {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.invalid-feedback {
    color: #dc3545;
}

/* CAPTCHA Styles */
.captcha-container {
    background: rgba(84, 133, 5, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(84, 133, 5, 0.1);
}

.captcha-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.captcha-challenge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-glow);
}

.captcha-challenge span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.captcha-refresh {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.captcha-refresh:hover {
    transform: rotate(180deg);
    box-shadow: 0 4px 15px rgba(84, 133, 5, 0.4);
}

.captcha-input {
    width: 150px;
}

/* Checkbox Styles */
.form-check {
    margin: 1.5rem 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    background: transparent;
    margin-right: 0.5rem;
}

.form-check-input:checked {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-secondary);
    line-height: 1.4;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-loading {
    display: none;
    align-items: center;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(84, 133, 5, 0.3);
}

/* Contact Info Sidebar */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method-card,
.office-info-card,
.quick-links-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
}

.contact-method-card:hover,
.office-info-card:hover,
.quick-links-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(84, 133, 5, 0.2);
}

.contact-method-card::before,
.office-info-card::before,
.quick-links-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-method-card:hover::before,
.office-info-card:hover::before,
.quick-links-card:hover::before {
    transform: scaleX(1);
}

.contact-method-header h3,
.office-info-card h3,
.quick-links-card h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-method-header p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(84, 133, 5, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(84, 133, 5, 0.1);
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(84, 133, 5, 0.1);
    border-color: rgba(84, 133, 5, 0.3);
    transform: translateX(5px);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(84, 133, 5, 0.3);
    flex-shrink: 0;
}

.method-content h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.method-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.method-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.method-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(84, 133, 5, 0.5);
}

/* Office Information */
.office-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.office-address h5,
.office-hours h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.office-address p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(84, 133, 5, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hours-item:last-child {
    border-bottom: none;
}

/* Quick Links */
.quick-links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(84, 133, 5, 0.05);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(84, 133, 5, 0.1);
}

.quick-link:hover {
    background: rgba(84, 133, 5, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
    border-color: rgba(84, 133, 5, 0.3);
}

.quick-link i {
    color: var(--primary-color);
    width: 20px;
}

/* Message Modal */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-modal {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.message-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.message-icon.success {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 15px 35px rgba(84, 133, 5, 0.4);
}

.message-icon.error {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.4);
}

.message-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.message-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Enhanced Form Styling */
.form-group label i {
    color: var(--primary-color);
    width: 16px;
}

.form-control option {
    background: var(--dark-bg);
    color: var(--text-primary);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Accessibility */
.form-control:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-form-card {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-hero-content h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-form-section {
        padding: 60px 0 100px;
    }

    .contact-form-card {
        padding: 2rem;
        margin-bottom: 3rem;
    }

    .form-header h2 {
        font-size: 2rem;
    }

    .captcha-challenge {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .captcha-input {
        width: 100%;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .method-icon {
        align-self: center;
    }

    .office-details {
        gap: 1.5rem;
    }

    .hours-item {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .contact-hero-section {
        padding: 140px 0 60px;
    }

    .contact-hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-form-card,
    .contact-method-card,
    .office-info-card,
    .quick-links-card {
        padding: 1.5rem;
    }

    .message-modal {
        padding: 2rem;
        margin: 1rem;
    }

    .submit-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .animated-bg,
    .message-overlay {
        display: none !important;
    }
    
    .contact-form-card,
    .contact-method-card,
    .office-info-card,
    .quick-links-card {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
}
