.reg-hero {
    position: relative;
    padding: 80px 0 60px;
    background: #f6f7fb;
    border-bottom: 1px solid #e6ebf3;
    overflow: hidden;
}

.reg-hero-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.reg-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(21, 101, 192, 0.08);
    color: #1565C0;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 22px;
}

.reg-hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    color: #1a202c;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}

.reg-hero-title .accent {
    background: linear-gradient(90deg, #1565C0, #42A5F5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reg-hero-desc {
    font-size: 16.5px;
    line-height: 1.75;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto 28px;
}

.reg-hero-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.reg-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #e6ebf3;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a202c;
}

.reg-hero-chip i {
    color: #1565C0;
}

.register-section {
    position: relative;
    padding: 56px 0 90px;
    background: #ffffff;
}

.register-container {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.register-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #eaeef5;
    border-radius: 24px;
    padding: 44px 44px 40px;
    box-shadow: 0 20px 50px rgba(21, 101, 192, 0.07);
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 8px;
}

.register-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

[data-theme="dark"] .reg-hero {
    background: #14171f;
    border-bottom-color: #333949;
}

[data-theme="dark"] .reg-hero-eyebrow {
    background: rgba(66, 165, 245, 0.12);
    color: #6cb6f5;
}

[data-theme="dark"] .reg-hero-title {
    color: #e6eaf2;
}

[data-theme="dark"] .reg-hero-desc {
    color: #a2acc0;
}

[data-theme="dark"] .reg-hero-chip {
    background: #1e222e;
    border-color: #333949;
    color: #e6eaf2;
}

[data-theme="dark"] .reg-hero-chip i {
    color: #6cb6f5;
}

[data-theme="dark"] .register-section {
    background: #1a1e29;
}

[data-theme="dark"] .register-card {
    background: #1f2430;
    border-color: #333949;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .register-title {
    color: #e6eaf2;
}

[data-theme="dark"] .register-subtitle {
    color: #a2acc0;
}

@media (max-width: 768px) {
    .reg-hero {
        padding: 56px 0 44px;
    }

    .reg-hero-title {
        font-size: 30px;
    }
}

@media (max-width: 640px) {
    .register-section {
        padding: 40px 0 64px;
    }

    .register-card {
        padding: 30px 22px 26px;
        border-radius: 18px;
    }

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

    .register-subtitle {
        font-size: 14px;
    }
}

.form-section {
    margin-bottom: 8px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eaeef5;
}

.section-title i {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(21, 101, 192, 0.08);
    color: #1565C0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.form-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-row.address-row {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.address-location-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.address-text-col {
    display: flex;
}

.address-text-col .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.form-label.required::after {
    content: " *";
    color: #dc2626;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #dce4f0;
    border-radius: 12px;
    background: #ffffff;
    font-size: 15px;
    color: #1a202c;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.address-text-col .form-textarea {
    height: 100%;
    min-height: 0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #1565C0;
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9aa7bd;
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background: #f6f8fc;
    color: #94a3b8;
    cursor: not-allowed;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #dc2626;
}

.form-input.error:focus,
.form-textarea.error:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.field-error {
    color: #dc2626;
    font-size: 12.5px;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.iti {
    width: 100%;
}

.iti .iti__tel-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #dce4f0;
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
    background: #ffffff;
    color: #1a202c;
}

.iti .iti__tel-input:focus {
    border-color: #1565C0;
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
    outline: none;
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: 49px;
    border: 1px solid #dce4f0;
    border-radius: 12px;
    padding: 6px 12px;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #1565C0;
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
    color: #1a202c;
    padding: 0;
}

[data-theme="dark"] .section-title {
    color: #e6eaf2;
    border-bottom-color: #333949;
}

[data-theme="dark"] .section-title i {
    background: rgba(66, 165, 245, 0.12);
    color: #6cb6f5;
}

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

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .iti .iti__tel-input {
    background: #1c2029;
    border-color: #373d4c;
    color: #e6eaf2;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus,
[data-theme="dark"] .iti .iti__tel-input:focus {
    border-color: #42A5F5;
    box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.12);
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
    color: #6b7488;
}

[data-theme="dark"] .form-input:disabled,
[data-theme="dark"] .form-select:disabled,
[data-theme="dark"] .form-textarea:disabled {
    background: #242936;
    color: #6b7488;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection {
    background-color: #1c2029;
    border-color: #373d4c;
}

[data-theme="dark"] .select2-container--disabled .select2-selection,
[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection[aria-disabled="true"] {
    background-color: #242936;
    border-color: #373d4c;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #e6eaf2;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection__placeholder {
    color: #6b7488;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
    background-color: #1f2430;
    border-color: #373d4c;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option {
    color: #a2acc0;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #1565C0;
    color: #ffffff;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-search__field {
    background-color: #1c2029;
    border-color: #373d4c;
    color: #e6eaf2;
}

@media (max-width: 640px) {
    .form-row,
    .form-row.address-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-textarea {
        min-height: 110px;
    }
}

.error-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    z-index: 10001;
    animation: registerFadeIn 0.25s ease;
}

@keyframes registerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.error-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #eaeef5;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.error-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #eaeef5;
}

.error-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.error-modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #f6f8fc;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
}

.error-modal-close:hover {
    background: #eef2f8;
    color: #1a202c;
}

.error-modal-body {
    padding: 24px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
}

.error-modal-body > div {
    margin-bottom: 14px;
}

.error-modal-body > div:last-child {
    margin-bottom: 0;
}

