/* _assets/css/contact.css */

@import url('./home.css'); /* Import TravelGo theme variables */

.contact-section {
    padding: 60px 20px; /* Consistent padding with other sections */
    background-color: var(--off-white-bg); /* Use theme background */
    color: var(--dark-text);
    text-align: center;
}

.contact-container {
    max-width: 900px; /* Container for form + info */
    margin: 0 auto; /* Center the container */
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--box-shadow-light); /* Use theme shadow */
    display: flex;
    flex-wrap: wrap; /* Allows form and info to stack on smaller screens */
    justify-content: space-between; /* Space out form and info */
    align-items: stretch; /* Make columns equal height */
}

/* Use section title styles */
.contact-section .section-title {
    margin-bottom: 20px; /* Adjust margin */
    width: 100%; /* Ensure title takes full width */
}

.contact-section .section-subtitle {
    margin-bottom: 40px; /* Adjust margin */
    width: 100%; /* Ensure paragraph takes full width */
}

.contact-form-area {
    flex: 1.5; /* Take more space for the form */
    padding-right: 30px; /* Increase space between form and info */
    box-sizing: border-box; /* Include padding in width calculation */
    text-align: left; /* Align form text to left */
}

.contact-info {
    flex: 1; /* Take remaining space for contact info */
    padding-left: 30px; /* Increase space between form and info */
    box-sizing: border-box;
    text-align: left; /* Align info text to left */
    border-left: 1px solid var(--border-color); /* Add a subtle separator */
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack items vertically */
}

.contact-info h3, .contact-form-area h3 /* Add title for form area if needed */ {
    color: var(--dark-text); /* Use theme dark text */
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: 600;
    flex-shrink: 0; /* Prevent heading from shrinking */
}

/* Reuse form styles from home.css where possible or adapt */
.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group {
    margin-bottom: 25px; /* Consistent margin */
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500; /* Match auth.css */
    color: var(--dark-text);
    font-size: 0.95em;
}

.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"],
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px 15px; /* Match auth.css */
    border: 1px solid var(--border-color);
    border-radius: 5px; /* Match auth.css */
    font-size: 1em;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Add transition */
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(41, 161, 228, 0.2); /* Match auth.css focus */
}


.contact-form .form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px; /* Set a minimum height */
}

.contact-info p {
    margin-bottom: 18px; /* Slightly more space */
    line-height: 1.6;
    display: flex; /* For icon alignment */
    align-items: flex-start; /* Align icon top with first line */
    color: var(--light-text); /* Use light text for info */
    flex-shrink: 0; /* Prevent paragraphs from shrinking */
}

.contact-info p strong {
    color: var(--dark-text); /* Make parts like 'Adresse:' darker */
    margin-right: 5px;
    flex-shrink: 0;
}

.contact-info p span { /* Wrap the text part for better control if needed */
    display: inline-block;
}

.contact-info i.fas { /* Target FontAwesome icons specifically */
    margin-right: 12px; /* More space for icon */
    color: var(--primary-blue); /* Use theme blue for icons */
    width: 20px; /* Fixed width */
    text-align: center;
    font-size: 1.1em;
    margin-top: 3px; /* Align icon slightly lower */
    flex-shrink: 0;
}

.social-media-links {
    margin-top: 15px; /* Adjust margin */
    margin-bottom: 30px; /* Add space before map */
    flex-shrink: 0; /* Prevent shrinking */
}

.social-media-links a {
    display: inline-flex; /* Use inline-flex to control size and alignment */
    justify-content: center; /* Center icon horizontally */
    align-items: center; /* Center icon vertically */
    width: 40px; /* Fixed width for square icon box */
    height: 40px; /* Fixed height for square icon box */
    margin-right: 10px;
    border-radius: 50%;
    background-color: var(--off-white-bg); /* Lighter background */
    color: var(--primary-blue); /* Use theme blue */
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid var(--border-color); /* Add subtle border */
}

.social-media-links a:hover {
    background-color: var(--primary-blue); /* Theme blue background on hover */
    color: var(--white); /* White icon on hover */
    border-color: var(--primary-blue);
}

/* Update button style to match home.css/auth.css */
.contact-form .btn-primary {
    background-color: var(--primary-blue); /* Use theme blue */
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 25px; /* More rounded buttons like auth */
    cursor: pointer;
    font-size: 1.1em; /* Slightly larger */
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: auto; /* Allow button to size naturally */
    align-self: flex-start; /* Align button to the left */
}

.contact-form .btn-primary:hover {
    background-color: var(--secondary-blue); /* Lighter blue on hover */
}

/* Map Container Styles (adjusted for inside contact-info) */
.map-container {
    margin-top: auto; /* Pushes map to the bottom */
    width: 100%; /* Take full width of parent (.contact-info) */
    flex-grow: 1; /* Allow map container to take remaining space */
    display: flex; /* Use flex to make iframe fill height */
}

.map-container iframe {
    border: 0;
    width: 100%;
    height: 100%; /* Fill the container height */
    min-height: 250px; /* Ensure a minimum map height */
    border-radius: 8px; /* Optional: match container radius */
    box-shadow: var(--box-shadow-light); /* Optional: add shadow */
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Stack form and info vertically */
        padding: 30px;
        align-items: center; /* Center items when stacked */
    }
    .contact-form-area, .contact-info {
        flex: 1; /* Each section takes full width */
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 30px; /* Add space between form and info when stacked */
        text-align: center; /* Center align text for smaller screens */
        border-left: none; /* Remove border on small screens */
        width: 100%; /* Ensure full width */
        max-width: 500px; /* Limit width for better readability */
    }
    .contact-info {
        margin-bottom: 0; /* Remove bottom margin for the last section */
    }
     .contact-form .form-group label {
        text-align: left; /* Keep labels left-aligned */
    }
    .contact-form .btn-primary {
         align-self: center; /* Center button */
    }
    .contact-info p {
        justify-content: center; /* Center info items */
        text-align: left; /* Keep text left aligned within centered p */
        align-items: center; /* Better vertical alignment */
    }
    .social-media-links {
        justify-content: center; /* Center social links on smaller screens */
        margin-bottom: 20px; /* Reduce margin */
    }
    .map-container {
        margin-top: 20px; /* Add some space when stacked */
        height: 300px; /* Fixed height on mobile */
        flex-grow: 0; /* Don't grow on mobile */
    }
    .map-container iframe {
       height: 300px; /* Fixed height */
    }
}