/* ======================================================
   START CONTACT STYLE (Fixed for ThemeForest)
====================================================== */

/* --- Hero Section --- */
.contact-hero {
    position: relative;
    height: 60vh;
    min-height: 400px; /* Ensure minimum visibility on mobile */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* FIXED: Use variables for theme compatibility, fallback ensures it works now */
    filter: brightness(0.4); /* Slightly darker for better text contrast */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1; /* Ensure content is above the background filter */
    /* FIXED: Use variables for text color */
    color: var(--color-white, #ffffff);
    animation: fadeIn 1s ease;
    padding: 0 20px;
}

/* --- Map Section --- */
.contact-info-map {
    padding: clamp(60px, 5vw, 100px) 0;
}

.contact-map {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Layout Grid --- */
.contact-grid {
    display: grid;
    /* FIXED: Responsive grid. Stack on mobile, side-by-side on desktop */
    grid-template-columns: 1fr;
    gap: clamp(40px, 5vw, 60px);
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* FIXED: Scoped generic .info-list to avoid global conflict */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Generic map helper - Scoped to prevent collision */
.map {
    height: 350px;
    border-radius: var(--radius-md, 10px);
    background-color: var(--color-surface, #f4f4f4);
}

/* --- Contact Form Section --- */
.contact-form-section {
    padding: clamp(60px, 5vw, 80px) 0;
    background-color: var(--color-bg, #ffffff);
}

.form-wrapper {
    max-width: 600px;
    margin: auto;
    text-align: center;
}

/* FIXED: Scoped inputs to .form-wrapper to avoid affecting other plugins (WooCommerce, Search) */
.form-wrapper input,
.form-wrapper textarea {
    width: 100%;
    /* FIXED: Added min-height for Mobile Touch Accessibility (WCAG) */
    min-height: 50px;
    padding: 14px;
    margin-bottom: 18px;
    /* FIXED: Use variable for border color */
    border: 1px solid var(--color-border, #ddd);
    border-radius: var(--radius-sm, 6px);
    background-color: var(--color-surface, #fff);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-wrapper textarea {
    min-height: 150px; /* Taller for message body */
    resize: vertical;
}

/* FIXED: Added Focus State for Accessibility */
.form-wrapper input:focus,
.form-wrapper textarea:focus {
    outline: none;
    border-color: var(--color-accent, #b38a54);
    box-shadow: 0 0 0 3px rgba(179, 138, 84, 0.2);
}

.btn-submit {
    display: inline-block;
    padding: 14px 28px;
    /* FIXED: Use variable for primary color */
    background-color: var(--color-text, #000000);
    color: var(--color-white, #ffffff);
    border: none;
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    /* FIXED: Use variable for accent color */
    background-color: var(--color-accent, #b38a54);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-submit:focus-visible {
    outline: 3px solid var(--color-text);
    outline-offset: 2px;
}

/* Animation Helper */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   END CONTACT STYLE
====================================================== */