.registration-container,
.review-container {
    max-width: 1100px;
    margin: 0 auto;
}

.registration-header,
.review-header {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-left: 4px solid #0038a8;
    padding: 24px 28px;
    margin-bottom: 25px;
}

.registration-header h1,
.review-header h1 {
    margin: 0 0 7px;
    color: #172554;
    font-size: 27px;
    font-weight: 700;
}

.registration-header p,
.review-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.application-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 7px 13px;
    background: #eaf2ff;
    border: 1px solid #cbdcf8;
    color: #0038a8;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.form-section,
.review-section {
    background: #fff;
    border: 1px solid #dbe3ef;
    margin-bottom: 22px;
}

.form-section-header {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 15px 22px;
    background: #f8fafc;
    border-bottom: 1px solid #dbe3ef;
}

.form-section-marker {
    width: 4px;
    height: 25px;
    background: #0038a8;
    margin-right: 12px;
    flex-shrink: 0;
}

.form-section-header h2 {
    margin: 0;
    color: #172554;
    font-size: 18px;
    font-weight: 700;
}

.form-section-body {
    padding: 25px;
}

.form-label {
    display: block;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
}

.required {
    color: #ce1126;
}

.optional {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.form-control,
.form-select {
    min-height: 43px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #1e293b;
    font-size: 14px;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: #0038a8;
    box-shadow: 0 0 0 3px rgba(0, 56, 168, .10);
}

.form-control[readonly] {
    background: #f1f5f9;
    color: #475569;
    cursor: not-allowed;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-text {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.phone-error,
.document-error {
    display: none;
    margin-top: 7px;
    color: #b42318;
    font-size: 12px;
    font-weight: 600;
}

.registration-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 4px solid #ce1126;
    color: #881337;
    padding: 14px 17px;
    margin-bottom: 22px;
    font-size: 14px;
}

.form-actions,
.review-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #dbe3ef;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.form-actions-note {
    color: #64748b;
    font-size: 12px;
}

.btn-government,
.btn-submit {
    background: #0038a8;
    border: 1px solid #0038a8;
    color: #fff;
    min-height: 43px;
    padding: 9px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.btn-government:hover,
.btn-submit:hover {
    background: #002b7f;
    border-color: #002b7f;
    color: #fff;
}

.btn-government:disabled,
.btn-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.btn-back {
    min-height: 43px;
    padding: 9px 20px;
    background: #fff;
    border: 1px solid #94a3b8;
    color: #334155;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.btn-back:hover {
    background: #f8fafc;
    border-color: #64748b;
}

.document-upload-box {
    border: 1px dashed #94a3b8;
    background: #f8fafc;
    border-radius: 5px;
    padding: 20px;
}

.document-upload-box .form-control {
    background: #fff;
}

.document-file-info {
    display: none;
    margin-top: 12px;
    padding: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    color: #1e3a8a;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.document-file-info strong {
    display: block;
    margin-bottom: 4px;
}

.document-guidelines {
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.review-section-header {
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #dbe3ef;
    color: #172554;
    font-size: 16px;
    font-weight: 700;
}

.review-section-body {
    padding: 5px 20px;
}

.review-row {
    display: flex;
    align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px solid #eef2f7;
}

.review-row:last-child {
    border-bottom: none;
}

.review-label {
    width: 35%;
    flex-shrink: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.review-value {
    width: 65%;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.review-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #0038a8;
    padding: 15px 18px;
    margin-bottom: 20px;
    color: #1e3a8a;
    font-size: 13px;
    line-height: 1.6;
}

.review-document-note {
    color: #64748b;
    font-size: 12px;
    margin-top: 5px;
}

@media (max-width: 767px) {
    .registration-header,
    .review-header {
        padding: 20px;
    }

    .registration-header h1,
    .review-header h1 {
        font-size: 23px;
    }

    .form-section-body {
        padding: 20px;
    }

    .form-actions,
    .review-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions-note {
        text-align: center;
    }

    .form-actions button,
    .review-actions button {
        width: 100%;
    }

    .review-row {
        display: block;
    }

    .review-label,
    .review-value {
        width: 100%;
    }

    .review-label {
        margin-bottom: 4px;
    }
}

/* Match the applicant Home workspace while keeping the existing form flow. */
.registration-container, .review-container { max-width: none; }
.registration-header, .review-header { background: transparent; border: 0; padding: 0 0 4px; margin-bottom: 26px; }
.registration-header h1, .review-header h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -1px; color: var(--navy); }
.registration-header p, .review-header p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.application-badge { border: 0; border-radius: 20px; background: #eaf1ff; padding: 6px 11px; font-size: 9px; letter-spacing: .7px; }
.form-section, .review-section { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px #243b5304; }
.form-section-header { background: #f8fafd; border-bottom-color: var(--border); padding: 18px 24px; }
.form-section-header h2 { font-size: 15px; color: var(--navy); font-weight: 800; }
.form-section-body { padding: 24px; }
.form-label { font-size: 12px; font-weight: 700; color: #405574; }
.form-control, .form-select { border-color: #dce4ef; border-radius: 7px; min-height: 45px; font-size: 13px; }
.form-actions, .review-actions { border-radius: 10px; border-color: var(--border); }
.btn-government, .btn-submit, .btn-back { border-radius: 7px; font-family: inherit; font-size: 12px; font-weight: 750; }
.registration-error { border-radius: 8px; }
.registration-breadcrumb { margin-bottom: 25px; }
@media (max-width: 640px) { .form-section-header { padding: 16px; } .form-section-body { padding: 20px 16px; } .form-actions, .review-actions { padding: 18px 16px; } }

.registration-header .required-fields-reminder { margin-top: 10px; font-size: 12px; color: var(--muted); }
.form-actions { justify-content: flex-end; }

html body .inline-applicant-forms-new_registration-1.inline-applicant-forms-new_registration-1 { display:none }

.form-actions .application-cancel, .review-actions .application-cancel { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 640px) { .form-actions .application-cancel, .review-actions .application-cancel { width: 100%; box-sizing: border-box; } }
