@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ------------------------------------------------------------------
   NACH Mandate Cancellation - section + popup
   Shared by the home page and the Contact Us page.
   ------------------------------------------------------------------ */

.nach-cancel-section,
.nach-modal,
.nach-contact-card {
    --nach-blue: #02478c;
    --nach-blue-dark: #013566;
    --nach-orange: #e85a24;
    --nach-ink: #1b2430;
    --nach-muted: #5f6b7a;
    --nach-line: #d5dce5;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Home page band ---------- */
.nach-cancel-section {
    background: #f3f7fb;
    padding: 52px 0;
    text-align: center;
}
.nach-cancel-section .nach-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--nach-orange);
}
.nach-cancel-section .nach-heading {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--nach-ink);
}
.nach-cancel-section .nach-text {
    max-width: 580px;
    margin: 0 auto 26px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--nach-muted);
}

/* ---------- Trigger button ---------- */
.nach-open-btn {
    display: inline-block;
    padding: 13px 34px;
    border: 2px solid var(--nach-blue);
    border-radius: 50px;
    background: var(--nach-blue);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.nach-open-btn:hover,
.nach-open-btn:focus-visible {
    background: #fff;
    color: var(--nach-blue);
    box-shadow: 0 8px 20px rgba(2, 71, 140, 0.22);
    transform: translateY(-1px);
    outline: none;
}

/* ---------- Contact Us page card ---------- */
.nach-contact-card {
    height: 100%;
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid var(--nach-blue);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.nach-contact-card .nach-card-title {
    display: block;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--nach-blue);
}
.nach-contact-card p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--nach-muted);
}
.nach-contact-card .nach-open-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 13px;
}
.nach-contact-card .nach-open-btn:hover,
.nach-contact-card .nach-open-btn:focus-visible {
    background: var(--nach-orange);
    border-color: var(--nach-orange);
    color: #fff;
    box-shadow: 0 4px 12px rgba(232, 90, 36, 0.3);
}

/* ---------- Popup ---------- */
.nach-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 25, 41, 0.62);
    text-align: left;
}
.nach-modal.is-open { display: flex; }

.nach-dialog {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 94vh;
    overflow-y: auto;
    border-radius: 14px;
    border-top: 5px solid var(--nach-blue);
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    animation: nachIn 0.22s ease-out;
}
@keyframes nachIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.nach-dialog-head {
    padding: 24px 64px 18px 36px;
    border-bottom: 1px solid #e3e9f0;
    background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
}
.nach-dialog-head h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--nach-blue);
}
.nach-dialog-head .nach-company {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nach-muted);
}
.nach-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--nach-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.nach-close:hover,
.nach-close:focus-visible {
    background: #eef2f6;
    color: var(--nach-ink);
    outline: none;
}

.nach-dialog-body { padding: 22px 36px 30px; }
.nach-intro {
    margin: 0 0 22px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--nach-muted);
}

/* ---------- Form ---------- */
.nach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 22px;
}
.nach-field { min-width: 0; }
.nach-field.nach-full { grid-column: 1 / -1; }
.nach-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #2d3a4b;
}
.nach-field label .nach-req { color: #c62828; margin-left: 2px; }
.nach-field input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--nach-line);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 400;
    color: var(--nach-ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.nach-field input::placeholder { color: #9aa5b3; font-weight: 400; }
.nach-field input:hover { border-color: #aeb9c7; }
.nach-field input:focus {
    border-color: var(--nach-blue);
    box-shadow: 0 0 0 3px rgba(2, 71, 140, 0.16);
    outline: none;
}
.nach-field.has-error input {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}
.nach-field label .nach-opt { font-weight: 400; color: #8793a3; }
.nach-intro .nach-req { color: #c62828; }
.nach-field .nach-field-error {
    display: none;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #c62828;
}
.nach-field.has-error .nach-field-error { display: block; }

.nach-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.nach-error {
    display: none;
    margin: 18px 0 0;
    padding: 11px 14px;
    border-radius: 8px;
    background: #fdecea;
    font-size: 14px;
    color: #a12622;
}
.nach-error.is-visible { display: block; }

.nach-actions { margin-top: 28px; padding-top: 22px; border-top: 1px solid #edf1f5; text-align: center; }
.nach-note { margin: 12px 0 0; font-size: 12px; color: #8793a3; }
.nach-submit {
    min-width: 190px;
    padding: 13px 32px;
    border: 2px solid var(--nach-blue);
    border-radius: 8px;
    background: var(--nach-blue);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.nach-submit:hover,
.nach-submit:focus-visible {
    background: var(--nach-orange);
    border-color: var(--nach-orange);
    box-shadow: 0 6px 16px rgba(232, 90, 36, 0.3);
    outline: none;
}
.nach-submit[disabled] { opacity: 0.65; cursor: wait; box-shadow: none; }

/* ---------- Thank-you state ---------- */
.nach-thanks {
    display: none;
    padding: 18px 8px 4px;
    text-align: center;
}
.nach-thanks .nach-tick {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e6f4ea;
    font-size: 36px;
    line-height: 68px;
    color: #1e8e3e;
}
.nach-thanks h4 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--nach-ink);
}
.nach-thanks p {
    max-width: 460px;
    margin: 0 auto 24px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--nach-muted);
}
.nach-modal.is-done .nach-form-wrap { display: none; }
.nach-modal.is-done .nach-thanks { display: block; }

body.nach-lock { overflow: hidden; }

@media (max-width: 575px) {
    .nach-cancel-section .nach-heading { font-size: 23px; }
    .nach-grid { grid-template-columns: 1fr; gap: 16px; }
    .nach-dialog-head { padding: 20px 56px 16px 20px; }
    .nach-dialog-head h3 { font-size: 19px; }
    .nach-dialog-body { padding: 20px 20px 26px; }
}
