/* ── Form header ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700;800&display=swap');
.ssp-form-header { text-align: center; margin-bottom: 2rem; }
.ssp-form-heading { font-size: 2.1875em; font-weight: 800; color: #001C28; margin: 0 0 1rem; }
.ssp-form-subheading { font-size: 1em; color: #374151; line-height: 1.6; margin: 0; }

/* ── Outer wrapper ───────────────────────────────────────────── */
.ssp-form-wrap { padding: 3.75rem 0; max-width: 613px; margin: 0 auto; }

/* ── Card ────────────────────────────────────────────────────── */
.ssp-card {
    max-width: 100%;
    margin: 0 auto;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 2.25rem 2.5rem;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    box-sizing: border-box;
}

/* ── Two-column row (email/notes step 2) ───────────────────── */
.ssp-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.ssp-col { flex: 1; min-width: 0; }

/* ── Label row ───────────────────────────────────────────────── */
.ssp-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.625rem; }
.ssp-label-row .ssp-label { margin-bottom: 0; }
.ssp-per-trainee-hint { font-size: 0.688em; color: #9ca3af; font-style: italic; }

/* ── Labels ──────────────────────────────────────────────────── */
.ssp-label { display: block; font-size: 0.875em; font-weight: 500; color: #111827; margin-bottom: 0.625rem; }
.ssp-required { color: #b91c1c; }

/* ── Select wrapper ──────────────────────────────────────────── */
.ssp-select-wrap { position: relative; }
.ssp-select-wrap select {
    width: 100%;
    padding: 0.875rem 2.75rem 0.875rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9375em;
    color: #111827;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}
.ssp-select-wrap select:focus { border-color: #6b7280; }
.ssp-select-wrap:has(input)::after { display: none; }
.ssp-select-wrap::after {
    content: '';
    position: absolute;
    right: 1rem; top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6b7280;
    pointer-events: none;
}

/* ── Text inputs ─────────────────────────────────────────────── */
.ssp-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375em;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    line-height: normal;
}
.ssp-input:focus { border-color: #6b7280; }
/* Hide number input spinners */
.ssp-input[type=number]::-webkit-inner-spin-button,
.ssp-input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ssp-input[type=number] { -moz-appearance: textfield; }

/* ── Summary ─────────────────────────────────────────────────── */
.ssp-summary { margin: 1.5rem 0; }
.ssp-summary-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.ssp-summary-label { font-size: 0.875em; color: #374151; font-weight: 400; }
.ssp-summary-value { font-size: 0.875em; font-weight: 700; color: #001C28; }
.ssp-summary-total { font-size: 1.0625em; font-weight: 800; }
.ssp-tax-note { text-align: right; font-size: 0.688em; color: #6b7280; font-style: italic; margin: -2px 0 6px; }

/* ── Trainee coverage hint (inline in total row) ───────────────── */
#ssp-live-total-val.ssp-coverage { font-size: 0.875em; font-weight: 400; color: #374151; }
#ssp-live-total-val.ssp-coverage strong { font-weight: 800; }

/* ── Schedule pills ──────────────────────────────────────────── */
.ssp-field-group { margin-bottom: 1.5rem; }
.ssp-schedule-options { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.25rem; }
.ssp-schedule-option {
    display: flex; align-items: center;
    background: #fff; border: 1.5px solid #d1d5db;
    border-radius: 8px; padding: 0.5625rem 1rem; cursor: pointer;
    font-size: 0.8125em; font-weight: 500; user-select: none;
    transition: border-color 0.15s, background 0.15s;
}
.ssp-schedule-option input[type=radio] { display: none; }
.ssp-schedule-option:has(input:checked) { border-color: #b04030; background: #fff7ed; color: #92400e; }

/* ── Gateway tabs ────────────────────────────────────────────── */
.ssp-gateway-tabs { display: flex; background: #e5e7eb; border-radius: 10px; margin-bottom: 1.5rem; position: relative; }
.ssp-gtab {
    flex: 1; padding: 0.875rem;
    border: none; border-radius: 8px;
    font-size: 0.9375em; font-weight: 700;
    cursor: pointer; background: transparent;
    color: #6b7280;
    transition: color 0.3s;
    position: relative; z-index: 1;
}
.ssp-gtab:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ssp-gtab:last-child  { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ssp-gtab:hover, .ssp-gtab:focus { background: none; color: initial; }
.ssp-gtab.active, .ssp-gtab.active:hover, .ssp-gtab.active:focus { color: #fff; }
.ssp-gateway-tabs::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    background: #001C28;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
.ssp-gateway-tabs.active-right::before { transform: translateX(100%); }

/* ── Primary button ──────────────────────────────────────────── */
.ssp-btn-primary {
    width: 100%; padding: 0.8rem;
    background: #b04030; color: #fff;
    border: none; border-radius: 10px;
    font-size: 1em; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
    display: block; text-align: center;
}
.ssp-btn-primary:hover, .ssp-btn-primary:focus, .ssp-btn-primary:active { background: #963528; }

/* ── Go Back ─────────────────────────────────────────────────── */
.ssp-btn-goback {
    display: block; width: 100%; margin-top: 1rem;
    background: none !important; border: none; box-shadow: none !important;
    font-size: 0.875em; font-weight: 500; color: #374151;
    cursor: pointer; text-align: center; padding: 0;
    transition: color 0.15s;
}
.ssp-btn-goback:hover,
.ssp-btn-goback:focus,
.ssp-btn-goback:active { background: none !important; box-shadow: none !important; color: #b04030; outline: none; }

/* ── Bank details ────────────────────────────────────────────── */
.ssp-divider { border: none; border-top: 1.5px solid #d1d5db; margin: 0 0 1.5rem; }
.ssp-bank-section { margin: 0 0 1.5rem; }
.ssp-bank-heading { font-size: 1em; font-weight: 800; color: #001C28; margin: 0 0 1.25rem; }
.ssp-bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.ssp-bank-item { margin-bottom: 1.125rem; }
.ssp-bank-item-full { grid-column: 1 / -1; }
.ssp-bank-item-label { font-size: 0.875em; font-weight: 700; color: #001C28; margin: 0 0 0.25rem; }
.ssp-bank-item-value { font-size: 0.875em; color: #374151; font-weight: 400; margin: 0; }
.ssp-bank-item-value a { color: #1d4ed8; }

.ssp-notice { color: #6b7280; font-style: italic; font-size: 0.8125em; }
.ssp-form-error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #b91c1c;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 0.875em;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

input#ssp-custom-amount {
    padding: 0.875rem 2.75rem 0.875rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9375em;
    color: #111827;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ssp-form-wrap { padding: 2rem 1rem; }
    .ssp-card { padding: 1.5rem 1.25rem; border-radius: 8px; }
    .ssp-form-heading { font-size: 1.5625em; }
    .ssp-form-subheading { font-size: 0.875em; }
    .ssp-row { flex-direction: column; gap: 0; margin-bottom: 0; }
    .ssp-col { margin-bottom: 1.25rem; }
    .ssp-label-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .ssp-bank-grid { grid-template-columns: 1fr; }
    .ssp-summary-total { font-size: 1.0625em; }
    .ssp-gtab { font-size: 0.8125em; padding: 0.75rem 0.5rem; }
    .ssp-schedule-option { flex: 1; justify-content: center; }
    .ssp-btn-primary { font-size: 0.9375em; padding: 1rem; }
}
