/*******************************************************************************
 *
 *  Contact page — /contact-us, /en/contact-us.
 *
 *  Figma B2C, frame "Contact" (465:1955). Built from Nevma blocks; the widths
 *  are Vanilla's own panels, so nothing here sets one:
 *
 *      intro text ........ row "narrow"  (1024)   section .nvm-contact__intro
 *      form + details .... row "normal"  (1280)   section .nvm-contact__main
 *                          columns 60 / 40
 *
 *  The form is Gravity Forms 5 (Greek) and 6 (English): fields, labels,
 *  button text, required marker and messages are set in the forms. Left-hand
 *  labels are set there too, but the form keeps the legacy markup the rest
 *  of the site's forms use, and Gravity Forms' own legacy stylesheet is not
 *  loaded, so the two-column field layout is drawn here.
 *
 ******************************************************************************/

/*
    Title band — the theme gives every page the shallow band; this one is a
    dark photograph, so the heading and trail are white over it, as
    theme.shop.css does for the stores page. Keyed on the page slug like that
    rule; both languages share it.
*/

.responsiville.page-contact-us .hero-section--shop h1,
.responsiville.page-contact-us .hero-section--shop h2,
.responsiville.page-contact-us .hero-section--shop .woocommerce-breadcrumb,
.responsiville.page-contact-us .hero-section--shop .woocommerce-breadcrumb a,
.responsiville.page-contact-us .hero-section--shop .hero-section-breadcrumb__sep {
    color: var(--nvm-color-white);
}

.responsiville.page-contact-us .hero-section--shop .woocommerce-breadcrumb a:hover {
    background: none;
    color: var(--nvm-color-gold);
}

/* Intro — 110 above and below at 1920, Hauora Light 20, centred. */

.responsiville .nvm-contact__intro {
    padding-top: clamp( 40px, 5.73vw, 110px );
    padding-bottom: clamp( 30px, 5.73vw, 110px );
}

.responsiville .nvm-contact__intro .nvm-text p {
    margin: 0;
    font-weight: 300;
    font-size: clamp( 17px, 1.04vw, 20px );
    line-height: 1.5;
    color: #000;
    text-align: center;
}

.responsiville .nvm-contact__main {
    margin-bottom: clamp( 60px, 9.8vw, 188px );
}

/*
    The form — label on the left, a 600 wide white field on the right, 40
    between rows, the button under the fields.
*/

