:root {
    --ink:       #0f1923;
    --ink-mid:   #3a4a5c;
    --ink-light: #6b7c8f;
    --rule:      #dde3ea;
    --surface:   #f5f7fa;
    --white:     #ffffff;
    --gold:      #b08d57;
    --gold-lt:   #e8d9bc;
    --blue:      #1b4f8a;
    --blue-lt:   #e8eef7;
    --red:       #c0392b;
}




/* ── MASTHEAD ── */
.masthead {
    background: var(--blue);
    padding: 0;
    position: relative;
    overflow: hidden;
}
.masthead::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(255,255,255,0.025) 60px,
            rgba(255,255,255,0.025) 61px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 60px,
            rgba(255,255,255,0.025) 60px,
            rgba(255,255,255,0.025) 61px
        );
}
.masthead-inner {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 32px 42px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
}
.masthead-crest {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}
.masthead-crest i { color: var(--white); font-size: 26px; }
.masthead-text {
    text-align: center;
}
.masthead-sup {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-lt);
    margin-bottom: 6px;
}
.masthead-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 8px;
}
.masthead-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
}
.gold-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 60%, transparent 100%);
}

/* ── STEPPER ── */
.stepper-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 50;
}
.stepper {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: stretch;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    flex: 1;
    position: relative;
    cursor: default;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.step-item.active { opacity: 1; }
.step-item.done { opacity: 0.65; }
.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-light);
    flex-shrink: 0;
    transition: all 0.3s;
}
.step-item.active .step-num {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
}
.step-item.done .step-num {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}
.step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-mid);
    white-space: nowrap;
    display: none;
}
@media(min-width: 600px) { .step-label { display: block; } }
.step-connector {
    flex: 1;
    height: 1px;
    background: var(--rule);
    margin: 0 6px;
    align-self: center;
}
.step-connector:last-child { display: none; }

/* ── LAYOUT ── */
.page-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 32px 80px;
}

/* ── CARD ── */
.card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 2px;
    overflow: hidden;
    animation: cardIn 0.35s ease;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card-header {
    padding: 28px 36px 24px;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    gap: 14px;
}
.card-header-icon {
    width: 40px;
    height: 40px;
    background: var(--blue-lt);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.card-header-icon i { color: var(--blue); font-size: 16px; }
.card-header-text {}
.card-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}
.card-header p {
    font-size: 13px;
    color: var(--ink-light);
    margin-top: 2px;
}
.card-body { padding: 32px 36px; }

/* ── FORM ELEMENTS ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media(max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 24px; }
.form-group:last-child { margin-bottom: 0; }

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ink-mid);
    margin-bottom: 8px;
}
label.required::after {
    content: " *";
    color: var(--red);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--rule);
    border-radius: 2px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7c8f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27,79,138,0.1);
}
input::placeholder, textarea::placeholder { color: var(--ink-light); }
textarea { min-height: 110px; resize: vertical; }

/* ── RADIO GROUP ── */
.radio-group { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1.5px solid var(--rule);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
}
.radio-option:hover { border-color: var(--blue); background: var(--blue-lt); }
.radio-option input[type="radio"] { display: none; }
.radio-option .radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--rule);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.radio-option input[type="radio"]:checked ~ .radio-label { color: var(--blue); font-weight: 500; }
.radio-option.selected {
    border-color: var(--blue);
    background: var(--blue-lt);
}
.radio-option.selected .radio-dot {
    border-color: var(--blue);
    background: var(--blue);
}
.radio-option.selected .radio-dot::after {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--white);
    border-radius: 50%;
}
.radio-label { font-size: 14px; color: var(--ink-mid); flex: 1; }
.radio-option.selected .radio-label { color: var(--blue); font-weight: 500; }

/* Inline radio with text input */
.radio-option-with-input {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.radio-option-with-input input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 6px 10px;
    font-size: 13px;
}

