/* ======================================
   ENQUIRY: side tab + three-step enquiry modal (built by crafto/js/metro-enquiry.js)
   Replaces the old Jotform feedback widget; it still submits to the same Jotform form.
   Colours: #ee3939 / #000 / #fff (greys are black at low opacity). Every rule is scoped under .md-enq.
====================================== */

.md-enq,
.md-enq *,
.md-enq *::before,
.md-enq *::after {
    box-sizing: border-box;
}

/* ---------- side tab ---------- */
.md-enq-tab {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 1040;
    padding: 18px 12px;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: #ee3939;
    color: #ffffff;
    font-family: var(--primary-font, "DM Sans", sans-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    box-shadow: 0 8px 22px rgba(238, 57, 57, 0.35);
    cursor: pointer;
    transition: padding 0.25s ease, background-color 0.25s ease;
}

.md-enq-tab:hover {
    padding-left: 16px;
    background: #000000;
}

.md-enq-tab:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* ---------- overlay ---------- */
.md-enq {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5vh 16px;
    font-family: var(--primary-font, "DM Sans", sans-serif);
    color: #000000;
}

.md-enq.is-open {
    display: flex;
}

.md-enq-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000000;
}

.md-enq-bg img {
    position: absolute;
    inset: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    max-width: none;
    object-fit: cover;
    object-position: center;
    filter: blur(4px);
}

.md-enq-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

html.md-enq-lock,
html.md-enq-lock body {
    overflow: hidden !important;
}

/* ---------- dialog ---------- */
.md-enq-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1050px, 85vw);
    max-height: 90vh;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.md-enq-dialog:focus {
    outline: none;
}

/* ---------- header ---------- */
.md-enq-head {
    position: relative;
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
    padding: 44px 56px 40px;
    overflow: hidden;
    isolation: isolate;
    background: #000000;
    color: #ffffff;
}

.md-enq-head-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 100% 45%;   /* keeps the hat and the CONFIDENTIAL file on the right in view */
}

.md-enq-head::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0) 100%);
}

.md-enq-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.md-enq-eyebrow::before {
    content: "";
    flex: none;
    width: 40px;
    height: 2px;
    background: #ee3939;
}

.md-enq-eyebrow span {
    color: #ee3939;
}

