/* =====================================================================
   Contact Page Specific Styles
   ===================================================================== */

/* Hero Section */
.contact-hero {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    padding: var(--space-3xl) 0;
    margin-bottom: var(--space-2xl);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('{{ image_url("/images/contact-hero.jpg") }}') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    color: var(--text-secondary);
}

.hero-stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--gold-accent);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.hero-stat-label {
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contact Cards */
.contact-cards-section {
    padding: var(--space-2xl) 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    height: 100%;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold-accent);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.08);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: var(--text-4xl);
    color: var(--primary-color);
    box-shadow: var(--shadow-gold);
    position: relative;
    z-index: 2;
}

.contact-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 4s infinite;
}

.contact-card h3 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

.contact-card-content {
    position: relative;
    z-index: 2;
}

.contact-method {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
}

.contact-method:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(var(--space-sm));
}

.contact-method-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.contact-method-value {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.contact-method-value a {
    color: var(--gold-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-method-value a:hover {
    color: var(--text-primary);
}

/* Response Time Badge */
.response-badge {
    background: var(--gradient-gold);
    color: var(--primary-color);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-md);
    animation: pulse 3s infinite;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    opacity: 0.1;
    transition: left 0.3s ease;
    z-index: -1;
}

.quick-action-btn:hover::before {
    left: 0;
}

.quick-action-btn:hover {
    color: var(--text-primary);
    border-color: var(--gold-accent);
    transform: translateX(var(--space-sm));
}

/* Form Section */
.form-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-gold);
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.form-header h2 {
    color: var(--text-primary);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.form-header p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin: 0;
}

/* Form Controls */
.form-floating {
    margin-bottom: var(--space-lg);
    position: relative;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    padding: var(--space-lg) var(--space-md);
    height: auto;
    font-size: var(--text-base);
    transition: all var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    color: var(--text-primary);
}

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

.form-floating > label {
    color: var(--text-muted);
    background: transparent;
    padding: 0 var(--space-sm);
    font-weight: 500;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select:focus ~ label,
.form-floating > .form-select:not([value=""]) ~ label {
    color: var(--gold-accent);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-text {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

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

/* Character counter */
#charCount {
    font-weight: 600;
    transition: color var(--transition-base);
}

#charCount.text-danger {
    color: var(--error-color) !important;
}

/* Validation styles */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: var(--success-color);
    background-image: none;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: var(--error-color);
    background-image: none;
}

.invalid-feedback {
    color: var(--error-color);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

.valid-feedback {
    color: var(--success-color);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

/* Submit Button */
.btn-submit {
    background: var(--gradient-gold);
    color: var(--primary-color);
    border: 2px solid transparent;
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-lg);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
    color: var(--primary-color);
}

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

.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: var(--space-lg);
}

/* Info Panel */
.info-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-gold);
}

.info-panel h2 {
    color: var(--text-primary);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.02);
}

.info-item:hover {
    background: rgba(212, 175, 55, 0.05);
    transform: translateX(var(--space-sm));
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-item h3 {
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: 600;
    margin: 0 0 var(--space-xs);
}

.info-item p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Success/Error Alerts */
.alert-success-modern {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid var(--success-color);
    border-radius: var(--radius-xl);
    color: var(--success-color);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.alert-error-modern {
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid var(--error-color);
    border-radius: var(--radius-xl);
    color: var(--error-color);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* reCAPTCHA Container */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: var(--space-xl) 0;
}

/* Privacy Notice */
.privacy-notice {
    text-align: center;
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

/* Mobile Optimizations */
@media (max-width: 767.98px) {
    .contact-hero {
        padding: var(--space-2xl) 0;
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .hero-stats {
        gap: var(--space-lg);
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stat {
        min-width: 120px;
    }
    
    .contact-card {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-2xl);
    }
    
    .form-section {
        padding: var(--space-lg);
    }
    
    .form-header h2 {
        font-size: var(--text-2xl);
    }
    
    .info-panel {
        padding: var(--space-lg);
    }
    
    .quick-actions {
        gap: var(--space-xs);
    }
    
    .quick-action-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .contact-cards-section .row > div {
        margin-bottom: var(--space-lg);
    }
    
    .form-floating {
        margin-bottom: var(--space-md);
    }
    
    .btn-submit {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--text-base);
    }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
    .contact-card,
    .info-item,
    .quick-action-btn,
    .btn-submit {
        transition: none;
        animation: none;
    }
    
    .contact-icon::after {
        animation: none;
    }
}

.contact-card:focus-within,
.form-section:focus-within,
.info-panel:focus-within {
    outline: 2px solid var(--gold-accent);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .contact-hero,
    .contact-icon::after,
    .btn-submit {
        background: white;
        color: black;
    }
    
    .contact-card,
    .form-section,
    .info-panel {
        border: 1px solid #000;
        background: white;
        break-inside: avoid;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .contact-card,
    .form-section,
    .info-panel {
        border: 2px solid #ffffff;
        background: rgba(0, 0, 0, 0.9);
    }
    
    .form-control,
    .form-select {
        border: 2px solid #ffffff;
        background: rgba(0, 0, 0, 0.8);
        color: #ffffff;
    }
    
    .btn-submit {
        border: 2px solid #ffffff;
        background: #000000;
        color: #ffffff;
    }
}