.responsiville .nvm-contact-form_wrapper {
    --nvm-contact-field: min( 600px, 100% );
    margin: 0;
}

    .responsiville .nvm-contact-form_wrapper .gform_fields {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* One label column for every row, so the fields line up: the drawing's
       168 (768 less the 600 field), narrower where the row is. */
    .responsiville .nvm-contact-form_wrapper .gfield {
        display: grid;
        grid-template-columns: clamp( 110px, 22%, 168px ) minmax( 0, 1fr );
        align-items: center;
        gap: 8px 20px;
        margin: 0 0 40px;
        padding: 0;
    }

        .responsiville .nvm-contact-form_wrapper .gfield--type-textarea {
            align-items: start;
        }

    .responsiville .nvm-contact-form_wrapper .gfield_label {
        margin: 0;
        padding: 0;
        white-space: nowrap;
        font-weight: 400;
        font-size: 16px;
        line-height: 1.1;
        color: var(--nvm-color-ink);
    }

    /* Drawn without a marker; the fields still carry aria-required. */
    .responsiville .nvm-contact-form_wrapper .gfield_required {
        display: none;
    }

    .responsiville .nvm-contact-form_wrapper .ginput_container {
        grid-column: 2;
        margin: 0;
    }

    .responsiville .nvm-contact-form_wrapper input[type="text"],
    .responsiville .nvm-contact-form_wrapper input[type="email"],
    .responsiville .nvm-contact-form_wrapper input[type="tel"],
    .responsiville .nvm-contact-form_wrapper textarea {
        width: 100%;
        height: 50px;
        margin: 0;
        padding: 0 16px;
        border: 0;
        border-radius: 4px;
        background: #fff;
        font-size: 16px;
        color: var(--nvm-color-ink);
    }

    /* textarea.textarea outweighs the theme's .gform_wrapper .textarea.medium. */
    .responsiville .nvm-contact-form_wrapper textarea.textarea {
        height: 170px;
        min-height: 0;
        padding: 14px 16px;
        resize: vertical;
    }

    /* The consent sits under the fields, in their column, with no heading. */
    .responsiville .nvm-contact-form_wrapper .gfield--type-consent .gfield_label {
        display: none;
    }

    .responsiville .nvm-contact-form_wrapper .ginput_container_consent {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

        .responsiville .nvm-contact-form_wrapper .gfield_consent_label {
            font-size: 14px;
            line-height: 1.4;
        }

    /*
        Validation, quietly: one line over the form in the terracotta of the
        legend pins, a fine line on the field at fault and its message under
        it. The theme's own (theme.forms.css) is a pink box with an icon-font
        glyph that does not load here, and a blue tag under each field.
    */

    .responsiville .nvm-contact-form_wrapper .gform_validation_errors {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 32px calc( clamp( 110px, 22%, 168px ) + 20px );
        padding: 0;
        border-radius: 0;
        background: none;
        color: #C26144;
        transform: none;
    }

        .responsiville .nvm-contact-form_wrapper .gform_validation_errors::before {
            content: "";
            flex: 0 0 16px;
            width: 16px;
            height: 16px;
            margin: 0;
            border-radius: 50%;
            background: #C26144 url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M7.25 4h1.5v5h-1.5zM7.25 10.5h1.5V12h-1.5z'/%3E%3C/svg%3E" ) center / 16px no-repeat;
            font-family: inherit;
        }

        .responsiville .nvm-contact-form_wrapper .gform_submission_error {
            margin: 0;
            padding: 0;
            font-family: inherit;
            font-weight: 400;
            font-size: 14px;
            line-height: 1.4;
            letter-spacing: 0;
            text-transform: none;
            color: inherit;
        }

    .responsiville .nvm-contact-form_wrapper .gfield_error input,
    .responsiville .nvm-contact-form_wrapper .gfield_error textarea {
        background: #fff;
        box-shadow: inset 0 0 0 1px #C26144;
    }

    /* The theme widens every input of a field in error, the consent's
       checkbox included; it keeps its size, outlined instead. */
    .responsiville .nvm-contact-form_wrapper .gfield_error input[type="checkbox"] {
        flex: 0 0 auto;
        width: auto;
        margin-top: 2px;
        box-shadow: none;
        outline: 1px solid #C26144;
        outline-offset: 1px;
        accent-color: var(--nvm-color-ink);
    }

    .responsiville .nvm-contact-form_wrapper .gfield_error .gfield_label {
        color: #C26144;
    }

    .responsiville .nvm-contact-form_wrapper .gfield .validation_message {
        grid-column: 2;
        display: block;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: none;
        font-size: 13px;
        line-height: 1.4;
        color: #C26144;
        transform: none;
    }

    /* Fixed by the shopper: the line goes as soon as the field is focused. */
    .responsiville .nvm-contact-form_wrapper .gfield_error input:focus,
    .responsiville .nvm-contact-form_wrapper .gfield_error textarea:focus {
        box-shadow: inset 0 0 0 1px var(--nvm-color-ink);
        outline: none;
    }

    /* The button, outlined, under the fields' column, with the send glyph. */
    .responsiville .nvm-contact-form_wrapper .gform_footer {
        margin: 0;
        padding: 0 0 0 calc( clamp( 110px, 22%, 168px ) + 20px );
    }

    .responsiville .nvm-contact-form_wrapper .gform_footer .gform_button,
    .responsiville .nvm-contact__details .nvm-button {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        margin: 0;
        padding: 10px 50px 10px 81px;
        border: 1px solid var(--nvm-color-ink);
        border-radius: 4px;
        background-color: transparent;
        background-repeat: no-repeat;
        background-position: 50px center;
        font-weight: 700;
        font-size: 12px;
        line-height: 1.2;
        letter-spacing: 0;
        text-transform: uppercase;
        color: var(--nvm-color-ink);
        box-shadow: none;
    }

    .responsiville .nvm-contact-form_wrapper .gform_footer .gform_button {
        background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='20' viewBox='0 0 21 20'%3E%3Cpath fill='%23231F20' d='M20.19 8.724 2.025.14A1.43 1.43 0 0 0 .495.343C.065.712-.1 1.278.06 1.822l2.175 7.333h7.341v1.694H2.24L.065 18.176c-.159.544.006 1.111.436 1.479.207.18.462.295.733.332.272.037.548-.005.796-.122L20.19 11.29c.499-.238.81-.731.81-1.28 0-.556-.311-1.043-.81-1.281Z'/%3E%3C/svg%3E" );
        background-size: 21px 20px;
        cursor: pointer;
    }

    .responsiville .nvm-contact-form_wrapper .gform_footer .gform_button:hover,
    .responsiville .nvm-contact__details .nvm-button:hover {
        background-color: var(--nvm-color-ink);
        color: #fff;
    }

/*
    The details — 150 to the right of the form, the arrow mark on top, then
    the address block, the stores button, and Follow Maison.
*/

@media ( min-width: 1024px ) {

    .responsiville .nvm-contact__details .column-content {
        padding-left: clamp( 20px, 7.8vw, 150px );
    }

}

.responsiville .nvm-contact__details .column-content::before {
    content: "";
    display: block;
    width: 60px;
    height: 32px;
    margin-bottom: clamp( 30px, 4.6vw, 89px );
    background: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='32' viewBox='0 0 60 32'%3E%3Cpath fill='%23231F20' d='M30.158 0H0v30.394L30.158 0ZM60.041 30.117V0H30.158l29.883 30.117Z'/%3E%3C/svg%3E" ) no-repeat;
}

.responsiville .nvm-contact__heading {
    margin: 0 0 40px;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--nvm-color-ink);
}

.responsiville .nvm-contact__line {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--nvm-color-ink);
}

    .responsiville .nvm-contact__details .nvm-text .nvm-contact__line a {
        border: 0;
        background: none;
        font-weight: 400;
        text-decoration: none;
        color: inherit;
    }

    .responsiville .nvm-contact__details .nvm-text .nvm-contact__line a:hover {
        color: var(--nvm-color-gold);
    }

