/* Contact block (axisworld/contact, inc/contact.php).
   Loaded on the site and in the editor, so it can't live in css/style.css.
   Sizes are px: bootstrap.min.css sets html { font-size: 62.5% }. */

.aw-contact {
    width: 100vw;
    max-width: none;
    margin: 0 0 0 calc(50% - 50vw);
    padding: 64px 0 0;
    background-color: #fdfbf7;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    color: #1e1711;
    box-sizing: border-box;
}

.aw-contact .aw-contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.aw-contact a,
.aw-contact a:hover,
.aw-contact a:focus {
    text-decoration: none;
}

.aw-contact h2,
.aw-contact h3,
.aw-contact p {
    margin: 0;
    padding: 0;
    text-transform: none;
}

/* Form column */
.aw-contact .aw-contact__heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #5e3f23;
}

.aw-contact .aw-contact__lead {
    max-width: 576px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.625;
    color: #5c5248;
}

.aw-contact .wpcf7-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 0;
}


.aw-contact .aw-contact__field label {
    display: block;
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(94, 63, 35, .6);
}

.aw-contact .aw-contact__field input,
.aw-contact .aw-contact__field select,
.aw-contact .aw-contact__field textarea {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 16px 20px;
    border: 1px solid #e6dfc5;
    border-radius: 0;
    background-color: #fdfbf7;
    box-shadow: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #1e1711;
    box-sizing: border-box;
    transition: border-color .15s cubic-bezier(.4, 0, .2, 1);
}

.aw-contact .aw-contact__field textarea {
    resize: none;
}

.aw-contact .aw-contact__field ::placeholder {
    color: rgba(94, 63, 35, .4);
    opacity: 1;
}

.aw-contact .aw-contact__field input:focus,
.aw-contact .aw-contact__field select:focus,
.aw-contact .aw-contact__field textarea:focus {
    outline: none;
    border-color: #c47723;
}


.aw-contact .aw-contact__field input.aw-contact__submit {
    display: inline-block;
    width: auto;
    align-items: center;
    padding: 16px 40px;
    border: 0;
    border-radius: 0;
    background-color: #c47723;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fdfbf7;
    cursor: pointer;
    transition: background-color .3s cubic-bezier(.4, 0, .2, 1);
}

.aw-contact .aw-contact__field input.aw-contact__submit:hover {
    background-color: #a55f17;
}

.aw-contact .aw-contact__field input.aw-contact__submit:disabled {
    opacity: .6;
    cursor: default;
}


/* Contact Form 7 output */
.aw-contact .wpcf7 form {
    margin: 40px 0 0;
}

.aw-contact .wpcf7-form-control-wrap {
    display: block;
}

.aw-contact .wpcf7-form .aw-contact__field input[type="submit"],
.aw-contact .wpcf7-submit {
    width: auto;
}

.aw-contact .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #b3261e;
}

.aw-contact .wpcf7-spinner {
    margin: 0 0 0 12px;
    vertical-align: middle;
}

.aw-contact .wpcf7 form .wpcf7-response-output {
    grid-column: 1 / -1;
    margin: 0;
    padding: 20px 24px;
    border: 1px solid #e6dfc5;
    font-size: 14px;
    line-height: 1.625;
    color: #5c5248;
}

.aw-contact .wpcf7 form.sent .wpcf7-response-output {
    border-color: rgba(196, 119, 35, .4);
    background-color: rgba(196, 119, 35, .05);
    color: #5e3f23;
}

.aw-contact .wpcf7 form.invalid .wpcf7-response-output,
.aw-contact .wpcf7 form.failed .wpcf7-response-output {
    border-color: #b3261e;
    color: #b3261e;
}

.aw-contact .aw-contact__notice {
    margin-top: 40px;
    font-size: 14px;
    color: #5c5248;
}
/* Head office card */
.aw-contact .aw-contact__card {
    padding: 36px;
    background-color: #18120c;
    color: #fdfbf7;
}

.aw-contact .aw-contact__label {
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: #d4882b;
}

.aw-contact .aw-contact__list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.aw-contact .aw-contact__list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
    padding: 0;
    font-size: 14px;
    line-height: 1.625;
    color: rgba(253, 251, 247, .8);
}

