/* Service registration layout, scoped to the two registration pages. */
.service-registration { --registration-border: #e3e9f1; --registration-accent: #366cf3; --registration-muted: #64748b; }
.service-registration .registration-card > .card-body { padding: 24px; }
.service-registration #DangKyDichVuInformationsTab > .modal-body { padding: 0; }
.service-registration .kt-wizard-v1__wrapper { min-width: 0; background: transparent; }
.service-registration .kt-wizard-v1 .kt-wizard-v1__wrapper .kt-form { min-width: 0; padding: 0; }
.service-registration .kt-wizard-v1 .kt-wizard-v1__wrapper .kt-form .kt-wizard-v1__content { margin: 0; padding: 0; border: 0; }
.service-registration .kt-heading { margin: 0 0 20px; color: var(--registration-muted); font-size: 14px; line-height: 1.6; }
.service-registration .kt-heading b, .service-registration .kt-heading label { margin-right: 8px; color: #1e293b; font-size: 18px; font-weight: 600; }
.service-registration .kt-wizard-v1 .kt-wizard-v1__wrapper .kt-form .kt-wizard-v1__content .kt-wizard-v1__form { margin-top: 0; }
.service-registration .kt-wizard-v1 .kt-wizard-v1__wrapper .kt-form .kt-wizard-v1__content .registration-section { margin: 0 0 20px; padding: 20px 8px 0; border: 1px solid var(--registration-border); border-radius: 10px; background: #fff; }
.service-registration .registration-section-title { margin-bottom: 20px; }
.service-registration .registration-section-title h5 { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--registration-border); color: #244b80; font-size: 16px; font-weight: 600; }
.service-registration .form-group { min-width: 0; margin-bottom: 20px; }
.service-registration .form-group > label { display: block; margin-bottom: 7px; color: #334155; font-weight: 500; line-height: 1.5; }
.service-registration .registration-address-title { margin: 0 0 14px; }
.service-registration .registration-address-title label { margin: 0; color: #244b80; font-weight: 600; }
.service-registration .form-control { min-height: 42px; border-radius: 6px; }
.service-registration textarea.form-control { min-height: 96px; resize: vertical; }
.service-registration .form-control:focus { border-color: var(--registration-accent); box-shadow: 0 0 0 3px rgba(54, 108, 243, .12); }
.service-registration .form-group .select2-container { width: 100% !important; max-width: 100%; min-width: 0; }
.service-registration .select2-container .select2-selection--single { height: 42px; border: 1px solid #ced4da; border-radius: 6px; }
.service-registration .select2-container .select2-selection--single .select2-selection__rendered { padding: 0 32px 0 12px; line-height: 40px; }
.service-registration .select2-container .select2-selection--single .select2-selection__arrow { height: 40px; right: 6px; }
.service-registration .select2-container--focus .select2-selection--single, .service-registration .select2-container--open .select2-selection--single { border-color: var(--registration-accent); }
.service-registration .select2-results__option { white-space: normal; overflow-wrap: anywhere; }
.service-registration .error, .service-registration .notifi-ds { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.service-registration .registration-document-section { padding: 20px; border: 1px solid var(--registration-border); border-radius: 10px; background: #fff; }
.service-registration .registration-document-section > label { margin-bottom: 14px; color: #244b80; font-size: 16px; font-weight: 600; }
.service-registration .registration-document-section .row { row-gap: 12px; }
.service-registration .registration-document-section .form-group { margin-bottom: 0; }
.service-registration .registration-document-section .input-group { flex-wrap: nowrap; }
.service-registration .registration-document-section .input-group .form-control { min-width: 0; }
.service-registration .registration-document-section .input-group .btn { min-height: 42px; white-space: nowrap; }
.service-registration .registration-document-section .file-block { max-width: 100%; margin: 8px 8px 0 0; padding: 6px 8px; border-radius: 6px; }
.service-registration .registration-document-section .file-block .name { min-width: 0; overflow-wrap: anywhere; }
.service-registration .registration-document-section .file-block > span:first-child { flex-shrink: 0; cursor: pointer; }
.service-registration .registration-document-section table { width: 100%; table-layout: fixed; }
.service-registration .registration-document-section table td { padding: 10px 8px; border-top: 1px solid var(--registration-border); vertical-align: middle; overflow-wrap: anywhere; }
.service-registration .registration-document-section table td.row { margin: 0; border-top: 0; }
.service-registration .registration-document-section table img { max-width: 100%; height: auto; }
.service-registration .registration-document-section + hr { display: none; }
.service-registration .kt-wizard-v1 .kt-wizard-v1__wrapper .kt-form .registration-confirmation { padding: 24px; border: 1px solid var(--registration-border); border-radius: 10px; background: #f8fafc; }
.service-registration .registration-confirmation > .kt-heading { text-align: center; }
.service-registration .registration-review-prompt { max-width: 620px; margin-right: auto; margin-left: auto; color: var(--registration-muted); line-height: 1.6; }
.service-registration .preview-registration { max-width: 100%; min-height: 42px; white-space: normal; }
.service-registration #img-captcha { max-width: 100%; height: auto; border: 1px solid var(--registration-border); background: #fff; }
.service-registration .registration-captcha-input { width: 200px; max-width: 100%; }
.service-registration .registration-captcha-input .form-control { text-align: center; font-size: 20px; letter-spacing: 6px; }
.service-registration .kt-form__actions { flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--registration-border); }
.service-registration .kt-form__actions .btn { min-width: 140px; min-height: 44px; margin: 0 !important; white-space: normal; }

@media (max-width: 767.98px) {
    .service-registration .registration-card > .card-body { padding: 16px; }
    .service-registration .kt-wizard-v1 .kt-wizard-v1__wrapper .kt-form .kt-wizard-v1__content .registration-section { padding: 16px 0 0; }
    .service-registration .registration-document-section { padding: 16px 12px; }
    .service-registration .kt-wizard-v1 .kt-wizard-v1__wrapper .kt-form .registration-confirmation { padding: 20px 12px; }
}

@media (max-width: 575.98px) {
    .service-registration .registration-card > .card-body { padding: 12px; }
    .service-registration .form-group { margin-bottom: 16px; }
    .service-registration .kt-form__actions .btn { flex: 1 1 100%; min-width: 0; }
    .service-registration .registration-document-section table td { padding: 8px 4px; }
}

#registrationPreviewModal .registration-preview-body,
#modalXemChiTietThayDoi .registration-preview-body {
    padding: 24px;
    background: #eef0f3;
}

.registration-preview {
    max-width: 1040px;
    margin: 0 auto;
    padding: 30px 44px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    color: #000;
    font-family: 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.4;
}

.registration-preview-header {
    display: grid;
    grid-template-columns: 45fr 40fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.registration-preview-motto { font-size: 15px; text-decoration: underline; }
.registration-preview-title { margin: 10px 0 4px; color: #b30000; font-size: 21px; font-weight: bold; text-align: center; }
.registration-preview-subtitle { margin-bottom: 8px; color: #333; font-size: 16px; font-weight: bold; text-align: center; }
.registration-preview-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-bottom: 12px; font-size: 15px; font-style: italic; text-align: center; }
.registration-preview-recipient { margin-bottom: 14px; font-size: 16px; font-weight: bold; text-align: center; }
.registration-preview h3 { margin: 14px 0 6px; padding-bottom: 2px; border-bottom: 1px solid #002b66; color: #002b66; font-size: 17px; font-weight: bold; line-height: 1.4; }

.registration-preview-info {
    width: 100%;
    margin-bottom: 8px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px;
}

.registration-preview-label-column { width: 28%; }
.registration-preview-value-column { width: 32%; }
.registration-preview-secondary-label-column { width: 18%; }
.registration-preview-info th, .registration-preview-info td { padding: 4px 5px; border: 0; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.registration-preview-info th { font-weight: bold; }
.registration-preview-info [data-preview-field] { white-space: pre-wrap; }
.registration-preview-customer-types { display: flex; flex-wrap: wrap; gap: 4px 32px; }

.registration-preview-attachments {
    width: 100%;
    margin: 6px 0 10px;
    border: 1px solid #000;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px;
}

.registration-preview-number-column { width: 8%; }
.registration-preview-document-column { width: 50%; }
.registration-preview-status-column { width: 24%; }
.registration-preview-attachments th, .registration-preview-attachments td { border: 1px solid #000; padding: 5px 8px; vertical-align: middle; overflow-wrap: anywhere; }
.registration-preview-attachments th { background: #f2f2f2; text-align: center; font-weight: bold; }
.registration-preview-attachments td:first-child, .registration-preview-attachments td:nth-child(3), .registration-preview-attachments td:last-child { text-align: center; }
.registration-preview-attachments td:nth-child(3) { font-weight: bold; }
#modalXemChiTietThayDoi .registration-preview-attachments td:nth-child(3) { font-weight: normal; text-align: left; }
.registration-preview-attachments td:last-child { font-style: italic; }
.registration-preview-attachments td.highlight-new {
    color: #0044cc;
    font-weight: bold;
    background-color: #f7faff;
}
.registration-preview-attachments ul { margin: 4px 0 0; padding-left: 18px; }
.registration-preview-attachments ul:empty { display: none; }
.registration-preview-reason {
    margin: 8px 0 12px;
    padding: 10px 14px;
    background-color: #fcfcfc;
    border-left: 3px solid #002b66;
    font-size: 15.5px;
    line-height: 1.5;
}
.registration-preview-commitment { margin: 8px 0 12px; font-size: 15.5px; line-height: 1.45; text-align: justify; }

.registration-preview-signatures {
    display: grid;
    grid-template-columns: 44fr 56fr;
    margin: 20px 0 24px;
    font-size: 16px;
    text-align: center;
}

.registration-preview-signatures > div { min-width: 0; }
.registration-preview-signature-space { height: 160px; }
.registration-preview-signatures p { margin: 0; font-weight: bold; white-space: pre-wrap; overflow-wrap: anywhere; }
.registration-preview-notes { margin: 0; padding: 8px 0 0; border-top: 1px solid #000; list-style: none; font-size: 14px; font-style: italic; }
.registration-preview-notes li { position: relative; padding-left: 15px; }
.registration-preview-notes li::before { position: absolute; left: 0; content: '-'; }

@media (max-width: 767.98px) {
    #registrationPreviewModal .registration-preview-body { padding: 12px; }
    .registration-preview { padding: 24px 20px; }
    .registration-preview-header { grid-template-columns: 1fr; gap: 12px; }
    .registration-preview-info, .registration-preview-info tbody, .registration-preview-info tr, .registration-preview-info th, .registration-preview-info td { display: block; width: 100%; }
    .registration-preview-info colgroup { display: none; }
    .registration-preview-info th { padding-bottom: 0; }
    .registration-preview-info td { padding-top: 0; padding-bottom: 8px; }
    .registration-preview-attachments { min-width: 540px; }
    .registration-preview-signature-space { height: 100px; }
    .registration-preview-meta-divider { display: none; }
}

@media (max-width: 399.98px) {
    .registration-preview { padding: 20px 12px; }
    .registration-preview-signatures { gap: 12px; }
}