.error-suggestion {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(21, 101, 192, 0.06);
    color: #1a202c;
    font-size: 13.5px;
}

.error-suggestion i {
    color: #1565C0;
    margin-top: 2px;
}

.error-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eaeef5;
    display: flex;
    justify-content: flex-end;
}

.error-modal-btn {
    padding: 11px 26px;
    border: 0;
    border-radius: 11px;
    background: #1565C0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.error-modal-btn:hover {
    background: #0d47a1;
}

[data-theme="dark"] .error-modal-content {
    background: #1f2430;
    border-color: #333949;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .error-modal-header,
[data-theme="dark"] .error-modal-footer {
    border-color: #333949;
}

[data-theme="dark"] .error-modal-header h3 {
    color: #e6eaf2;
}

[data-theme="dark"] .error-modal-close {
    background: #1c2029;
    color: #8b93a5;
}

[data-theme="dark"] .error-modal-close:hover {
    background: #333949;
    color: #e6eaf2;
}

[data-theme="dark"] .error-modal-body {
    color: #a2acc0;
}

[data-theme="dark"] .error-suggestion {
    background: rgba(66, 165, 245, 0.1);
    color: #e6eaf2;
}

[data-theme="dark"] .error-suggestion i {
    color: #6cb6f5;
}

.progress-container {
    margin-bottom: 36px;
}

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

.progress-steps::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #eaeef5;
    transform: translateY(-50%);
    z-index: 0;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    width: 0;
    background: #1565C0;
    transform: translateY(-50%);
    z-index: 1;
    transition: width 0.35s ease;
}

.progress-step {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #eaeef5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #94a3b8;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.progress-step.active {
    background: #1565C0;
    border-color: #1565C0;
    color: #ffffff;
}

.progress-step.completed {
    background: #1565C0;
    border-color: #1565C0;
    color: #ffffff;
}

.progress-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 560px;
    margin: 0 auto;
}

.progress-label {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.25s ease;
}

.progress-label.active {
    color: #1565C0;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: registerStepIn 0.35s ease;
}

@keyframes registerStepIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-left: auto;
    padding: 14px 30px;
    border: 0;
    border-radius: 12px;
    background: #1565C0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.submit-button:hover:not(:disabled) {
    background: #0d47a1;
    transform: translateY(-2px);
}

.submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid #dce4f0;
    border-radius: 12px;
    background: #ffffff;
    color: #475569;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.back-button:hover {
    background: rgba(21, 101, 192, 0.06);
    border-color: #cdd9ec;
    color: #1565C0;
}

.back-button i {
    transition: transform 0.2s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: registerSpin 0.7s linear infinite;
}

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

[data-theme="dark"] .progress-steps::before {
    background: #333949;
}

[data-theme="dark"] .progress-step {
    background: #1c2029;
    border-color: #333949;
    color: #8b93a5;
}

[data-theme="dark"] .progress-step.active,
[data-theme="dark"] .progress-step.completed {
    background: #1565C0;
    border-color: #1565C0;
    color: #ffffff;
}

[data-theme="dark"] .progress-label {
    color: #8b93a5;
}

[data-theme="dark"] .progress-label.active {
    color: #6cb6f5;
}

[data-theme="dark"] .progress-line {
    background: #42A5F5;
}

[data-theme="dark"] .back-button {
    background: #1c2029;
    border-color: #373d4c;
    color: #a2acc0;
}

[data-theme="dark"] .back-button:hover {
    background: rgba(66, 165, 245, 0.1);
    border-color: #33507a;
    color: #6cb6f5;
}

@media (max-width: 640px) {
    .progress-label {
        font-size: 11px;
    }

    .progress-step {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .step-buttons {
        flex-wrap: wrap;
    }

    .submit-button,
    .back-button {
        flex: 1;
        justify-content: center;
    }
}

.summary-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.summary-card {
    background: #f6f8fc;
    border: 1px solid #eaeef5;
    border-radius: 16px;
    padding: 24px 24px 20px;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eaeef5;
}

.summary-header i {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(21, 101, 192, 0.08);
    color: #1565C0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.summary-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.summary-label {
    color: #94a3b8;
    font-weight: 500;
    flex-shrink: 0;
}

.summary-value {
    color: #1a202c;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.terms-section {
    margin-top: 26px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #f6f8fc;
    border: 1px solid #eaeef5;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.checkbox-container.error {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.04);
}

.checkbox-container input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: #1565C0;
    cursor: pointer;
}

.checkbox-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
}

.checkbox-container.error .checkbox-text {
    color: #b91c1c;
}

.checkbox-text a {
    color: #1565C0;
    font-weight: 600;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

[data-theme="dark"] .summary-card {
    background: #1c2029;
    border-color: #333949;
}

[data-theme="dark"] .summary-header {
    border-bottom-color: #333949;
}

[data-theme="dark"] .summary-header i {
    background: rgba(66, 165, 245, 0.12);
    color: #6cb6f5;
}

[data-theme="dark"] .summary-header h3 {
    color: #e6eaf2;
}

[data-theme="dark"] .summary-label {
    color: #8b93a5;
}

[data-theme="dark"] .summary-value {
    color: #e6eaf2;
}

[data-theme="dark"] .checkbox-container {
    background: #1c2029;
    border-color: #333949;
}

[data-theme="dark"] .checkbox-container.error {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}

[data-theme="dark"] .checkbox-text {
    color: #a2acc0;
}

[data-theme="dark"] .checkbox-text a {
    color: #6cb6f5;
}

@media (max-width: 640px) {
    .summary-section {
        grid-template-columns: 1fr;
    }
}