/* ── FILE UPLOAD ── */
.upload-zone {
    border: 1.5px dashed var(--rule);
    border-radius: 2px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--surface);
    position: relative;
}
.upload-zone:hover, .upload-zone.has-file {
    border-color: var(--blue);
    background: var(--blue-lt);
}
.upload-zone.has-file { border-style: solid; }
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.upload-icon { font-size: 22px; color: var(--ink-light); margin-bottom: 8px; transition: color 0.2s; }
.upload-zone:hover .upload-icon, .upload-zone.has-file .upload-icon { color: var(--blue); }
.upload-text { font-size: 13px; color: var(--ink-mid); font-weight: 500; }
.upload-hint { font-size: 11px; color: var(--ink-light); margin-top: 4px; }
.upload-filename {
    display: none;
    margin-top: 8px;
    font-size: 12px;
    color: var(--blue);
    font-weight: 500;
    background: rgba(27,79,138,0.08);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}
.upload-filename.visible { display: inline-block; }

/* ── BANK TABLE ── */
.bank-panel {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}
.bank-panel-header {
    background: var(--ink);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bank-panel-header i { color: var(--gold); font-size: 13px; }
.bank-panel-header span { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--white); }
.bank-row {
    display: flex;
    border-bottom: 1px solid var(--rule);
}
.bank-row:last-child { border-bottom: none; }
.bank-key {
    width: 180px;
    flex-shrink: 0;
    padding: 11px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--ink-mid);
    background: rgba(0,0,0,0.02);
    border-right: 1px solid var(--rule);
}
.bank-val {
    padding: 11px 18px;
    font-size: 13px;
    color: var(--ink);
    font-weight: 500;
    flex: 1;
}

/* ── AMOUNT BADGE ── */
.amount-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-lt);
    border: 1px solid var(--gold);
    padding: 8px 16px;
    border-radius: 2px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--ink);
}
.amount-notice strong { color: var(--gold); font-size: 16px; }

/* ── WORD COUNT ── */
.word-counter {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}
.word-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--ink-light);
    background: var(--surface);
    border: 1px solid var(--rule);
    padding: 2px 8px;
    border-radius: 20px;
}
.word-badge.over { color: var(--red); border-color: var(--red); }

/* ── ACTIONS ── */
.card-footer {
    padding: 20px 36px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
}
.signout{
    width: fit-content !important;
    position:absolute; 
    top: 10px; 
    right: 10px;
     
}
.btnsign{
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    background: var(--blue);
    color: var(--white);
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border: none;
    border-radius: 2px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}
.btn-primary {
    background: var(--blue);
    color: var(--white);
}
.btn-primary:hover { background: #153e6e; }
.btn-secondary {
    background: transparent;
    color: var(--ink-mid);
    border: 1.5px solid var(--rule);
}
.btn-secondary:hover { border-color: var(--ink-mid); background: var(--surface); }
.btn-submit {
    background: var(--gold);
    color: var(--white);
}
.btn-submit:hover { background: #9a7843; }

/* ── HIDDEN ── */
.hidden { display: none !important; }

/* ── DIVIDER ── */
.section-divider {
    height: 1px;
    background: var(--rule);
    margin: 28px 0;
}

/* ── FOOTER ── */
.page-footer {
    text-align: center;
    padding: 24px 32px 40px;
    font-size: 12px;
    color: var(--ink-light);
    border-top: 1px solid var(--rule);
    max-width: 860px;
    margin: 0 auto;
}
.page-footer a { color: var(--blue); text-decoration: none; }

/* ── RESPONSIVE ── */
@media(max-width: 600px) {
    .signout { top : 200px !important; 
        left:10rem !important;}
}
@media(max-width: 600px) {
    .masthead-inner { padding: 32px 20px; }
    .page-body { padding: 24px 16px 60px; }
    .card-body { padding: 24px 20px; }
    .card-header { padding: 20px; }
    .card-footer { padding: 16px 20px; flex-direction: column; gap: 10px; }
    .btn { width: 100%; justify-content: center; }
    .stepper { padding: 0 16px; }
    .bank-key { width: 120px; }
}