.md-enq-title {
    margin: 0 0 16px;
    font-family: var(--alt-font, "Playfair Display", serif);
    font-size: 58px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.md-enq-title span {
    color: #ee3939;
}

.md-enq-lead {
    max-width: 520px;
    margin: 0;
    font-size: 16.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.md-enq-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.md-enq-close svg {
    width: 20px;
    height: 20px;
}

.md-enq-close:hover {
    background: #ee3939;
    color: #ffffff;
    transform: rotate(90deg);
}

.md-enq-close:focus-visible {
    outline: 2px solid #ee3939;
    outline-offset: 3px;
}

/* ---------- body ---------- */
.md-enq-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 26px 56px 30px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* progress */
.md-enq-steps {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.md-enq-step {
    display: flex;
    flex: none;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.md-enq-dot {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    color: #5c5c5c;
    font-size: 13px;
    font-weight: 700;
    /* the page's 30px line-height would make the number's line box taller than the circle */
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.md-enq-dot svg {
    width: 14px;
    height: 14px;
}

.md-enq-step-label {
    display: none;
    white-space: nowrap;
}

.md-enq-step.is-active .md-enq-dot,
.md-enq-step.is-done .md-enq-dot {
    background: #ee3939;
    color: #ffffff;
}

.md-enq-step.is-active .md-enq-step-label {
    display: inline;
}

.md-enq-line {
    position: relative;
    flex: 1 1 auto;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.1);
}

.md-enq-line i {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ee3939, rgba(238, 57, 57, 0.35));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s ease;
}

.md-enq-line.is-half i {
    transform: scaleX(0.5);
}

.md-enq-line.is-full i {
    transform: scaleX(1);
    background: #ee3939;
}

/* panes */
.md-enq-pane[hidden] {
    display: none;
}

.md-enq-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.md-enq-field {
    margin: 0 0 24px;
}

.md-enq-label {
    display: block;
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.md-enq-label b {
    color: #ee3939;
    font-weight: 700;
}

.md-enq-label small {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
}

.md-enq-control {
    position: relative;
}

.md-enq-ico {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 20px;
    height: 20px;
    color: #000000;
    transform: translateY(-50%);
    pointer-events: none;
    transition: color 0.2s ease;
}

.md-enq input[type="text"],
.md-enq input[type="email"],
.md-enq input[type="tel"],
.md-enq select,
.md-enq textarea {
    display: block;
    width: 100%;
    height: 64px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 7px;
    background: #ffffff;
    color: #000000;
    font: inherit;
    font-size: 15.5px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.md-enq .has-ico input,
.md-enq .has-ico select {
    padding-left: 56px;
}

.md-enq select {
    padding-right: 52px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.md-enq-chev {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.md-enq textarea {
    height: auto;
    min-height: 140px;
    padding: 18px 20px;
    resize: vertical;
}

.md-enq input::placeholder,
.md-enq textarea::placeholder {
    color: rgba(0, 0, 0, 0.42);
    opacity: 1;
}

.md-enq input:focus,
.md-enq select:focus,
.md-enq textarea:focus {
    border-color: #ee3939;
    outline: none;
    box-shadow: 0 0 0 3px rgba(238, 57, 57, 0.14);
}

.md-enq-control:focus-within .md-enq-ico {
    color: #ee3939;
}

.md-enq-help {
    display: block;
    margin: 8px 0 0;
    font-size: 12.5px;
    color: rgba(0, 0, 0, 0.55);
}

.md-enq-err {
    display: block;
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #ee3939;
}

.md-enq-err[hidden] {
    display: none;
}

.md-enq-field.is-invalid input,
.md-enq-field.is-invalid select,
.md-enq-field.is-invalid textarea,
.md-enq-col.is-invalid input {
    border-color: #ee3939;
    box-shadow: 0 0 0 3px rgba(238, 57, 57, 0.1);
}

.md-enq-field.is-invalid .md-enq-ico,
.md-enq-col.is-invalid .md-enq-ico {
    color: #ee3939;
}

/* preferred contact method */
.md-enq-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.md-enq-fieldset legend {
    float: none;
    width: auto;
    padding: 0;
}

.md-enq-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.md-enq-choice {
    position: relative;
    margin: 0;
}

.md-enq-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.md-enq-choice span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 7px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.md-enq-choice span::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.md-enq-choice input:checked + span {
    border-color: #ee3939;
    color: #ee3939;
}

.md-enq-choice input:checked + span::before {
    border-color: #ee3939;
    box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 7px #ee3939;
}

.md-enq-choice input:focus-visible + span {
    outline: 2px solid #ee3939;
    outline-offset: 2px;
}

.md-enq-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
}

.md-enq-note svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: #ee3939;
}

.md-enq-alert {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-left: 3px solid #ee3939;
    border-radius: 0 7px 7px 0;
    background: rgba(238, 57, 57, 0.08);
    font-size: 14.5px;
    line-height: 1.55;
}

.md-enq-alert[hidden] {
    display: none;
}

.md-enq-alert a {
    color: #ee3939;
    font-weight: 600;
}

/* confirmation */
.md-enq-done {
    max-width: 560px;
    margin: 0 auto;
    padding: 14px 0 6px;
    text-align: center;
}

.md-enq-done-ico {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #ee3939;
    color: #ffffff;
    box-shadow: 0 0 0 10px rgba(238, 57, 57, 0.12);
}

.md-enq-done-ico svg {
    width: 40px;
    height: 40px;
}

.md-enq-done h3 {
    margin: 0 0 12px;
    font-family: var(--alt-font, "Playfair Display", serif);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    color: #000000;
}

.md-enq-done p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.7);
}

/* ---------- footer ---------- */
.md-enq-foot {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 56px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.md-enq-safe {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
}

.md-enq-safe svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: #ee3939;
}

.md-enq-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.md-enq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 54px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.md-enq-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.md-enq-btn-main {
    min-width: 210px;
    background: #ee3939;
    color: #ffffff;
}

.md-enq-btn-main:hover {
    background: #000000;
}

.md-enq-btn-main:hover svg {
    transform: translateX(5px);
}

.md-enq-btn-back {
    border-color: rgba(0, 0, 0, 0.18);
    background: #ffffff;
    color: #000000;
}

.md-enq-btn-back:hover {
    border-color: #000000;
}

.md-enq-btn-back:hover svg {
    transform: translateX(-4px);
}

.md-enq-btn[hidden] {
    display: none;
}

.md-enq-btn:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 3px;
}

.md-enq-btn[disabled] {
    opacity: 0.75;
    cursor: progress;
}

.md-enq-spin {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: md-enq-spin 0.8s linear infinite;
}

@keyframes md-enq-spin {
    to { transform: rotate(360deg); }
}

.md-enq-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- tablet ---------- */
@media (max-width: 991px) {
    .md-enq-dialog {
        width: 90vw;
    }

    .md-enq-head {
        min-height: 220px;
        padding: 40px 40px 34px;
    }

    .md-enq-title {
        font-size: 46px;
    }

    .md-enq-body {
        padding: 24px 40px 28px;
    }

    .md-enq-foot {
        padding: 16px 40px;
    }
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
    .md-enq {
        padding: 8px;
    }

    .md-enq-dialog {
        width: 100%;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 12px;
    }

    .md-enq-head {
        min-height: 190px;
        padding: 30px 22px 24px;
    }

    .md-enq-head-img {
        width: 100%;
        opacity: 0.45;
    }

    .md-enq-head::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.88) 100%);
    }

    .md-enq-eyebrow {
        gap: 10px;
        margin-bottom: 12px;
        padding-right: 50px;
        font-size: 11px;
        letter-spacing: 0.14em;
    }

    .md-enq-eyebrow::before {
        width: 26px;
    }

    .md-enq-title {
        margin-bottom: 10px;
        font-size: 36px;
    }

    .md-enq-lead {
        font-size: 14.5px;
    }

    .md-enq-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .md-enq-body {
        padding: 20px 20px 22px;
    }

    .md-enq-steps {
        gap: 10px;
        margin-bottom: 22px;
    }

    .md-enq-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .md-enq-row .md-enq-col + .md-enq-col {
        margin-top: 16px;
    }

    .md-enq input[type="text"],
    .md-enq input[type="email"],
    .md-enq input[type="tel"],
    .md-enq select {
        height: 56px;
        font-size: 16px;   /* 16px stops iOS from zooming into the field */
    }

    .md-enq textarea {
        font-size: 16px;
    }

    .md-enq-field {
        margin-bottom: 20px;
    }

    .md-enq-foot {
        padding: 14px 20px;
    }

    .md-enq-safe {
        display: none;
    }

    .md-enq-actions {
        width: 100%;
    }

    .md-enq-btn {
        flex: 1 1 0;
        min-width: 0;
        height: 52px;
        padding: 0 16px;
    }

    .md-enq-done h3 {
        font-size: 28px;
    }

    .md-enq-tab {
        padding: 14px 10px;
        font-size: 13.5px;
    }
}

