/* Contact Page Styles */

/* Hero Section Styles (as previously added) */
.contact-hero-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
    padding: 80px;
    margin-top: 80px;
    gap: 10px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    text-align: left; /* Align text to the left */
}

.contact-hero-section h1 {
    font-size: 72px;
    font-weight: 600;
    line-height: 1.25em;
    letter-spacing: -2%;
    color: #181B18;
    margin: 0;
}

.contact-hero-section p {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2666666666666666em;
    color: #2E332E;
    margin: 0;
}

/* Media Queries for contact-hero-section (as previously added) */
@media (max-width: 1280px) {
    .contact-hero-section {
        padding: 40px;
        margin-top: 50px;
    }

    .contact-hero-section h1 {
        font-size: 56px;
    }

    .contact-hero-section p {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .contact-hero-section {
        padding: 20px;
        margin-top: 30px;
    }

    .contact-hero-section h1 {
        font-size: 40px;
    }

    .contact-hero-section p {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .contact-hero-section {
        padding: 15px;
        margin-top: 20px;
    }

    .contact-hero-section h1 {
        font-size: 32px;
    }

    .contact-hero-section p {
        font-size: 18px;
    }
}

/* Contact Content Wrapper */
.contact-content-wrapper {
    display: flex;
    justify-content: center; /* Center the content wrapper itself */
    padding: 80px;
    padding-top: 0;
    margin: 0 auto 80px auto; /* Center the wrapper and add bottom margin */
    max-width: 1440px;
    box-sizing: border-box;
    gap: 80px; /* Space between form and map */
    flex-direction: row; /* Default to horizontal for desktop */
    align-items: flex-start; /* Align items to the top for desktop */
    justify-content: space-between; /* Space out form and map for desktop */
}

/* Contact Form Section Styles */
.contact-form-section {
    display: block;
    padding: 0;
    margin: 0;
    max-width: 500px; /* Specific width for the form */
    width: 100%;
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack children vertically */
    gap: 20px; /* Gap between header and form */
}

.request-demo-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
    gap: 10px; /* Space between icon and title */
}

.request-demo-icon {
    width: 20px; /* Icon size as per laptop.svg viewBox */
    height: 20px; /* Icon size as per laptop.svg viewBox */
}

.request-demo-header h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5555555555555556em;
    color: #2E332E;
    margin: 0;
}

/* Adjust .contact-form to fit new header */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px; /* Limit form width for better readability */
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #3F473E;
}

.form-field .required {
    margin-left: 4px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
    padding: 12px;
    border: 1px solid #9FAA9E;
    border-radius: 8px;
    font-size: 16px;
    color: #2E332E;
    line-height: 1.5em;
    font-family: 'DM Sans', sans-serif;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #606D5F;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-primary {
    align-self: flex-start;
    margin-top: 10px;
}

/* Map/Location Section Styles */
.contact-map-section {
    display: block;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 500px; /* Specific width for the map */
    margin-top: -150px;
    margin-right: -100px;
}

.mobile-contact {
    width: 100%;
    height: 750px;
    object-fit: cover;
    border-radius: 20px;
    max-width: 600px;
}

/* Consolidated Media Queries for contact-content-wrapper and its children */
@media (max-width: 1280px) {
    .contact-content-wrapper {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items when stacked */
        padding: 40px;
        gap: 40px;
    }
    .contact-form-section {
        max-width: 100%; /* Allow full width when stacked */
        padding: 40px;
    }
    .contact-map-section {
        max-width: 100%;
        margin: 0
    }
    .mobile-contact {
        height: 750px; /* Adjust height for tablet, proportionally from 750px */
    }
}

@media (max-width: 768px) {
    .contact-content-wrapper {
        padding: 20px;
        gap: 30px;
    }
    .contact-form-section {
        padding: 20px;
    }
    .mobile-contact {
        max-width: 100%;
        height: auto;
    }
    .contact-form {
        max-width: 100%; /* Allow form to take full width on smaller screens */
    }
    .form-field label,
    .form-field input,
    .form-field textarea {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contact-content-wrapper {
        padding: 15px;
        gap: 20px;
    }
    .contact-form-section {
        padding: 15px;
    }
    .mobile-contact {
        max-width: 100%;
        height: auto;
    }
}