.aw-contact .aw-contact__list li:first-child {
    align-items: flex-start;
}

.aw-contact .aw-contact__list a {
    color: rgba(253, 251, 247, .8);
    transition: color .15s cubic-bezier(.4, 0, .2, 1);
}

.aw-contact .aw-contact__list a:hover {
    color: #d4882b;
}

.aw-contact .aw-contact__icon {
    flex: none;
    width: 18px;
    height: 18px;
    color: #d4882b;
}

.aw-contact .aw-contact__list li:first-child .aw-contact__icon {
    margin-top: 4px;
}

.aw-contact .aw-contact__hours {
    margin-top: 12px;
    padding-top: 28px;
    border-top: 1px solid rgba(253, 251, 247, .1);
}

.aw-contact .aw-contact__hours p:last-child {
    margin-top: 12px;
    font-size: 14px;
    color: rgba(253, 251, 247, .7);
}

.aw-contact .aw-contact__map {
    margin-top: 24px;
    border: 1px solid #e6dfc5;
    overflow: hidden;
}

.aw-contact .aw-contact__map iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
    filter: grayscale(.35) contrast(1.05);
}

/* Global presence */
.aw-contact .aw-contact__presence {
    gap: 0;
    padding-top: 64px;
    padding-bottom: 96px;
}

.aw-contact .aw-contact__eyebrow {
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: #c47723;
}

.aw-contact .aw-contact__locations {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.aw-contact .aw-contact__locations > div {
    height: 100%;
}

.aw-contact .aw-contact__location {
    height: 100%;
    padding: 32px;
    border: 1px solid #e6dfc5;
    background-color: #f5f1ea;
    box-sizing: border-box;
    transition: border-color .3s cubic-bezier(.4, 0, .2, 1), transform .3s cubic-bezier(.4, 0, .2, 1);
}

.aw-contact .aw-contact__location:hover {
    border-color: rgba(196, 119, 35, .6);
    transform: translateY(-4px);
}

.aw-contact .aw-contact__location h3 {
    margin-top: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 800;
    color: #5e3f23;
}

.aw-contact .aw-contact__role {
    margin-top: 12px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: rgba(94, 63, 35, .8);
}

.aw-contact .aw-contact__addr {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.625;
    color: #5c5248;
}

.aw-contact .aw-contact__call {
    margin-top: 48px;
    text-align: center;
    font-size: 14px;
    color: rgba(94, 63, 35, .6);
}

.aw-contact .aw-contact__call a {
    font-weight: 700;
    color: #c47723;
}

.aw-contact .aw-contact__call a:hover {
    color: #a55f17;
}

@media (min-width: 640px) {
    .aw-contact .aw-contact__inner {
        padding-left: 32px;
        padding-right: 32px;
    }

    .aw-contact .aw-contact__heading {
        font-size: 30px;
        line-height: 36px;
    }

    .aw-contact .aw-contact__lead {
        font-size: 16px;
    }

    .aw-contact .wpcf7-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aw-contact .aw-contact__field--full {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .aw-contact .aw-contact__locations {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .aw-contact {
        padding-top: 96px;
    }

    .aw-contact .aw-contact__inner {
        padding-left: 48px;
        padding-right: 48px;
    }

    .aw-contact .aw-contact__inner:not(.aw-contact__presence) {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 64px;
    }

    .aw-contact .aw-contact__main {
        grid-column: span 7;
    }

    .aw-contact .aw-contact__side {
        grid-column: span 5;
    }

    .aw-contact .aw-contact__card {
        padding: 44px;
    }

    .aw-contact .aw-contact__presence {
        padding-bottom: 128px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aw-contact .aw-contact__location,
    .aw-contact .aw-contact__field input.aw-contact__submit {
        transition: none;
    }
}

/* Editor preview: no full-bleed, no default block width/margins */
.editor-styles-wrapper .wp-block[data-type="axisworld/contact"] {
    max-width: none;
    margin-top: 0;
    margin-bottom: 0;
}

.editor-styles-wrapper .aw-contact {
    width: auto;
    margin: 0;
}