/* ======================================
   COMPACT: the whole modal fits one screen, no scrolling inside it.
   Fields are paired in rows (email | phone, service | contact method, subject | location),
   inputs are 48px, and the header is shorter. Short laptop screens tighten further.
====================================== */
.md-enq {
    padding: 3vh 16px;
}

.md-enq-dialog {
    width: min(960px, 88vw);
    max-height: 94vh;
}

.md-enq-head {
    min-height: 0;
    padding: 28px 48px 26px;
}

.md-enq-eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
}

.md-enq-title {
    margin-bottom: 10px;
    font-size: clamp(32px, 5.4vh, 46px);
}

.md-enq-lead {
    max-width: 560px;
    font-size: 15px;
    line-height: 1.5;
}

.md-enq-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
}

.md-enq-close svg {
    width: 18px;
    height: 18px;
}

.md-enq-body {
    padding: 18px 48px 6px;
}

.md-enq-steps {
    margin-bottom: 16px;
}

.md-enq-dot {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.md-enq-row {
    gap: 0 16px;
}

.md-enq-field {
    margin-bottom: 14px;
}

.md-enq-label {
    margin-bottom: 6px;
    font-size: 14.5px;
}

.md-enq-label small {
    font-size: 12px;
}

.md-enq-ico {
    left: 16px;
    width: 18px;
    height: 18px;
}

.md-enq input[type="text"],
.md-enq input[type="email"],
.md-enq input[type="tel"],
.md-enq select {
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
}

.md-enq .has-ico input,
.md-enq .has-ico select {
    padding-left: 46px;
}

.md-enq select {
    padding-right: 44px;
}

.md-enq-chev {
    right: 16px;
}

.md-enq textarea {
    min-height: 84px;
    padding: 12px 16px;
    font-size: 15px;
}

.md-enq-help {
    margin-top: 4px;
    font-size: 11.5px;
}

.md-enq-err {
    margin-top: 4px;
    font-size: 12px;
}

/* the three contact options share the half-width column */
.md-enq-choices {
    flex-wrap: nowrap;
    gap: 8px;
}

.md-enq-choice {
    flex: 1 1 0;
    min-width: 0;
}

.md-enq-choice span {
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0 10px;
    font-size: 14px;
}

.md-enq-alert {
    margin-bottom: 12px;
    padding: 10px 14px;
    font-size: 13.5px;
}

.md-enq-done {
    padding: 4px 0 14px;
}

.md-enq-done-ico {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.md-enq-done-ico svg {
    width: 30px;
    height: 30px;
}

.md-enq-done h3 {
    margin-bottom: 8px;
    font-size: 28px;
}

.md-enq-done p {
    font-size: 15px;
}

.md-enq-foot {
    padding: 12px 48px;
}

.md-enq-safe {
    font-size: 13.5px;
}

.md-enq-btn {
    height: 48px;
    font-size: 15px;
}

.md-enq-btn-main {
    min-width: 190px;
}

/* short laptop screens (768px and under) */
@media (max-height: 720px) {
    .md-enq-head {
        padding: 20px 48px 18px;
    }

    .md-enq-title {
        font-size: 32px;
    }

    .md-enq-lead {
        font-size: 14px;
    }

    .md-enq-body {
        padding-top: 14px;
    }

    .md-enq-steps {
        margin-bottom: 12px;
    }

    .md-enq-field {
        margin-bottom: 10px;
    }

    .md-enq input[type="text"],
    .md-enq input[type="email"],
    .md-enq input[type="tel"],
    .md-enq select,
    .md-enq-choice span {
        height: 44px;
    }

    .md-enq textarea {
        min-height: 70px;
    }

    .md-enq-btn {
        height: 44px;
    }

    .md-enq-foot {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (max-width: 991px) {
    .md-enq-head,
    .md-enq-foot {
        padding-left: 36px;
        padding-right: 36px;
    }

    .md-enq-body {
        padding-left: 36px;
        padding-right: 36px;
    }
}

@media (max-width: 767px) {
    .md-enq {
        padding: 8px;
    }

    .md-enq-dialog {
        width: 100%;
    }

    .md-enq-head {
        padding: 20px 20px 16px;
    }

    .md-enq-title {
        font-size: 30px;
    }

    .md-enq-lead {
        font-size: 13.5px;
    }

    .md-enq-body {
        padding: 14px 20px 4px;
    }

    .md-enq-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .md-enq-row .md-enq-col + .md-enq-col {
        margin-top: 10px;
    }

    .md-enq input[type="text"],
    .md-enq input[type="email"],
    .md-enq input[type="tel"],
    .md-enq select,
    .md-enq-choice span {
        height: 46px;
        font-size: 16px;
    }

    .md-enq-field {
        margin-bottom: 12px;
    }

    .md-enq-foot {
        padding: 10px 20px;
    }
}

/* an error message takes the place of the hint under the field, so the form does not grow */
.md-enq-field.is-invalid .md-enq-help,
.md-enq-col.is-invalid .md-enq-help {
    display: none;
}

/* tablets and up: the error sits on the label line, right-aligned, so showing it never adds height
   (for the two name halves: on the shared "Name" line, above its own half) */
@media (min-width: 768px) {
    .md-enq-field,
    .md-enq-col {
        position: relative;
    }

    .md-enq-err {
        position: absolute;
        top: 0;
        right: 0;
        max-width: 75%;
        margin: 0;
        font-size: 12px;
        line-height: 22px;
        text-align: right;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .md-enq-col .md-enq-err {
        top: -28px;
    }
}

@media (min-width: 768px) and (max-height: 660px) {
    .md-enq-col .md-enq-err {
        top: -25px;
    }
}

/* very short windows (e.g. 1366x768 laptops) and phones: drop the header sentence and the hints */
@media (max-height: 660px), (max-width: 767px) {
    .md-enq-lead,
    .md-enq-help {
        display: none;
    }

    .md-enq-head {
        padding-top: 18px;
        padding-bottom: 16px;
    }

    .md-enq-eyebrow {
        margin-bottom: 8px;
    }

    .md-enq-title {
        margin-bottom: 0;
        font-size: 30px;
    }

    .md-enq-body {
        padding-top: 12px;
    }

    .md-enq-steps {
        margin-bottom: 10px;
    }

    .md-enq-field {
        margin-bottom: 10px;
    }

    .md-enq-label {
        margin-bottom: 4px;
        font-size: 14px;
    }

    .md-enq input[type="text"],
    .md-enq input[type="email"],
    .md-enq input[type="tel"],
    .md-enq select,
    .md-enq-choice span {
        height: 44px;
    }

    .md-enq textarea {
        min-height: 64px;
    }

    .md-enq-err {
        margin-top: 2px;
    }

    .md-enq-btn {
        height: 44px;
    }
}

@media (max-width: 767px) {
    .md-enq-head {
        padding-right: 60px;
    }

    .md-enq-title {
        font-size: 27px;
    }

    .md-enq-row .md-enq-col + .md-enq-col {
        margin-top: 8px;
    }

    .md-enq-choice span {
        font-size: 14px;
    }

    .md-enq-field {
        margin-bottom: 8px;
    }

    .md-enq input[type="text"],
    .md-enq input[type="email"],
    .md-enq input[type="tel"],
    .md-enq select,
    .md-enq-choice span {
        height: 42px;
    }

    .md-enq textarea {
        min-height: 56px;
    }

    .md-enq-steps {
        margin-bottom: 8px;
    }
}

/* the shortest windows on wide screens */
@media (min-width: 768px) and (max-height: 580px) {
    .md-enq-eyebrow {
        display: none;
    }

    .md-enq-title {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .md-enq *,
    .md-enq-tab {
        transition: none !important;
    }

    .md-enq-spin {
        animation-duration: 2s;
    }
}
