/* ============================================================
   accountCreate.css  —  ACH Auto Draft Forms
   Located at: tcrsd.org/ach/include/accountCreate.css
   Matches tcrsd.org design system.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Georgia', Arial, sans-serif;
    background: #f4f6f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Branded header ─────────────────────────────────────────── */
.ac-header {
    background: linear-gradient(135deg, #093270 0%, #1a5c08 100%);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.ac-header img {
    height: 72px;
    width: auto;
    background: #ffffff;
    padding: 5px 8px;
    border-radius: 6px;
}

.ac-header-text h1 {
    font-family: 'News Cycle', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.ac-header-text p {
    font-family: 'Kalam', cursive;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.72);
    margin: 0;
}

.ac-wave {
    line-height: 0;
    background: linear-gradient(135deg, #093270 0%, #1a5c08 100%);
    margin-top: -1px;
}
.ac-wave svg { display: block; }

/* ── Step indicator ─────────────────────────────────────────── */
.ac-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 24px 20px 0;
    max-width: 460px;
    margin: 0 auto;
}

.ac-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.ac-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'News Cycle', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
}

.ac-step.done .ac-step-circle {
    background: #375a06;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(55,90,6,0.3);
}

.ac-step.active .ac-step-circle {
    background: linear-gradient(135deg, #093270, #1a5c08);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(9,50,112,0.3);
}

.ac-step.pending .ac-step-circle {
    background: #e8ecf2;
    color: #aaa;
}

.ac-step-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #aaa;
    text-align: center;
    line-height: 1.3;
}

.ac-step.done .ac-step-label   { color: #375a06; }
.ac-step.active .ac-step-label { color: #093270; }

.ac-step-line {
    flex: 1;
    height: 2px;
    background: #e8ecf2;
    margin-bottom: 20px;
    max-width: 55px;
}

.ac-step-line.done { background: #375a06; }

/* ── Main container ─────────────────────────────────────────── */
#mainContainer {
    max-width: 580px;
    margin: 24px auto 0;
    width: calc(100% - 40px);
}

/* Hide old header elements */
#mainHeaderLogo,
#mainHeaderText,
#mainHRule { display: none; }

/* ── Section heading pill ───────────────────────────────────── */
#fieldContainerHead {
    font-family: 'News Cycle', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #093270;
    background: #eef3fb;
    padding: 5px 14px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 14px;
}

/* ── Form card ──────────────────────────────────────────────── */
#fieldContainer,
#fieldContainer.shadow {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    padding: 28px 28px 22px;
    border-top: 4px solid #093270;
    position: relative;
}

/* ── Field label heads ──────────────────────────────────────── */
#cell1Head, #cell2Head, #cell3Head, #cell4Head,
#cell5Head, #cell6Head, #cell7Head, #cell8Head {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #093270;
    background: #eef3fb;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 6px;
    margin-top: 14px;
}

/* ── Cell wrappers ──────────────────────────────────────────── */
#cell1, #cell2, #cell3, #cell4,
#cell5, #cell6, #cell7, #cell8 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

/* ── Inputs ─────────────────────────────────────────────────── */
.formField {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid #d0d8e8;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fafbfd;
    color: #1a1a1a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.formField:focus {
    outline: none;
    border-color: #093270;
    box-shadow: 0 0 0 3px rgba(9,50,112,0.1);
    background: #ffffff;
}

/* ── Asterisk / required ────────────────────────────────────── */
.asterisk {
    color: #9d2a2a;
    font-weight: 700;
    flex-shrink: 0;
}

#fieldContainerFoot {
    font-size: 0.78rem;
    color: #888;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
}

.smallNoteBlack { font-size: 0.8rem; color: #888; font-style: italic; }

/* ── Button holder ──────────────────────────────────────────── */
#btnHolder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

/* ── Submit button ──────────────────────────────────────────── */
#btnSubmit {
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(135deg, #093270, #1a5c08);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 999px;
    font-family: 'News Cycle', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(9,50,112,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
    margin-left: auto;
    height: 44px;
}

#btnSubmit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9,50,112,0.3);
}

/* ── Back button ────────────────────────────────────────────── */
#btnBack {
    appearance: none;
    -webkit-appearance: none;
    background: #f0f4f8;
    color: #555;
    border: 1px solid #d0d8e8;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: 'News Cycle', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
    height: 44px;
}

#btnBack:hover { background: #e4eaf2; transform: translateX(-2px); }

/* ── Help button ────────────────────────────────────────────── */
#btnHelp {
    appearance: none;
    -webkit-appearance: none;
    background: #eef3fb;
    color: #093270;
    border: 1px solid #c8d8ee;
    padding: 7px 16px;
    border-radius: 999px;
    font-family: 'News Cycle', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    position: absolute;
    top: 14px;
    right: 14px;
    transition: background 0.15s ease;
    z-index: 10;
    height: 32px;
}

