/* ==========================================================================
   CONTACT PAGE STYLES - CLEAN VERSION
   ========================================================================== */

/* CSS Variables for Theme Colors */
:root {
    --primary-brown: #2d231b;
    --accent-golden: #ffc107;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
}

/* Hero Section with Background Image and Overlay */
.contact-hero-section {
    background: linear-gradient(rgba(45, 35, 25, 0.8), rgba(93, 64, 55, 0.8)), 
                url('../images/hero-1.jpg') center/cover no-repeat;
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 35, 25, 0.3);
    z-index: 1;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
}

.contact-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-hero-content .page-subtitle {
    font-size: 1.3rem;
    color: var(--accent-golden);
    margin-bottom: 0;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Main Contact Section */
.main-contact-section {
    padding: 60px 0;
}

.contact-sidebar {
    position: sticky;
    top: 20px;
}

/* Sidebar Cards */
.sidebar-contact-card,
.sidebar-hours-card,
.sidebar-emergency-card,
.sidebar-links-card,
.sidebar-social-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.sidebar-contact-card:hover,
.sidebar-hours-card:hover,
.sidebar-emergency-card:hover,
.sidebar-links-card:hover,
.sidebar-social-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sidebar-contact-card h4,
.sidebar-hours-card h4,
.sidebar-emergency-card h4,
.sidebar-links-card h4,
.sidebar-social-card h4 {
    color: var(--primary-brown);
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-golden);
    padding-bottom: 8px;
}

.quick-contact-item {
    margin-bottom: 12px;
    padding: 8px 0;
}

.quick-contact-item strong {
    color: var(--primary-brown);
    display: block;
    margin-bottom: 3px;
}

.quick-contact-item a {
    color: var(--accent-golden);
    text-decoration: none;
    font-weight: 500;
}

