

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

body {
    background-color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

form.main-container {
    display: block;
    width: 100%;
    max-width: 672px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.app-header {
    background-color: #0f172a;
    padding: 24px;
    text-align: center;
    color: #ffffff;
}

.bank-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bank-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.main-content {
    padding: 24px;
}

.security-alert-banner {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: 6px;
    padding: 14px;
    font-size: 0.825rem;
    color: #991b1b;
    line-height: 1.4;
    margin-bottom: 8px;
}

.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 448px;
    margin: 24px auto 0 auto;
    position: relative;
}

.progress-track {
    position: absolute;
    height: 2px;
    background-color: #334155;
    width: 100%;
    top: 12px;
    left: 0;
    z-index: 1;
}

.progress-fill {
    position: absolute;
    height: 2px;
    background-color: #10b981;
    width: 0%;
    top: 12px;
    left: 0;
    z-index: 1;
    transition: width 0.3s ease;
}

.step-dot {
    position: relative;
    z-index: 2;
    width: 28px;
    height: 28px;
    background-color: #1e293b;
    color: #94a3b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    outline: 4px solid #0f172a;
}

.step-dot.active {
    background-color: #10b981;
    color: #ffffff;
}

.account-banner {
    margin-bottom: 24px;
    padding: 12px;
    background-color: #f1f5f9;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.step-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-panel.hidden {
    display: none !important;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.input-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

.form-input:required {
    border-left: 3px solid #0f172a;
}

.form-input:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.2);
}

.currency-wrapper {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    top: 8px;
    color: #64748b;
    font-weight: 700;
}

.currency-input {
    padding-left: 28px;
}

.security-input {
    letter-spacing: 0.25em;
    text-align: center;
    font-family: monospace;
    font-size: 1.125rem;
}

.breakdown-card {
    background-color: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-card .breakdown-row {
    display: flex;
    justify-content: space-between;
    color: #475569;
}

.total-row {
    font-weight: 700;
    color: #0f172a;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    margin-top: 8px;
    font-size: 1rem;
}

.alert-box-info {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 12px;
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.4;
}

.alert-box {
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 12px;
    font-size: 0.75rem;
    margin-top: 12px;
}

.rep-timer-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.825rem;
    color: #1e40af;
    margin-top: 8px;
}

.mini-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #1e40af;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-screen {
    text-align: center;
    padding: 32px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #0f172a;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.sub-loading-text {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.success-header {
    text-align: center;
    margin-bottom: 16px;
}

.success-badge {
    width: 48px;
    height: 48px;
    background-color: #d1fae5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto;
}

.success-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 8px;
}

.success-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}

.receipt-card {
    border: 2px dashed #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.75rem;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.receipt-header {
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
}

.receipt-card .receipt-row {
    display: flex;
    justify-content: space-between;
}

.receipt-card .receipt-row .label {
    color: #64748b;
}

.receipt-card .receipt-row .val {
    color: #0f172a;
}

.total-line {
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 0.875rem;
}

.btn {
    width: 100%;
    font-weight: 700;
    padding: 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
    text-align: center;
}

.btn-primary { background-color: #0f172a; color: #ffffff; }
.btn-primary:hover { background-color: #1e293b; }
.btn-primary:disabled { background-color: #cbd5e1; color: #94a3b8; cursor: not-allowed; }

.btn-secondary { background-color: #e2e8f0; color: #334155; width: 33.333%; }
.btn-secondary:hover { background-color: #cbd5e1; }

.btn-success { background-color: #059669; color: #ffffff; }
.btn-success:hover { background-color: #047857; }

.btn-warn { background-color: #d97706; color: #ffffff; margin-top: 8px; border-bottom: 3px solid #b45309; }
.btn-warn:hover { background-color: #b45309; }
.btn-warn:disabled { background-color: #cbd5e1; color: #94a3b8; border-bottom: none; cursor: not-allowed; }

.btn-group {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.btn-flexible { width: 66.666%; }

.font-mono { font-family: monospace; }
.font-bold { font-weight: 700; }
.mono-bold { font-family: monospace; font-weight: 700; color: #0f172a; }
.bold-text { font-weight: 700; color: #0f172a; }
.error-text { color: #dc2626; font-size: 0.75rem; font-weight: 600; }
.success-color { color: #047857; }
.mt-4 { margin-top: 16px; }
.w-full { width: 100%; }
.mb-1 { margin-bottom: 4px; }
.mb-3 { margin-bottom: 12px; }
.text-blue-950 { color: #0369a1; }
.italic { font-style: italic; }

.animate-fade {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
