/* Contact-Specific Styles */

/* Hero Container */
.contact-hero-container {
    width: 100%;
    height: 100vh;
    background-image: url(images/Contact-hero-image.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.contact-hero-content {
    font-size: 2rem;
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 17%;
    margin-left: auto;
}

.contact-hero-content h2 {
    color: #CD9D49;
    font-size: 2rem;
}

.contact-hero-content h1 {
    line-height: 1em;
    color: #1E305E;
    text-align: center;
}

/* Visit the Firm Section */
.visit-the-firm {
    width: 100%;
    padding: 2em 5%;
    background-color: white;
}

.visit-the-firm-top {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
}

.visit-the-firm-top h4 {
    color: #0F2339;
    font-size: 1.5rem;
    margin-bottom: 1em;
    text-align: center;
}

.location-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    align-items: start;
}

.location-map {
    width: 100%;
}

.location-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    allowfullscreen: "";
    loading: "lazy";
}

.contact-details {
    padding-left: 1em;
}

.contact-details h5 {
    color: #0F2339;
    font-size: 1.2rem;
    line-height: 1.5em;
    margin-top: 0;
    text-align: center;
}

.contact-footer-link {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #1E305E;
    line-height: 2em;
    font-weight: 700;
    padding-top: 1em;
}

.call-us, .email-us {
    display: block;
    color: #1E305E;
    text-decoration: none;
    transition: font-size 0.3s ease;
}

.call-us:hover, .email-us:hover {
    font-size: 1.1em;
}

.contact-social-media-links {
    width: 25%;
    margin: 1.5em auto;
    display: flex;
    justify-content: space-around;
    font-size: 1.5em;
}

.contact-social-media-links a {
    color: #1E305E;
    transition: color 0.3s ease, font-size 0.3s ease;
}

.contact-social-media-links a:hover {
    color: #CD9D49;
    font-size: 1.2em;
}

/* Quick Booking Form */
.the-firm-quick-booking {
    width: 100%;
    padding: 2em 5%;
    background-color: white;
    text-align: center;
}

.the-firm-quick-booking-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-booking h5 {
    font-size: 1.5rem;
    color: #0F2339;
}

.quick-booking h4 {
    font-size: 3rem;
    color: #0F2339;
}

.quick-booking hr {
    background-color: #0F2339;
    border: 0;
    width: 15%;
    height: 7px;
    margin: 0.1em auto 1em;
}

.fcf-form-class {
    width: 50%;
    margin-top: 1em;
}

.fcf-input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    margin-bottom: 1em;
}

.fcf-form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2em;
    color: white;
    background-color: #1E305E;
    background-clip: padding-box;
    border: 2px solid #CD9D49;
    outline: none;
    border-radius: 2rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.fcf-form-control:focus {
    border: 2px solid white;
    background-color: black;
}

textarea.fcf-form-control {
    height: auto;
}

label.fcf-label {
    display: inline-block;
    margin-bottom: 0.2rem;
    font-weight: 700;
    color: #1E305E;
}

.fcf-btn {
    display: inline-block;
    font-weight: 400;
    color: #1E305E;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 2px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.fcf-btn:hover {
    color: #1E305E;
    text-decoration: none;
}

.fcf-btn-primary {
    color: white;
    background-color: #1E305E;
    border-color: white;
}

.fcf-btn-primary:hover {
    color: #1E305E;
    background-color: white;
    border-color: #1E305E;
}

.fcf-btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 2rem;
}

.fcf-btn-block {
    display: block;
    width: 50%;
    margin: 1em auto;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-content h4 {
    color: #1E305E;
    margin-bottom: 10px;
}

.popup-content p {
    color: #1E305E;
    margin-bottom: 20px;
}

#close-popup {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #1E305E;
    color: white;
    cursor: pointer;
}

#close-popup:hover {
    background-color: #CD9D49;
    color: #1E305E;
}

/* Responsive Design */
@media (min-width: 320px) and (max-width: 768px) {
    .contact-hero-container {
        width: 100%;
        height: 100vh;
        background-image: url(images/Contact-hero-image_002.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-color: white;
    }

    .contact-hero-content {
        width: 100%;
        padding-left: 0;
        padding-top: 1em;
        line-height: 1.5em;
    }

    .location-contact-wrapper {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 1em;
    }

    .location-map iframe {
        height: 250px;
    }

    .contact-details {
        padding-left: 0;
    }

    .contact-footer-link {
        line-height: 1.5em;
    }

    .contact-social-media-links {
        width: 50%;
    }

    .the-firm-quick-booking {
        padding: 1em 5%;
    }

    .fcf-form-class {
        width: 100%;
    }

    .fcf-btn-block {
        width: 80%;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .contact-hero-container {
        background-image: url(images/Contact-hero-image_004.png);
    }

    .contact-hero-content {
        width: 100%;
        padding-left: 0;
        padding-top: 0;
    }

    .location-contact-wrapper {
        gap: 1.5em;
    }

    .location-map iframe {
        height: 300px;
    }

    .fcf-form-class {
        width: 60%;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .location-contact-wrapper {
        gap: 2em;
    }

    .location-map iframe {
        height: 300px;
    }

    .fcf-form-class {
        width: 50%;
    }
}

@media (min-width: 1201px) {
    .location-map iframe {
        height: 300px;
    }
}