/* ==========================================================================
   ANAZ — Get in Touch section ("Get In Touch" Elementor widget)
   Adapted from html/css/get-in-touch.css. Requires assets/css/base.css.

   Class map: .anaz-get-in-touch → .monks-get-in-touch,
   .anaz-get-in-touch-* → .monks-get-in-touch__*, --git-* →
   --monks-get-in-touch-*. Child rules are scoped under the section class so
   Elementor's `.elementor img` reset and kit typography never override the
   design. Elementor style controls use `{{WRAPPER}} …` selectors.

   The form is a Contact Form 7 form. Its controls are styled here, inside
   .monks-get-in-touch__form only, so CF7 forms elsewhere are untouched:
     - any CF7 form gets the ANAZ field, button and message styles, one field
       per row;
     - fields wrapped in .monks-get-in-touch__field (see the form template in
       the widget panel / README) pair up in two columns as in the design;
       add .monks-get-in-touch__field--full for a full-width field.
     - a `<button type="submit" class="wpcf7-submit">` gets the design's
       arrow; a plain [submit] tag gets the same pill without the arrow.

   Layout
     ≥1024px  text + building image (left ~55%) · form card (right ~45%)
     <1024px  stacked: text, image, form card
   Form fields: 2 columns from 600px (1 in the slim 1024–1199 card), 1 on phones.
   Stacking: decorations z0 · content z1.
   ========================================================================== */

