/* Contact Page Specific Styles */

/* Contact Hero */
.contact-hero {
    padding: 140px 0 80px;
    text-align: center;
    color: var(--ivory);
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(68, 70, 142, 0.2), var(--noir));
}

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

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.contact-hero p {
    font-family: var(--accent-font);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Decorative icons */
.decorative-icon {
    position: absolute;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.decorative-icon:hover {
    opacity: 0.3;
}

.decorative-icon img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
}

/* Icon positions */
.c-icon-1 { top: 15%; left: 8%; width: 35px; }
.c-icon-2 { top: 20%; right: 12%; width: 40px; }
.c-icon-3 { bottom: 25%; left: 15%; width: 28px; }
.c-icon-4 { bottom: 20%; right: 18%; width: 32px; }

/* Contact Content */
.contact-content {
    padding: 80px 0;
    background-color: var(--noir);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Form and Info Container */
.contact-form-container {
    background-color: rgba(39, 35, 34, 0.5);
    border-radius: var(--card-radius);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold);
    font-family: var(--heading-font);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(39, 35, 34, 0.8);
    border: 1px solid var(--mushroom);
    border-radius: 4px;
    color: var(--ivory);
    font-family: var(--body-font);
    font-size: 16px; /* Prevents iOS zoom on focus */
    -webkit-appearance: none; /* Removes default styling on iOS */
    border-radius: 4px; /* Consistent appearance on all devices */
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-form button {
    width: 100%; /* Full width button on mobile */
    margin-top: 1rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-checkbox label {
    margin-bottom: 0;
}

/* Contact Info Container */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    order: -1; /* Move entire info container to top */
}

.contact-info {
    background-color: rgba(39, 35, 34, 0.5);
    border-radius: var(--card-radius);
    padding: 2rem 2rem 1.5rem; /* Reduced bottom padding */
    margin-bottom: 0; /* Remove margin completely */
}

/* Map now part of contact info section */
.contact-map-container {
    margin-top: 0; /* Remove margin completely */
    background-color: rgba(39, 35, 34, 0.5);
    border-radius: 50%; /* Changed to circle */
    padding: 0.75rem; /* Reduced padding */
    overflow: hidden;
    aspect-ratio: 1/1; /* Changed from 16/9 to 1/1 for square shape */
    width: 250px; /* Fixed width */
    height: 250px; /* Fixed height */
    margin: 0 auto; /* Center the circle */
}

.contact-info h2.section-title {
    margin-bottom: 1.5rem;
}

.info-section {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.info-section:last-child {
    margin-bottom: 0; /* Remove margin from last info section */
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    background-color: rgba(68, 70, 142, 0.1);
    border-radius: 50%;
    padding: 8px;
}

.info-icon img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(0.8) sepia(0.5) saturate(10) hue-rotate(350deg);
}

.info-content h3 {
    color: var(--gold);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.info-content p {
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: rgba(68, 70, 142, 0.05);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.faq-item {
    background-color: rgba(39, 35, 34, 0.5);
    border-radius: var(--card-radius);
    padding: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
}

.faq-item h3 {
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.25rem;
}

.faq-item h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
}

.faq-item p {
    line-height: 1.6;
}

/* Map Styles */
#sepia-map {
    height: 100%;
    width: 100%;
    border-radius: 50%; /* Make map content circular too */
}

/* Custom Leaflet Overrides */
.leaflet-container {
    background: rgba(39, 35, 34, 0.8) !important;
    border-radius: 50% !important; /* Force circular container */
}

.leaflet-tile-pane {
    filter: sepia(0.8) contrast(1.1) saturate(0.8);
}

/* Updated map markers to match site theme */
.custom-map-marker {
    background: none;
    border: none;
}

.custom-map-marker img {
    width: 32px;
    height: 32px;
    filter: brightness(0.3) sepia(0.3) saturate(0.8); /* Adjusted for earthy dark tone */
}

.decorative-map-element {
    background: none;
    border: none;
    opacity: 0.4; /* Slightly less opaque */
}

.decorative-map-element img {
    width: 24px;
    height: 24px;
    filter: brightness(0.3) sepia(0.3) saturate(0.8); /* Match main marker color */
}

/* Hide Leaflet Attribution */
.leaflet-control-attribution {
    display: none !important;
}

/* Media queries for responsive design */
@media screen and (min-width: 576px) {
    .contact-map-container {
        width: 300px;
        height: 300px;
    }
}

@media screen and (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .contact-form button {
        width: auto; /* Auto width on larger screens */
    }
    
    .contact-map-container {
        width: 350px;
        height: 350px;
    }
    
    .faq-item h3 {
        font-size: 1.2rem;
    }
}

@media screen and (min-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
        gap: 3rem;
    }
    
    .contact-info-container {
        position: sticky;
        top: 100px;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 2.5rem;
    }

    .contact-info {
        padding: 2.5rem 2.5rem 2rem; /* Reduced bottom padding on desktop */
    }
    
    .contact-map-container {
        margin-top: 0; /* Keep consistent no margin */
        padding: 1rem; /* Slightly more padding on desktop */
        width: 400px; /* Larger on desktop */
        height: 400px; /* Fixed height for desktop */
        aspect-ratio: auto; /* Remove aspect ratio on desktop for fixed height */
    }
}

@media screen and (min-width: 1200px) {
    .contact-form-container,
    .contact-info {
        padding: 2.5rem;
    }
}
