/**
 * Residence Contact Section Styles
 * 
 * Styles for the contact section on residence detail pages.
 * Follows BEM naming convention.
 */

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    background: linear-gradient(135deg, var(--primary-color, #0c2340) 0%, #1a365d 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(var(--accent-color-rgb, 212, 175, 55), 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-section .section-title {
    color: white;
    font-size: 2.75rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.025em;
}

.contact-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-bottom: 3rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   CONTACT INFO
   ============================================ */

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

.contact-methods {
    margin: 2.5rem 0;
}

.contact-method {
    padding: 1.25rem;
    border-radius: var(--radius-lg, 12px);
    transition: all var(--transition-base, 250ms);
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.method-icon {
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.method-icon i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: var(--radius-full, 50%);
    transition: all var(--transition-base, 250ms);
}

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

.method-details h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.method-details a {
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-base, 250ms);
    color: white;
    text-decoration: none;
}

.method-details a:hover {
    color: var(--accent-color, #d4af37) !important;
}

.method-details p {
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   CONTACT BUTTONS
   ============================================ */

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-buttons .contact-btn {
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.contact-buttons .btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--primary-color, #0c2340);
    backdrop-filter: blur(10px);
}

.contact-buttons .btn-light:hover {
    background: white;
    color: var(--primary-color, #0c2340);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2);
}

.contact-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    background: transparent;
}

.contact-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: translateY(-3px);
}

.contact-buttons .btn-success {
    background: #25d366;
    border: 2px solid #25d366;
    color: white;
}

.contact-buttons .btn-success:hover {
    background: #22c55e;
    border-color: #22c55e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* ============================================
   CONTACT FORM WRAPPER
   ============================================ */

.contact-form-wrapper {
    position: relative;
    z-index: 2;
}

/* Dark mode: Ensure form wrapper and cards are ultra-black */
[data-theme="dark"] .contact-form-wrapper,
[data-theme="dark"] .contact-form-wrapper .residence-inquiry-form-card,
[data-theme="dark"] .contact-form-wrapper .container,
[data-theme="dark"] .contact-form-wrapper .row,
[data-theme="dark"] .contact-form-wrapper .col-lg-6 {
    background-color: transparent !important;
    background: transparent !important;
}

[data-theme="dark"] .residence-inquiry-form-card {
    background-color: #0a0a0a !important; /* Ultra-black card background */
    border-color: #2a2a2a !important; /* Ultra-black border */
    color: #ffffff !important;
}

/* ============================================
   DARK MODE SUPPORT - Ultra Black Theme
   ============================================ */

[data-theme="dark"] .contact-section {
    background: #000000 !important; /* Ultra-black background */
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%) !important; /* Subtle ultra-black gradient */
}

[data-theme="dark"] .contact-section::before {
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(var(--accent-color-rgb, 212, 175, 55), 0.05) 0%, transparent 60%);
}

[data-theme="dark"] .contact-section .section-title {
    color: var(--color-dark-text, #f8fafc);
}

[data-theme="dark"] .contact-method {
    background: #0a0a0a !important; /* Ultra-black card background */
    border-color: #2a2a2a !important; /* Ultra-black border */
    color: #ffffff !important;
}

[data-theme="dark"] .contact-method:hover {
    background: #121212 !important; /* Slightly lighter on hover */
    border-color: rgba(212, 175, 55, 0.3) !important; /* Gold accent on hover */
}

[data-theme="dark"] .contact-buttons .btn-light {
    background: rgba(248, 249, 250, 0.95);
    color: var(--color-dark-bg, #111827);
}

[data-theme="dark"] .contact-buttons .btn-light:hover {
    background: var(--color-dark-text, #f8fafc);
    color: var(--color-dark-bg, #111827);
}

[data-theme="dark"] .contact-buttons .btn-outline-light {
    border-color: rgba(248, 249, 250, 0.4);
    color: var(--color-dark-text, #f8fafc);
}

[data-theme="dark"] .contact-buttons .btn-outline-light:hover {
    border-color: rgba(248, 249, 250, 0.6);
    color: var(--color-dark-text, #f8fafc);
    background: rgba(248, 249, 250, 0.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-methods {
        margin: 2rem 0;
    }
    
    .contact-method {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-method:hover {
        transform: none;
        padding-left: 1rem;
    }
    
    .method-icon {
        margin-right: 1rem;
    }
    
    .method-icon i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-top: 1.5rem;
    }
    
    .contact-buttons .contact-btn {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
}