.responsiville .nvm-contact__details .nvm-button-container {
    margin: 10px 0 clamp( 30px, 4.6vw, 89px );
}

    .responsiville .nvm-contact__details .nvm-button {
        padding-left: 84px;
        background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23231F20' d='M17.657 15.435 12 21l-5.657-5.565a7.737 7.737 0 0 1-2.19-4.03 7.712 7.712 0 0 1 .456-4.546A7.82 7.82 0 0 1 7.555 3.326 8.034 8.034 0 0 1 12 2c1.582 0 3.129.462 4.444 1.326a7.82 7.82 0 0 1 2.947 3.532 7.712 7.712 0 0 1 .455 4.547 7.737 7.737 0 0 1-2.19 4.03ZM12 11.619c.472 0 .924-.184 1.257-.512.334-.328.521-.773.521-1.237s-.187-.909-.52-1.237A1.794 1.794 0 0 0 12 8.12c-.472 0-.924.185-1.257.513a1.736 1.736 0 0 0-.521 1.237c0 .464.187.909.52 1.237.334.328.786.512 1.258.512Z'/%3E%3C/svg%3E" );
        background-size: 24px 24px;
    }

/* Follow Maison — the theme's social links; the search icon the theme's
   list always carries does not belong under that heading. */

.responsiville .nvm-contact__details .social .open-search-button {
    display: none;
}

.responsiville .nvm-contact__details .social li:has( .open-search-button ) {
    display: none;
}

/* Below a laptop: the label goes above its field, the button under them. */

@media ( max-width: 767px ) {

    .responsiville .nvm-contact-form_wrapper .gfield {
        grid-template-columns: 1fr;
        margin-bottom: 24px;
    }

    .responsiville .nvm-contact-form_wrapper .gfield_label {
        white-space: normal;
    }

    .responsiville .nvm-contact-form_wrapper .ginput_container,
    .responsiville .nvm-contact-form_wrapper .gfield .validation_message {
        grid-column: 1;
    }

    .responsiville .nvm-contact-form_wrapper .gform_validation_errors {
        margin-left: 0;
    }

    .responsiville .nvm-contact-form_wrapper .gform_footer {
        padding-left: 0;
    }

    .responsiville .nvm-contact__details {
        margin-top: 50px;
    }

}
