* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Plus Jakarta Sans", sans-serif;
    background:
        linear-gradient(
            rgba(1, 18, 38, 0.82),
            rgba(1, 18, 38, 0.52)
        ),
        url("../../img/isp.webp") center/cover fixed no-repeat;
    color: #111827;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    pointer-events: none;
    z-index: -1;
}

/* =========================================================
   MAIN WRAPPER
========================================================= */

.registration-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* =========================================================
   FORM CARD
========================================================= */

.registration-card {
    width: 100%;
    max-width: 560px;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

[data-bs-theme="dark"] .registration-card {
    background: #101923;
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   FORM HEADER
========================================================= */

.form-header {
    width: 100%;
    padding: 22px 24px 15px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

[data-bs-theme="dark"] .form-header {
    border-color: #263342;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.logo-wrapper img {
    max-width: 145px;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.system-name {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin: 0;
}

[data-bs-theme="dark"] .system-name {
    color: #94a3b8;
}

.theme-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #dbe1e8;
    background: #f8fafc;
    color: #334155;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
}

[data-bs-theme="dark"] .theme-toggle {
    background: #172331;
    color: #f8fafc;
    border-color: #344455;
}

/* =========================================================
   STEPS
========================================================= */

.steps {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 17px 20px 10px;
}

.step {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    font-size: 11px;
}

.step.active {
    color: #0b4fa3;
}

.step.active .step-number {
    background: #0b4fa3;
    color: #fff;
}

.step.completed {
    color: #16a34a;
}

.step.completed .step-number {
    background: #16a34a;
    color: #fff;
}

.step-line {
    width: 25px;
    height: 2px;
    background: #e2e8f0;
}

[data-bs-theme="dark"] .step-number {
    background: #263342;
    color: #94a3b8;
}

[data-bs-theme="dark"] .step-line {
    background: #263342;
}

/* =========================================================
   FORM BODY
========================================================= */

.form-body {
    width: 100%;
    padding: 15px 24px 24px;
}

.stage {
    display: none;
    width: 100%;
}

.stage.active {
    display: block;
}

.stage-title {
    font-size: 21px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 5px;
    color: #0f172a;
}

[data-bs-theme="dark"] .stage-title {
    color: #f8fafc;
}

.stage-description {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    margin-top: 0;
    margin-bottom: 20px;
}

[data-bs-theme="dark"] .stage-description {
    color: #94a3b8;
}

/* =========================================================
   FORM GROUPS
========================================================= */

.form-group {
    width: 100%;
    margin-bottom: 16px;
}

.form-label {
    display: block;
    width: 100%;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
    color: #334155;
}

[data-bs-theme="dark"] .form-label {
    color: #cbd5e1;
}

.required-star {
    color: #dc2626;
    font-weight: 800;
}

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

.form-control,
.form-select {
    width: 100%;
    min-height: 45px;
    border-radius: 9px;
    border: 1px solid #d7dee7;
    padding: 10px 12px;
    font-size: 13px;
    background: #fff;
    color: #111827;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #0b4fa3;
    box-shadow: 0 0 0 3px rgba(11, 79, 163, 0.10) !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: #172331;
    color: #f8fafc;
    border-color: #344455;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #718096;
}

/* =========================================================
   PHONE
========================================================= */

.iti {
    width: 100%;
}

.iti input {
    width: 100% !important;
}

.iti__country-list {
    z-index: 9999;
}

/* =========================================================
   DOMAIN OPTIONS
========================================================= */

.domain-option {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}

.domain-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.domain-option label {
    display: block;
    width: 100%;
    padding: 15px;
    border: 1px solid #d9e0e8;
    border-radius: 11px;
    cursor: pointer;
    transition: 0.2s ease;
    background: #fff;
}

.domain-option label:hover {
    border-color: #0b4fa3;
}

.domain-option input[type="radio"]:checked + label {
    border-color: #0b4fa3;
    background: rgba(11, 79, 163, 0.05);
    box-shadow: 0 0 0 2px rgba(11, 79, 163, 0.08);
}

[data-bs-theme="dark"] .domain-option label {
    background: #172331;
    border-color: #344455;
}

[data-bs-theme="dark"] .domain-option input[type="radio"]:checked + label {
    background: rgba(11, 79, 163, 0.16);
}

.domain-option-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 5px;
}

[data-bs-theme="dark"] .domain-option-title {
    color: #f8fafc;
}

.domain-option-title i {
    color: #0b4fa3;
}

.domain-option-description {
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

[data-bs-theme="dark"] .domain-option-description {
    color: #94a3b8;
}

/* =========================================================
   DOMAIN PREVIEW
========================================================= */

.subdomain-availability {
    margin-top: 8px;
    min-height: 22px;
    font-size: 13px;
    font-weight: 600;
}

.subdomain-availability.available {
    color: #198754;
}

.subdomain-availability.unavailable,
.subdomain-availability.error {
    color: #dc3545;
}

.subdomain-availability.checking {
    color: #6c757d;
}

.availability-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.availability-error {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.availability-checking {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.availability-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: subdomainSpin 0.7s linear infinite;
}

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

.domain-preview {
    width: 100%;
    padding: 11px 12px;
    border-radius: 9px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    margin-top: 8px;
    font-size: 12px;
    word-break: break-all;
}

[data-bs-theme="dark"] .domain-preview {
    background: #172331;
    border-color: #344455;
}

.domain-preview-label {
    display: block;
    font-size: 10px;
    color: #64748b;
    margin-bottom: 3px;
    font-weight: 600;
}

.domain-preview-value {
    color: #0b4fa3;
    font-weight: 800;
}

.helper-text {
    font-size: 11px;
    line-height: 1.55;
    color: #64748b;
    margin-top: 7px;
}

[data-bs-theme="dark"] .helper-text {
    color: #94a3b8;
}

/* =========================================================
   SUPPORT BOX
========================================================= */

.support-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 9px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.20);
    font-size: 11px;
    line-height: 1.55;
}

.support-box strong {
    color: #15803d;
}

.support-box a {
    color: #0b4fa3;
    font-weight: 700;
    text-decoration: none;
}

/* =========================================================
   ALERTS
========================================================= */

.form-alert {
    display: none;
    width: 100%;
    padding: 11px 12px;
    border-radius: 9px;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.form-alert.show {
    display: block;
}

.form-alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.form-alert.success {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.form-alert.warning {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

[data-bs-theme="dark"] .form-alert.error {
    background: rgba(127, 29, 29, 0.20);
    color: #fca5a5;
    border-color: #7f1d1d;
}

[data-bs-theme="dark"] .form-alert.success {
    background: rgba(20, 83, 45, 0.20);
    color: #86efac;
    border-color: #166534;
}

[data-bs-theme="dark"] .form-alert.warning {
    background: rgba(120, 53, 15, 0.20);
    color: #fcd34d;
    border-color: #92400e;
}

/* =========================================================
   BUTTONS
========================================================= */

.form-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 9px;
    margin-top: 18px;
}

.btn-primary-custom,
.btn-secondary-custom,
.btn-success-custom {
    width: 100%;
    min-height: 45px;
    border-radius: 9px;
    border: none;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary-custom {
    background: #0b4fa3;
    color: #fff;
}

.btn-primary-custom:hover:not(:disabled) {
    background: #083d80;
}

.btn-success-custom {
    background: #16a34a;
    color: #fff;
}

.btn-success-custom:hover:not(:disabled) {
    background: #15803d;
}

.btn-secondary-custom {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #dbe2ea;
}

.btn-secondary-custom:hover:not(:disabled) {
    background: #e2e8f0;
}

[data-bs-theme="dark"] .btn-secondary-custom {
    background: #172331;
    color: #e2e8f0;
    border-color: #344455;
}

.btn-primary-custom:disabled,
.btn-success-custom:disabled,
.btn-secondary-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================================
   VERIFICATION
========================================================= */

.verification-target {
    width: 100%;
    padding: 13px;
    border-radius: 9px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

[data-bs-theme="dark"] .verification-target {
    background: #172331;
    border-color: #344455;
}

.verification-target-label {
    font-size: 10px;
    color: #64748b;
    margin-bottom: 3px;
}

.verification-target-value {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    word-break: break-word;
}

[data-bs-theme="dark"] .verification-target-value {
    color: #f8fafc;
}

.change-contact {
    display: inline-block;
    margin-top: 7px;
    font-size: 11px;
    color: #0b4fa3;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.contact-editor {
    display: none;
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: 1px solid #dbe2ea;
    background: #f8fafc;
    margin-bottom: 15px;
}

.contact-editor.show {
    display: block;
}

[data-bs-theme="dark"] .contact-editor {
    background: #172331;
    border-color: #344455;
}

.editor-title {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.editor-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 9px;
}

.code-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 20px;
    font-weight: 800;
}

.demo-note {
    margin-top: 10px;
    padding: 9px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-size: 10px;
    line-height: 1.5;
}

[data-bs-theme="dark"] .demo-note {
    background: rgba(124, 45, 18, 0.18);
    color: #fdba74;
    border-color: #9a3412;
}

/* =========================================================
   SPINNER
========================================================= */

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: -2px;
    margin-right: 6px;
}

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

/* =========================================================
   PASSWORD RULES
========================================================= */

.password-rules {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    border-radius: 9px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

[data-bs-theme="dark"] .password-rules {
    background: #172331;
    border-color: #344455;
}

.password-rule {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
}

.password-rule:last-child {
    margin-bottom: 0;
}

.password-rule i {
    font-size: 10px;
}

.password-rule.valid {
    color: #16a34a;
}

.password-rule.invalid {
    color: #dc2626;
}

/* =========================================================
   CHECKBOXES
========================================================= */

.checkbox-group {
    width: 100%;
    margin-top: 13px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 10px;
}

.checkbox-item input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    accent-color: #0b4fa3;
}

.checkbox-item label {
    font-size: 11px;
    line-height: 1.5;
    color: #475569;
    cursor: pointer;
}

[data-bs-theme="dark"] .checkbox-item label {
    color: #cbd5e1;
}

.checkbox-item a {
    color: #0b4fa3;
    font-weight: 700;
    text-decoration: none;
}

/* =========================================================
   MISSING REQUIREMENTS
========================================================= */

.missing-box {
    display: none;
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.55;
}

.missing-box.show {
    display: block;
}

[data-bs-theme="dark"] .missing-box {
    background: rgba(124, 45, 18, 0.15);
    color: #fdba74;
    border-color: #9a3412;
}

.missing-box strong {
    display: block;
    margin-bottom: 3px;
}

/* =========================================================
   FOOTER INSIDE FORM
========================================================= */

.form-footer {
    width: 100%;
    border-top: 1px solid #e5e7eb;
    margin-top: 22px;
    padding-top: 15px;
    text-align: center;
}

[data-bs-theme="dark"] .form-footer {
    border-color: #263342;
}

.footer-brand {
    font-size: 12px;
    font-weight: 800;
    color: #0b4fa3;
    margin-bottom: 3px;
}

.footer-text {
    font-size: 10px;
    color: #94a3b8;
    margin: 0;
}

.footer-text a {
    text-decoration: none;
    color: inherit;
}

.footer-text a:hover {
    text-decoration: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 575px) {

    html,
    body {
        margin: 0;
        padding: 0;
    }

    .registration-wrapper {
        width: 100%;
        min-height: 100vh;
        padding: 0;
        margin: 0;
        align-items: flex-start;
    }

    .registration-card {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .form-header {
        padding: 18px 17px 13px;
    }

    .form-body {
        padding: 14px 17px 20px;
    }

    .steps {
        gap: 4px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .step {
        font-size: 9px;
        gap: 4px;
    }

    .step-number {
        width: 23px;
        height: 23px;
        font-size: 9px;
    }

    .step-line {
        width: 12px;
    }

    .theme-toggle {
        width: 34px;
        height: 34px;
        top: 14px;
        right: 14px;
    }

    .logo-wrapper img {
        max-width: 125px;
    }

    .stage-title {
        font-size: 19px;
    }
}

/* =========================================================
   FORCE NO OUTER LEFT/RIGHT SPACE
========================================================= */

.registration-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.registration-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