#btnHelp:hover { background: #d6e5f8; }

/* ── Help panel ─────────────────────────────────────────────── */
#helpPage {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 24px 26px;
    max-width: 380px;
    width: calc(100% - 40px);
    z-index: 1000;
    font-size: 0.93rem;
    line-height: 1.65;
    color: #3a3a3a;
    border-top: 4px solid #093270;
}

#helpPage p { margin-bottom: 10px; }

#btnHelpClose {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    margin: 18px auto 0;
    background: linear-gradient(135deg, #093270, #1a5c08);
    color: #ffffff;
    border: none;
    padding: 9px 24px;
    border-radius: 999px;
    font-family: 'News Cycle', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    height: 38px;
}

/* ── CustomAlert dialog ─────────────────────────────────────── */
#dialogoverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

#dialogbox {
    display: none;
    position: fixed;
    width: 560px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    z-index: 1000;
    overflow: hidden;
}

#dialogboxhead {
    background: linear-gradient(135deg, #093270, #1a5c08);
    color: #ffffff;
    padding: 14px 18px;
    font-family: 'News Cycle', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
}

#dialogboxbody {
    padding: 18px 22px;
    font-size: 0.93rem;
    color: #333;
    line-height: 1.65;
}

#dialogboxbody hr {
    border: none;
    border-top: 1px solid #eaecf0;
    margin: 12px 0;
}

#dialogboxfoot {
    padding: 12px 18px;
    background: #f5f7fa;
    text-align: center;
    font-size: 0.78rem;
    color: #888;
    border-top: 1px solid #eee;
}

#btnClose {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.btnHelpClose {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 999px;
    font-family: 'News Cycle', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.btnHelpClose:hover { background: rgba(255,255,255,0.3); }
.raiseText { font-size: 0.78rem; color: #888; }

/* ── Footer ─────────────────────────────────────────────────── */
.ac-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.78rem;
    color: #aaa;
    margin-top: auto;
}

.ac-footer a { color: #093270; }

/* ── Form 4: head1 intro ────────────────────────────────────── */
#head1 {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    background: #f0f5fb;
    border-left: 4px solid #093270;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

/* ── Signature option cards ─────────────────────────────────── */
form[id^="sigForm"] {
    display: flex;
    align-items: stretch;
    border: 2px solid #eaecf0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    background: #ffffff;
}

form[id^="sigForm"]:hover {
    border-color: #093270;
    box-shadow: 0 4px 14px rgba(9,50,112,0.1);
}

div[id^="signaturePick"] {
    flex: 1;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    min-height: 90px;
}

div[id^="signaturePick"] input[type="text"] {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 2.6rem;
    color: #1a1a2e;
    pointer-events: none;
    outline: none;
    padding: 0;
    line-height: 1.4;
    height: auto;
}

/* Adopt submit buttons */
input[id^="sub"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 100px;
    align-self: stretch;
    background: linear-gradient(135deg, #093270, #1a5c08);
    color: #ffffff;
    border: none;
    font-size: 0.9rem;
    font-family: 'News Cycle', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease;
    border-left: 1px solid rgba(255,255,255,0.15);
    letter-spacing: 0.3px;
}

input[id^="sub"]:hover { opacity: 0.88; }

/* ── Disclaimer / popup shading ─────────────────────────────── */
#popupShading {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

#disclaimer {
    background: #ffffff;
    border-radius: 14px;
    padding: 26px 28px 22px;
    max-width: 420px;
    width: calc(100% - 40px);
    font-size: 0.93rem;
    line-height: 1.7;
    color: #3a3a3a;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border-top: 4px solid #093270;
}

#disclaimer p + p { margin-top: 10px; }

#btnDisclaimerClose {
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(135deg, #093270, #1a5c08);
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: 999px;
    font-family: 'News Cycle', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(9,50,112,0.3);
    transition: transform 0.15s ease;
    z-index: 1000;
}

#btnDisclaimerClose:hover { transform: translateY(-1px); }

#btnLeaveForm {
    appearance: none;
    -webkit-appearance: none;
    background: #f0f4f8;
    color: #555;
    border: 1px solid #d0d8e8;
    padding: 11px 22px;
    border-radius: 999px;
    font-family: 'News Cycle', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 1000;
}

#btnLeaveForm:hover { background: #e4eaf2; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    #mainContainer { width: calc(100% - 24px); }
    #fieldContainer { padding: 20px 16px 18px; }
    #dialogbox { width: calc(100% - 40px) !important; left: 20px !important; }
    .ac-header { padding: 16px 18px; gap: 12px; }
    .ac-header img { height: 56px; }
}