.quick-contact-item a:hover {
    color: var(--primary-brown);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item .day {
    font-weight: 600;
    color: var(--primary-brown);
}

.hours-item .time {
    color: var(--accent-golden);
    font-weight: 500;
}

.quick-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links-list li {
    margin-bottom: 8px;
}

.quick-links-list a {
    color: var(--primary-brown);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.quick-links-list a:hover {
    color: var(--accent-golden);
    padding-left: 5px;
}

.quick-links-list i {
    margin-right: 8px;
    font-size: 12px;
    color: var(--accent-golden);
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
}

.social-link.facebook { background: #3b5998; }
.social-link.twitter { background: #1da1f2; }
.social-link.linkedin { background: #0077b5; }
.social-link.instagram { background: #e4405f; }

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Form Styling - Vertical Layout */
.contact-form-wrapper {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Add gap between form and sidebar on larger screens */
@media (min-width: 992px) {
    .contact-form-wrapper {
        margin-right: 30px;
        margin-bottom: 0;
    }
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-group label {
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 8px;
    display: block;
}

.contact-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 16px;
}

.contact-form .form-control:focus {
    border-color: var(--accent-golden);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    outline: none;
}

/* Make all form fields full width vertical */
.contact-form .row .col-md-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

/* Override Bootstrap column styling for vertical layout */
.contact-form .row {
    margin: 0;
}

.contact-form .row > [class*="col-"] {
    padding: 0;
}

.urgency-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.urgency-option {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.urgency-option input[type="radio"] {
    display: none;
}

.urgency-label {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    transition: all 0.3s ease;
    font-size: 14px;
}

.urgency-label i {
    margin-right: 8px;
}

.urgency-option input[type="radio"]:checked + .urgency-label {
    border-color: var(--accent-golden);
    background: var(--accent-golden);
    color: var(--primary-brown);
}

/* Contact Page Button Styling - Match Homepage Colors */
.contact-form-wrapper .btn-primary,
.contact-sidebar .btn-primary,
.enhanced-map-overlay .btn-primary {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #2d231b !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.contact-form-wrapper .btn-primary:hover,
.contact-sidebar .btn-primary:hover,
.enhanced-map-overlay .btn-primary:hover {
    background: #2d231b !important;
    border-color: #2d231b !important;
    color: #ffc107 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(45, 35, 27, 0.3) !important;
}

.contact-sidebar .btn-outline-primary {
    border-color: #ffc107 !important;
    color: #ffc107 !important;
    background: transparent !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
}

.contact-sidebar .btn-outline-primary:hover {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #2d231b !important;
}

/* Google Map Section - Same as Homepage */
.map-section {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background: var(--bg-light);
}

.map-container {
    position: relative;
    height: 500px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.google-map {
    width: 100%;
    height: 100%;
    filter: grayscale(20%) contrast(1.2);
    transition: all 0.3s ease;
}

.google-map:hover {
    filter: grayscale(0%) contrast(1);
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 35, 27, 0.9) 0%, rgba(93, 64, 55, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 40px 0;
}

.map-section:hover .map-overlay {
    opacity: 1;
    visibility: visible;
}

.map-info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    transform: translateX(-30px);
    transition: all 0.4s ease;
    border: 3px solid var(--accent-golden);
}

.map-section:hover .map-info-card {
    transform: translateX(0);
}

.map-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
}

.map-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--accent-golden) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 193, 7, 0);
    }
}

.map-text h3 {
    color: var(--primary-brown);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.map-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.map-details {
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.detail-item .icon-symbol {
    color: var(--accent-golden);
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.map-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Map Animation Effects */
.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    z-index: 15;
    animation: mapShine 3s ease-in-out infinite;
}

@keyframes mapShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .map-container {
        max-width: 95%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .enhanced-map-section {
        padding: 60px 0;
    }
    
    .map-container-wrapper {
        margin: 0 15px;
        border-radius: 15px;
    }
    
    .enhanced-map-container {
        height: 400px;
        border-radius: 15px;
    }
    
    .enhanced-map-overlay {
        position: static;
        margin-top: 20px;
        max-width: 100%;
    }
    
    .enhanced-map-overlay .map-info-card {
        margin: 0 15px;
        padding: 20px;
    }
    
    .map-actions {
        flex-direction: column;
    }
    
    .map-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-sidebar {
        position: relative;
        top: auto;
        margin-top: 30px;
    }
    
    .urgency-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .contact-hero-content .page-subtitle {
        font-size: 1.1rem;
    }
    
    /* Ensure form fields are full width on mobile */
    .contact-form .row .col-md-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin-bottom: 15px;
    }
    
    /* Map specific responsive styles */
    .map-section {
        padding: 40px 0;
    }
    
    .map-container {
        height: 400px;
        max-width: 100%;
        border-radius: 10px;
    }
    
    .map-overlay {
        padding: 20px 0;
        justify-content: center;
        background: rgba(45, 35, 27, 0.95);
    }
    
    .map-info-card {
        max-width: 320px;
        padding: 25px;
        transform: translateY(20px);
    }
    
    .map-section:hover .map-info-card {
        transform: translateY(0);
    }
    
    .map-info-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .map-text h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .map-section {
        padding: 30px 0;
    }
    
    .map-container {
        height: 350px;
        border-radius: 8px;
    }
    
    .map-info-card {
        padding: 20px;
        border-radius: 8px;
    }
}

/* Font Awesome Icon Loading Fix */
.fas, .far, .fab, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fab {
    font-weight: 400;
}

/* Ensure icons are visible */
.sidebar-contact-card h4 i,
.sidebar-hours-card h4 i,
.sidebar-emergency-card h4 i,
.sidebar-links-card h4 i,
.sidebar-social-card h4 i,
.quick-links-list i,
.enhanced-map-overlay i,
.urgency-label i {
    font-size: 16px;
    margin-right: 8px;
    color: var(--accent-golden);
    opacity: 1;
    visibility: visible;
}

/* Icon color fixes */
.enhanced-map-overlay h3 i {
    color: var(--accent-golden);
}

.social-link i {
    font-size: 16px;
    color: white;
}
