/* Contact page custom styles to match the image */

/* Color variables */
:root {
    --primary-gold: #F0AD4E;
    --hover-gold: #ec971f;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
}

/* Overall container */
.contact-container {
    padding: 3rem 0;
    position: relative;
    min-height: 100vh;
    
}

/* Dark overlay to ensure content is readable against background image */
.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Section titles */
.section-title-gold {
    color: #E7CB98;
    font-weight: 900;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add shadow for better readability */
}

/* Section titles */
.section-title-gold2 {
    color: #E7CB98;
    font-weight: 900;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add shadow for better readability */
}

/* Location Maps Styling - Based on the provided image */
.location-maps-container {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); /* Enhanced shadow for better visibility */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Media query for desktop layout */
@media (min-width: 768px) {
    .location-maps-container {
        flex-direction: row;
        height: 430px; /* Adjusted height to match contact form height */
    }
    
    .location-list {
        width: 40%; /* Wider location list to match image */
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
    }
    
    .location-map-main {
        width: 60%; /* Narrower map to match image */
        border-radius: 0 8px 8px 0;
        border-left: none;
    }
    
    .location-item {
        flex: 1;
        display: flex;
        align-items: center;
        padding: 18px 25px; /* Increased padding to better match image */
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        position: relative;
        background: #FFFFFF;
    }
    
    .location-item:last-child {
        border-bottom: none;
    }
}

.location-map-main {
    background-color: #ffffff; /* Changed to white to remove red background */
    height: 100%;
    overflow: hidden;
}


.map-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .map-container {
        height: 100%; /* Full height since there's no header anymore */
        border-radius: 0 8px 8px 0; /* Round corners on right side */
    }
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-list {
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

.location-item {
    padding: 10px 20px;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.location-item:last-child {
    border-bottom: none;
}

.location-item:hover {
    background-color: #f9f9f9;
}

.location-item.active-location {
    background-color: #f5f5f5;
    position: relative;
}

/* Different active indicators for mobile and desktop */
.location-item.active-location::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #751116; /* Gunawangsa red */
}

@media (min-width: 768px) {
    .location-item.active-location {
        background-color: #f5f5f5; /* Light gray background */
    }
    
    .location-item.active-location::before {
        content: '';
        position: absolute;
        left: auto;
        right: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
        background-color: #BD1921;
    }
}

.location-item h4 {
    margin: 0;
    color: #E3A534; /* Gold color */
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
}

@media (min-width: 768px) {
    .location-item h4 {
        font-size: 16px;
        font-weight: 600;
        padding: 5px 0;
        color: #E1A24E; /* More accurate gold color from the image */
    }
}

.contact-map-container:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Form container */
.contact-form-container {
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    padding: 1.75rem;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); /* Enhanced shadow for depth */
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* Ensure padding is included in the height */
    overflow: hidden; /* Prevent content from spilling out */
}

/* When inside a flex container, make form take full height */
@media (min-width: 768px) {
    .contact-form-container {
        height: 430px; /* Match the height of location-maps-container */
    }
}

/* Style the form to fill the container */
.contact-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Ensure the buttons stay at the bottom */
.contact-form-buttons {
    margin-top: auto;
    padding-bottom: 0; /* Ensure no extra padding pushes content out */
}

/* Custom styling for form elements to match the design */
.contact-input {
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent inputs */
}

.contact-input:focus {
    border-color: var(--primary-gold);
    outline: none;
    box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.1);
}

.contact-input::placeholder {
    color: #999;
    opacity: 1;
}

/* Message textarea */
.contact-textarea {
    min-height: 100px;
    max-height: 150px; /* Limit maximum height to prevent overflow */
    resize: none; /* Disable resize to prevent breaking layout */
    height: 100%; /* Take up available height */
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .contact-textarea {
        min-height: 120px;
        max-height: 150px;
    }
}

/* Custom send button styling to match the image */
.send-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--primary-gold);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
    margin-bottom: 0; /* Ensure no bottom margin pushes it out of container */
}

.send-button:hover {
    background-color: var(--hover-gold);
}

.send-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.send-button:hover:before {
    left: 100%;
}



