.page-container {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.payment-method-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.payment-method-banner--card {
    border-color: #cbd5e1;
    background: #fff;
}

.payment-method-banner--bank {
    border-color: #cbd5e1;
    background: #fff;
}

.payment-method-banner__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e3a5f;
    color: #fff;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.card-number-wrap {
    position: relative;
}

.card-number-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.08em;
    padding-right: 3.25rem;
}

.card-brand-badge {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.35rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e3a5f;
    pointer-events: none;
    font-size: 1.55rem;
    line-height: 1;
}

.card-brand-badge.is-empty {
    display: none;
}

.card-brand-badge.is-visa {
    color: #1a1f71;
    background: #eef0ff;
    border-color: #c7ccec;
}

.card-brand-badge.is-mastercard {
    color: #eb001b;
    background: #fff1f1;
    border-color: #f5c2c7;
}

.card-brand-badge.is-amex {
    color: #006fcf;
    background: #eef6ff;
    border-color: #b6d4fe;
}

.card-brand-badge.is-troy {
    color: #0f766e;
    background: #ecfdf5;
    border-color: #99f6e4;
}

.card-brand-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.65rem;
}

.card-brand-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 1.85rem;
    border-radius: 0.4rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 1.65rem;
    line-height: 1;
    opacity: 0.55;
    transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.card-brand-chip.is-active {
    opacity: 1;
    border-color: #1e3a5f;
    background: #fff;
    color: #1e3a5f;
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.08);
}

.card-brand-chip[data-brand="visa"].is-active {
    color: #1a1f71;
}

.card-brand-chip[data-brand="mastercard"].is-active {
    color: #eb001b;
}

.card-brand-chip[data-brand="amex"].is-active {
    color: #006fcf;
}

.form-textarea {
    min-height: 7rem;
    resize: vertical;
}

.form-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .form-section {
        padding: 2rem;
    }
}

.type-card {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.type-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.type-card.selected {
    border-color: #1e3a5f;
    background: #f8fafc;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 95, 0.1);
}

.type-card input[type="radio"] {
    accent-color: #1e3a5f;
    width: 1.25rem;
    height: 1.25rem;
}

.info-box {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #475569;
}

.warning-box {
    border: 1px solid #fde68a;
    background: #fffbeb;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #92400e;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-primary:hover {
    background: #152a45;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.field-error {
    font-size: 0.8125rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

.char-counter {
    font-size: 0.75rem;
    color: #64748b;
    text-align: right;
    margin-top: 0.25rem;
}

.char-counter.over-limit {
    color: #dc2626;
    font-weight: 600;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e2e8f0;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-align: center;
}

.step-indicator.active .step-circle {
    background-color: #1e3a5f;
    color: #fff;
    box-shadow: 0 0 0 2px #1e3a5f;
}

.step-indicator.active .step-label {
    color: #1e3a5f;
    font-weight: 600;
}

.step-indicator.completed .step-circle {
    background-color: #1e3a5f;
    color: #fff;
    box-shadow: 0 0 0 2px #1e3a5f;
}

.step-line {
    flex: auto;
    height: 2px;
    background-color: #e2e8f0;
    margin: 0 -1rem;
    position: relative;
    top: -1.25rem;
    z-index: 0;
}

/* intl-tel-input override */
.iti {
    width: 100%;
}

.iti__country-list {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.875rem;
}

/* Tom Select override */
.ts-wrapper.form-select {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.ts-control {
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #fff;
    box-shadow: none;
    min-height: 46px;
    display: flex;
    align-items: center;
}

.ts-control.focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.ts-control input {
    font-size: 0.9375rem;
}

.ts-wrapper.single .ts-control:after {
    border-color: #64748b transparent transparent transparent;
    right: 1rem;
}

.ts-dropdown {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.9375rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 4px;
}

.ts-dropdown-content {
    max-height: 280px;
}

.ts-dropdown .option {
    padding: 0.625rem 0.875rem;
}

.ts-dropdown .active {
    background-color: #f1f5f9;
    color: #1e293b;
}
