/* =========================
   NS Contact Request
========================= */

.ns-contact-request {
    width: 100%;
}

.ns-contact-request__intro {
    margin-bottom: 24px;
    text-align: center;
}

.ns-contact-request__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.72em;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8b8b8b;
}

.ns-contact-request__title {
    margin: 0 auto 12px;
    max-width: 760px;
    font-size: 2em;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #171717;
}

.ns-contact-request__text {
    margin: 0 auto;
    max-width: 720px;
    font-size: 1em;
    line-height: 1.7;
    color: #4f4f4f;
}

.ns-contact-request__form-wrap {
    width: 100%;
}

.ns-contact-request__form {
    width: 100%;
}

.ns-contact-request__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ns-contact-request__field {
    margin-bottom: 16px;
}

.ns-contact-request__field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.92em;
    line-height: 1.4;
    font-weight: 600;
    color: #171717;
}

.ns-contact-request__required {
    color: #b91c1c;
}

.ns-contact-request__field input[type="text"],
.ns-contact-request__field input[type="tel"],
.ns-contact-request__field input[type="email"],
.ns-contact-request__field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid #dcdcdc;
    border-radius: 0;
    background: #fff;
    color: #171717;
    font-size: 16px;
    line-height: 1.45;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ns-contact-request__field textarea {
    min-height: 120px;
    resize: vertical;
}

.ns-contact-request__field input:focus,
.ns-contact-request__field textarea:focus {
    border-color: #171717;
    box-shadow: 0 0 0 2px rgba(23, 23, 23, 0.08);
}

.ns-contact-request__field input::placeholder,
.ns-contact-request__field textarea::placeholder {
    color: #9a9a9a;
}

.ns-contact-request__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.ns-contact-request__field--consent {
    margin-top: 4px;
}

.ns-contact-request__consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.ns-contact-request__consent input {
    flex: 0 0 auto;
    margin-top: 4px;
}

.ns-contact-request__consent span {
    display: block;
    font-size: 0.9em;
    line-height: 1.65;
    font-weight: 400;
    color: #4f4f4f;
}

.ns-contact-request__consent a {
    color: #171717;
    text-decoration: underline;
}

.ns-contact-request__footer {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ns-contact-request__note {
    margin: 0;
    max-width: 420px;
    font-size: 0.92em;
    line-height: 1.6;
    color: #666;
}

.ns-contact-request__submit,
.ns-contact-request-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid #1f1f1f;
    border-radius: 0;
    background: #1f1f1f;
    color: #fff;
    font-size: 0.9em;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ns-contact-request__submit:hover,
.ns-contact-request-button:hover {
    transform: translateY(-1px);
    background: #000;
    border-color: #000;
    color: #fff;
    text-decoration: none;
}

.ns-contact-request-button--secondary {
    background: #fff;
    color: #1f1f1f;
    border-color: #d8d8d8;
}

.ns-contact-request-button--secondary:hover {
    background: #fff;
    color: #1f1f1f;
    border-color: #1f1f1f;
}

.ns-contact-request__response {
    margin-top: 18px;
    font-size: 0.96em;
    line-height: 1.6;
}

.ns-contact-request__response.is-loading {
    padding: 14px 16px;
    border: 1px solid #e7e7e7;
    background: #fff;
    color: #4f4f4f;
}

.ns-contact-request__response.is-error {
    padding: 14px 16px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #991b1b;
}

.ns-contact-request__response.is-success {
    color: inherit;
}

.ns-contact-request-success {
    padding: 26px 24px;
    border: 1px solid #d8ead8;
    background: #f7fbf7;
    text-align: center;
}

.ns-contact-request-success__icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b9d8b9;
    background: #fff;
    color: #15803d;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

.ns-contact-request-success__eyebrow {
    margin-bottom: 8px;
    font-size: 0.72em;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4f7f4f;
}

.ns-contact-request-success__title {
    margin: 0 0 10px;
    font-size: 1.5em;
    line-height: 1.2;
    color: #171717;
}

.ns-contact-request-success__text {
    margin: 0 auto;
    max-width: 620px;
    font-size: 1em;
    line-height: 1.7;
    color: #4f4f4f;
}

/* =========================
   NS Contact Request Modal
========================= */

.ns-contact-request-modal-is-open {
    overflow: hidden;
}

.ns-contact-request-modal[hidden] {
    display: none;
}

.ns-contact-request-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.ns-contact-request-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.48);
}

.ns-contact-request-modal__dialog {
    position: relative;
    width: calc(100% - 32px);
    max-width: 980px;
    max-height: calc(100vh - 60px);
    margin: 30px auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    overflow: auto;
    box-sizing: border-box;
}

.ns-contact-request-modal__close {
    position: sticky;
    top: 0;
    margin-left: auto;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dcdcdc;
    border-top: 0;
    border-right: 0;
    background: #fff;
    font-size: 30px;
    line-height: 1;
    color: #171717;
    cursor: pointer;
}

.ns-contact-request-modal__close:hover {
    background: #f7f7f7;
}

.ns-contact-request-modal__content {
    padding: 0 30px 30px;
}

/* Trigger wrapper */

.ns-contact-request-trigger {
    display: inline-flex;
}

div.contact-card .contact-card-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
    background-color: white;
    color: rgb(0, 115, 170);
}

.contact-card-button:hover {
    color: inherit;
    text-decoration: none;
}

.contact-card-button i {
    display: inline-block;
}

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

@media (max-width: 767px) {
    .ns-contact-request__intro {
        margin-bottom: 20px;
    }

    .ns-contact-request__title {
        font-size: 1.55em;
    }

    .ns-contact-request__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ns-contact-request__footer {
        display: grid;
        gap: 14px;
    }

    .ns-contact-request__note {
        max-width: none;
    }

    .ns-contact-request__submit {
        width: 100%;
    }

    .ns-contact-request-modal__dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
    }

    .ns-contact-request-modal__content {
        padding: 0 18px 22px;
    }

    .ns-contact-request-trigger,
    .ns-contact-request-button {
        width: 100%;
    }
}