/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

/* 1. Hero Section */
.contact-hero {
    position: relative;
    padding: 160px 0 100px;
    background: url('https://images.unsplash.com/photo-1592837330206-89754988fce7?auto=format&fit=crop&q=80') center/cover no-repeat;
    color: white;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Golden-hour overlay */
    background: linear-gradient(135deg, rgba(20, 30, 20, 0.9) 0%, rgba(20, 30, 20, 0.7) 50%, rgba(212, 175, 55, 0.3) 100%);
    z-index: 1;
}

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

/* 2. Quick Contact Cards */
.contact-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(39, 174, 96, 0.1);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon-wrapper {
    background: var(--color-primary);
    color: white;
}

.contact-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.contact-card:hover .contact-card-link {
    gap: 12px;
}

/* 3. Contact Form */
.contact-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.form-floating-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-custom .form-control {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-floating-custom .form-control:focus {
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

/* 4. Business Information */
.biz-info-card {
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

/* 5. Interactive Map Placeholder */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
}

.map-overlay-card {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 10;
    max-width: 300px;
}

/* 6. Service Areas (Kerala Map) */
.kerala-map-wrapper {
    position: relative;
    padding: 3rem;
    background: #f8fafc;
    border-radius: 20px;
    text-align: center;
}

.district-badge {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 5px;
    transition: all 0.3s ease;
}

.district-badge:hover, .district-badge.active {
    background: var(--color-primary);
    color: white;
}

/* 7. Business Hours Timeline */
.hours-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #e2e8f0;
}

.hours-item {
    position: relative;
    margin-bottom: 25px;
}

.hours-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

.hours-item.closed::before {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.hours-day {
    font-weight: 600;
    color: var(--color-dark);
    display: block;
}

.hours-time {
    color: #64748b;
    font-size: 0.95rem;
}

/* 8. Why Contact AH? Feature Cards */
.why-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.why-contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(39, 174, 96, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* 9. FAQ Accordion */
.premium-accordion .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 15px;
}

.premium-accordion .accordion-button {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px !important;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--color-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.premium-accordion .accordion-button:not(.collapsed) {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.premium-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.premium-accordion .accordion-button:focus {
    box-shadow: none;
}

.premium-accordion .accordion-body {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 1.5rem;
    color: #64748b;
}

/* 10. Emergency Banner */
.emergency-banner {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a1a 100%);
    padding: 4rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.emergency-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    transform: translate(50%, -50%);
}

/* 11. Social Media */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-card i {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.social-card:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.social-card:hover i {
    color: white;
}

/* 12. Final CTA */
.final-cta {
    position: relative;
    padding: 120px 0;
    background: url('https://images.unsplash.com/photo-1592837330206-89754988fce7?auto=format&fit=crop&q=80') center/cover no-repeat;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 10, 0.85);
    backdrop-filter: blur(3px);
}

.final-cta .container-custom {
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .contact-form-wrapper {
        padding: 2rem;
    }
}