/**
 * Get In Touch Section Block Styles
 *
 * Full-width section with a background image. A white text column (title,
 * subtitle, description, email and phone) sits beside a white form card that
 * renders a contact form supplied as a shortcode.
 *
 * Reference design: child-theme-sections-screenshots/get-intouch-section.png
 *
 * @package ACF Child Theme
 */

:root {
    --color-grey: #f3f3f3;
    --color-navy: #0d1e3b;
    --color-teal: #17abc1;
    --color-text: #252525;
    --color-blue: #004e95;
    --color-white: #ffffff;
    --font-primary: 'Montserrat', sans-serif;
}

/* Section wrapper - full-width background image
   ========================================================================== */
.get-intouch-section {
    width: 100%;
    margin: 0;
    padding: 70px 0;
    /* Brand gradient base with the (optional) image layered on top.
       The first layer is painted on top, so the image overlays the gradient. */
    background-color: var(--color-blue, #004e95);
    background-image: var(--intouch-bg-image, none), linear-gradient(to left, var(--color-blue, #004e95) 50%, var(--color-teal, #17abc1));
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
}

.get-intouch-section__container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

/* Two-column grid: content | form card
   ========================================================================== */
.get-intouch-section__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
}

/* Content column (white text over the image)
   ========================================================================== */
.get-intouch-section__content {
    color: var(--color-white, #ffffff);
}

.get-intouch-section__title {
    /* Constrained width so the heading wraps to two short lines (per design). */
    max-width: 360px;
    margin: 0 0 18px 0;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white, #ffffff);
}

.get-intouch-section__subtitle {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-white, #ffffff);
}

.get-intouch-section__description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-white, #ffffff);
}

.get-intouch-section__description p {
    margin: 0 0 14px 0;
}

.get-intouch-section__description p:last-child {
    margin-bottom: 0;
}

/* Contact details
   ========================================================================== */
.get-intouch-section__contact {
    list-style: none;
    margin: 28px 0 0 0;
    padding: 0;
}

.get-intouch-section__contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.get-intouch-section__contact-item:last-child {
    margin-bottom: 0;
}

.get-intouch-section__contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--color-white, #ffffff);
}

.get-intouch-section__contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.get-intouch-section__contact-link {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-white, #ffffff);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.get-intouch-section__contact-link:hover,
.get-intouch-section__contact-link:focus-visible {
    opacity: 0.8;
    outline: none;
}

/* Form card
   ========================================================================== */
.get-intouch-section__form-card {
    background-color: var(--color-white, #ffffff);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(13, 30, 59, 0.18);
    padding: 36px;
}

/* Light, defensive styling so common contact-form plugins match the design.
   ========================================================================== */
.get-intouch-section__form-card p {
    margin: 0 0 16px 0;
}

.get-intouch-section__form-card input[type="text"],
.get-intouch-section__form-card input[type="email"],
.get-intouch-section__form-card input[type="tel"],
.get-intouch-section__form-card input[type="url"],
.get-intouch-section__form-card input[type="number"],
.get-intouch-section__form-card textarea,
.get-intouch-section__form-card select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--color-text, #252525);
    background-color: var(--color-white, #ffffff);
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.get-intouch-section__form-card input:focus,
.get-intouch-section__form-card textarea:focus,
.get-intouch-section__form-card select:focus {
    border-color: var(--color-teal, #17abc1);
    outline: none;
}

.get-intouch-section__form-card textarea {
    min-height: 120px;
    resize: vertical;
}

.get-intouch-section__form-card input[type="submit"],
.get-intouch-section__form-card button[type="submit"] {
    display: inline-block;
    padding: 12px 34px;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1;
    color: var(--color-white, #ffffff);
    background: linear-gradient(to right, var(--color-teal, #17abc1), var(--color-blue, #004e95));
    border: none;
    border-radius: 10px !important;
    cursor: pointer;
    transition: opacity 0.3s ease;
    width: auto;
}

.get-intouch-section__form-card input[type="submit"]:hover,
.get-intouch-section__form-card button[type="submit"]:hover,
.get-intouch-section__form-card input[type="submit"]:focus-visible,
.get-intouch-section__form-card button[type="submit"]:focus-visible {
    background-color: var(--color-navy, #0d1e3b) !important;
    background: var(--color-navy, #0d1e3b) !important;
    outline: none;
}

/* Responsive - Tablet
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
    .get-intouch-section {
        padding: 60px 0;
    }

    .get-intouch-section__grid {
        gap: 36px;
    }

    .get-intouch-section__title {
        font-size: 34px;
    }
}

/* Responsive - Mobile (stack: content above form)
   ========================================================================== */
@media (max-width: 768px) {
    .get-intouch-section {
        padding: 45px 0;
    }

    .get-intouch-section__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .get-intouch-section__title {
        max-width: none;
        font-size: 30px;
    }

    .get-intouch-section__subtitle {
        font-size: 19px;
    }

    .get-intouch-section__form-card {
        padding: 26px;
    }
}