.monks-get-in-touch {
    --monks-get-in-touch-navy: #0B2D59;
    --monks-get-in-touch-orange: #FF5A0A;
    --monks-get-in-touch-orange-dark: #E64D02;
    --monks-get-in-touch-body: #586B8B;
    --monks-get-in-touch-white: #FFFFFF;
    --monks-get-in-touch-border: #E4EBF5;
    --monks-get-in-touch-placeholder: #9AA8BC;
    --monks-get-in-touch-error: #C8321E;
    --monks-get-in-touch-success: #1E7A4C;
    --monks-get-in-touch-container: 1500px;
    --monks-get-in-touch-gutter: clamp(20px, 5vw, 96px);
    --monks-get-in-touch-radius-card: 22px;
    --monks-get-in-touch-radius-field: 11px;
    --monks-get-in-touch-shadow-card: 0 24px 60px rgba(11, 45, 89, 0.08);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(56px, 6vw, 96px) 0;
    background:
        radial-gradient(50% 55% at 30% 70%, rgba(226, 237, 250, 0.6) 0%, rgba(226, 237, 250, 0) 70%),
        linear-gradient(180deg, #FBFCFE 0%, #F4F8FD 100%);
    color: var(--monks-get-in-touch-body);
    font-family: var(--anaz-font);
}

.monks-get-in-touch *,
.monks-get-in-touch *::before,
.monks-get-in-touch *::after {
    box-sizing: border-box;
}

/* ---- Decorations ------------------------------------------------------------ */

.monks-get-in-touch .monks-get-in-touch__deco {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* Large pale-blue diagonal behind the columns */
.monks-get-in-touch .monks-get-in-touch__deco--band {
    top: 0;
    left: 36%;
    width: 30%;
    height: 100%;
    background: linear-gradient(180deg, rgba(225, 236, 249, 0.7), rgba(225, 236, 249, 0.15));
    clip-path: polygon(62% 0, 90% 0, 28% 100%, 0 100%);
}

/* Translucent peach wedge near the upper-right edge */
.monks-get-in-touch .monks-get-in-touch__deco--peach {
    top: 0;
    right: 0;
    width: 12%;
    height: 34%;
    background: linear-gradient(200deg, rgba(255, 168, 118, 0.55), rgba(255, 214, 190, 0.3));
    clip-path: polygon(55% 0, 100% 0, 100% 58%, 0 100%);
}

/* Pale-blue accent near the lower-right edge */
.monks-get-in-touch .monks-get-in-touch__deco--blue {
    right: 0;
    bottom: 0;
    width: 9%;
    height: 28%;
    background: linear-gradient(180deg, rgba(220, 233, 248, 0.8), rgba(220, 233, 248, 0.3));
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.monks-get-in-touch .monks-get-in-touch__container {
    position: relative;
    z-index: 1;
    max-width: calc(var(--monks-get-in-touch-container) + 2 * var(--monks-get-in-touch-gutter));
    margin: 0 auto;
    padding: 0 var(--monks-get-in-touch-gutter);
}

.monks-get-in-touch .monks-get-in-touch__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

/* ---- Left content -------------------------------------------------------- */

.monks-get-in-touch .monks-get-in-touch__label {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 20px;
    color: var(--monks-get-in-touch-navy);
    font-size: clamp(13px, 0.95vw, 16px);
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.2;
}

.monks-get-in-touch .monks-get-in-touch__label::before {
    content: "";
    flex: 0 0 auto;
    width: 64px;
    height: 2px;
    background: var(--monks-get-in-touch-orange);
}

.monks-get-in-touch .monks-get-in-touch__heading {
    margin: 0 0 20px;
    color: var(--monks-get-in-touch-navy);
    font-family: inherit;
    font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5.1rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.monks-get-in-touch .monks-get-in-touch__heading-line {
    display: block;
}

.monks-get-in-touch .monks-get-in-touch__heading-line--accent {
    color: var(--monks-get-in-touch-orange);
}

.monks-get-in-touch .monks-get-in-touch__desc {
    max-width: 34em;
    margin: 0 0 32px;
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.6;
}

.monks-get-in-touch .monks-get-in-touch__image {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #D7E2EC, #F2F6FA); /* shown if the image fails */
    box-shadow: 0 22px 48px rgba(11, 45, 89, 0.12);
}

.monks-get-in-touch .monks-get-in-touch__image img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: var(--monks-get-in-touch-img-x, 50%) var(--monks-get-in-touch-img-y, 100%); /* keep the building, crop the sky */
}

/* ---- Form card -------------------------------------------------------------- */

.monks-get-in-touch .monks-get-in-touch__form-card {
    padding: clamp(24px, 3.4vw, 48px);
    border-radius: var(--monks-get-in-touch-radius-card);
    background: var(--monks-get-in-touch-white);
    box-shadow: var(--monks-get-in-touch-shadow-card);
}

.monks-get-in-touch .monks-get-in-touch__form-title {
    margin: 0 0 10px;
    color: var(--monks-get-in-touch-navy);
    font-family: inherit;
    font-size: clamp(24px, 1.9vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.monks-get-in-touch .monks-get-in-touch__form-title::before {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin-bottom: 26px;
    background: var(--monks-get-in-touch-orange);
}

.monks-get-in-touch .monks-get-in-touch__form-intro {
    max-width: 30em;
    margin: 0 0 28px;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.6;
}

/* ---- Contact Form 7 form ----------------------------------------------------
   Field rules start from `.wpcf7-form` (0,4,1) so Elementor kit form styles
   (`.elementor-kit-N input:not(…)`, 0,3,1) never win; state rules repeat the
   same base and come later, so they override it.
   --------------------------------------------------------------------------- */

.monks-get-in-touch .monks-get-in-touch__form .wpcf7,
.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form {
    margin: 0;
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px 18px;
}

/* Anything that is not a paired field spans the whole row */
.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form > .monks-get-in-touch__field {
    grid-column: auto;
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form > .monks-get-in-touch__field--full {
    grid-column: 1 / -1;
}

/* CF7 wraps lines in <p> (its "autop"); they add no spacing of their own */
.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form p {
    margin: 0;
}

.monks-get-in-touch .monks-get-in-touch__form label {
    display: block;
    color: var(--monks-get-in-touch-navy);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.monks-get-in-touch .monks-get-in-touch__form .monks-get-in-touch__req {
    color: var(--monks-get-in-touch-orange);
}

/* Control + its validation tip, 8px below the label text */
.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form :is(input:not([type="submit"], [type="button"], [type="checkbox"], [type="radio"], [type="file"], [type="hidden"], [type="range"]), select, textarea) {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 50px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--monks-get-in-touch-border);
    border-radius: var(--monks-get-in-touch-radius-field);
    background-color: var(--monks-get-in-touch-field-bg, var(--monks-get-in-touch-white));
    box-shadow: none;
    color: var(--monks-get-in-touch-field-color, var(--monks-get-in-touch-navy));
    font: inherit;
    font-size: 16px; /* ≥16px avoids iOS zoom on focus */
    font-weight: 400;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form textarea.wpcf7-form-control {
    min-height: 108px;
    resize: vertical;
}

.monks-get-in-touch .monks-get-in-touch__form ::placeholder {
    color: var(--monks-get-in-touch-placeholder);
    opacity: 1;
}

/* Native select with a custom chevron */
.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form select.wpcf7-form-control {
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%230B2D59' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 13px 8px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form select.wpcf7-form-control[multiple] {
    padding-right: 16px;
    background-image: none;
}

/* Placeholder option ("first_as_label" / "include_blank") still selected */
.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form select.wpcf7-form-control:has(option[value=""]:checked) {
    color: var(--monks-get-in-touch-placeholder);
}

.monks-get-in-touch .monks-get-in-touch__form select option {
    color: var(--monks-get-in-touch-navy);
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form :is(input, select, textarea):hover {
    border-color: #CCD8E7;
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form :is(input:not([type="submit"]), select, textarea):focus {
    outline: none;
    border-color: var(--monks-get-in-touch-orange);
    box-shadow: 0 0 0 4px rgba(255, 90, 10, 0.14);
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form :is(input, select, textarea):is([aria-invalid="true"], .wpcf7-not-valid) {
    border-color: var(--monks-get-in-touch-error);
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form :is(input, select, textarea):is([aria-invalid="true"], .wpcf7-not-valid):focus {
    border-color: var(--monks-get-in-touch-error);
    box-shadow: 0 0 0 4px rgba(200, 50, 30, 0.14);
}

/* Checkboxes, radios, acceptance */
.monks-get-in-touch .monks-get-in-touch__form .wpcf7-list-item {
    margin: 0 18px 0 0;
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.monks-get-in-touch .monks-get-in-touch__form :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: var(--monks-get-in-touch-orange);
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7-not-valid-tip {
    margin-top: 8px;
    color: var(--monks-get-in-touch-error);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

/* ---- Submit -------------------------------------------------------------- */

.monks-get-in-touch .monks-get-in-touch__form .monks-get-in-touch__actions {
    display: grid;
    gap: 16px;
    margin-top: 6px;
}

/* The line holding the button (and the spinner CF7 inserts after it) */
.monks-get-in-touch .monks-get-in-touch__form :is(p, div):has(> :is(.wpcf7-submit, button[type="submit"])) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    min-width: 0;
}

/* `[submit]` (input) or `<button type="submit">` — the design template uses
   the button, whose ::after draws the original arrow next to the text. */
.monks-get-in-touch .monks-get-in-touch__form :is(.wpcf7-submit, button[type="submit"]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 100%;
    min-width: 270px;
    min-height: 62px;
    margin: 0;
    padding: 0 36px;
    border: 0;
    border-radius: 999px;
    background: var(--monks-get-in-touch-button-bg, var(--monks-get-in-touch-orange));
    color: var(--monks-get-in-touch-button-color, var(--monks-get-in-touch-white));
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(255, 90, 10, 0.28);
    transition: background-color 0.28s ease, box-shadow 0.28s ease;
}

.monks-get-in-touch .monks-get-in-touch__form button[type="submit"]::after {
    content: "";
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='m14 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='m14 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.28s ease;
}

.monks-get-in-touch .monks-get-in-touch__form :is(.wpcf7-submit, button[type="submit"]):hover {
    background: var(--monks-get-in-touch-button-hover-bg, var(--monks-get-in-touch-orange-dark));
    box-shadow: 0 18px 34px rgba(255, 90, 10, 0.34);
}

.monks-get-in-touch .monks-get-in-touch__form button[type="submit"]:hover::after {
    transform: translateX(5px);
}

.monks-get-in-touch .monks-get-in-touch__form :is(.wpcf7-submit, button[type="submit"]):focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--monks-get-in-touch-white), 0 0 0 5px var(--monks-get-in-touch-navy);
}

.monks-get-in-touch .monks-get-in-touch__form :is(.wpcf7-submit, button[type="submit"])[disabled],
.monks-get-in-touch .monks-get-in-touch__form .wpcf7-form.submitting :is(.wpcf7-submit, button[type="submit"]) {
    opacity: 0.7;
    cursor: progress;
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7-spinner {
    margin: 0;
}

/* Response message (shown by CF7 after a submission attempt), styled like
   the static design's status line: red for errors, green once sent. */
.monks-get-in-touch .monks-get-in-touch__form .wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #F3C9C1;
    border-radius: var(--monks-get-in-touch-radius-field);
    background: #FDF1EF;
    color: var(--monks-get-in-touch-error);
    font-size: 15px;
    line-height: 1.5;
}

.monks-get-in-touch .monks-get-in-touch__form .wpcf7 form.sent .wpcf7-response-output {
    border-color: #BFE3CF;
    background: #EFF9F3;
    color: var(--monks-get-in-touch-success);
}

/* ---- Editor-only notice -------------------------------------------------- */

.monks-get-in-touch .monks-get-in-touch__notice {
    margin: 0;
    color: var(--monks-get-in-touch-navy);
    font-size: 15px;
    line-height: 1.5;
}

.monks-get-in-touch .monks-get-in-touch__notice a {
    color: var(--monks-get-in-touch-orange-dark);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Two-column form fields once the card is wide enough */
@media (min-width: 600px) {
    .monks-get-in-touch .monks-get-in-touch__form .wpcf7-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .monks-get-in-touch .monks-get-in-touch__heading {
        font-size: clamp(3.6rem, 8vw, 4.6rem);
    }
}

/* Tablet landscape & desktop: two columns */
@media (min-width: 1024px) {
    .monks-get-in-touch .monks-get-in-touch__layout {
        grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
        gap: clamp(32px, 3.6vw, 56px);
    }

    .monks-get-in-touch .monks-get-in-touch__heading {
        font-size: clamp(3.4rem, 0.4rem + 4.4vw, 5.1rem);
    }

    .monks-get-in-touch .monks-get-in-touch__image {
        aspect-ratio: auto;
        height: clamp(280px, 24vw, 400px);
    }
}

/* Narrow two-column range: the card is too slim for paired fields */
@media (min-width: 1024px) and (max-width: 1199px) {
    .monks-get-in-touch .monks-get-in-touch__form .wpcf7-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .monks-get-in-touch .monks-get-in-touch__form .wpcf7-form-control-wrap {
        margin-top: 6px;
    }
}

@media (min-width: 1440px) {
    .monks-get-in-touch .monks-get-in-touch__layout {
        grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    }
}

/* No form card (frontend, when no form can be shown): text + image only */
.monks-get-in-touch.monks-get-in-touch--no-form .monks-get-in-touch__layout {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 599px) {
    .monks-get-in-touch .monks-get-in-touch__form :is(.wpcf7-submit, button[type="submit"]) {
        width: 100%;
        min-width: 0;
    }

    /* Full-width button: the spinner sits inside its right end instead of
       wrapping onto a line of its own */
    .monks-get-in-touch .monks-get-in-touch__form :is(p, div):has(> :is(.wpcf7-submit, button[type="submit"])) {
        position: relative;
    }

    .monks-get-in-touch .monks-get-in-touch__form :is(.wpcf7-submit, button[type="submit"]) + .wpcf7-spinner {
        position: absolute;
        top: 50%;
        right: 8px;
        margin-top: -12px;
    }

    .monks-get-in-touch .monks-get-in-touch__image {
        aspect-ratio: 4 / 3;
    }

    .monks-get-in-touch .monks-get-in-touch__deco--peach,
    .monks-get-in-touch .monks-get-in-touch__deco--blue {
        display: none;
    }
}
