* {
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --text: #172033;
    --muted: #7b8497;
    --line: #e7ebf2;
    --surface: #ffffff;
    --bg: #eef3f9;
    --success: #16a34a;
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(37, 99, 235, .10), transparent 32%),
        radial-gradient(circle at 100% 100%, rgba(14, 165, 233, .10), transparent 35%),
        var(--bg);
}

.registration-page {
    min-height: 100vh;
    padding: 28px 16px 40px;
    display: flex;
    justify-content: center;
     overflow-x: hidden;
}

.phone-shell {
    width: 100%;
    max-width: 480px;
    min-height: calc(100vh - 68px);
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(27, 49, 87, .14);
   position: relative;
    overflow: visible;
    backdrop-filter: blur(14px);
}

.app-header {
    padding: 24px 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--surface);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 23px;
    background: var(--primary-soft);
}

.brand-mini {
    display: block;
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 2px;
}

.brand h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.5px;
}

.secure-badge {
    flex-shrink: 0;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 10px;
    font-weight: 700;
}

.secure-badge span {
    font-size: 8px;
    margin-right: 4px;
}

.progress-card {
    margin: 0 16px 4px;
    padding: 17px;
    border-radius: 22px;
    background: linear-gradient(145deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .20);
}

.progress-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}

.progress-top small {
    display: block;
    opacity: .72;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    margin-bottom: 3px;
}

.progress-top strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.progress-percent {
    font-size: 12px;
    font-weight: 800;
    opacity: .9;
}

.progress-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, .24);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 33.33%;
    background: #fff;
    border-radius: inherit;
    transition: width .35s ease;
}

.step-labels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 14px;
    gap: 5px;
}

.step-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .55);
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.step-dot {
    width: 21px;
    height: 21px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 9px;
    flex-shrink: 0;
}

.step-label.active {
    color: #fff;
}

.step-label.active .step-dot {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.step-label.done {
    color: rgba(255, 255, 255, .88);
}

.step-label.done .step-dot {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .5);
}

.form-step {
    display: none;
    padding: 22px 22px 8px;
    animation: fadeUp .25s ease;
}

.form-step.active {
    display: block;
}

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

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 3px 0 21px;
}

.heading-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--primary-soft);
    font-size: 19px;
}

.section-heading h2 {
    margin: 1px 0 3px;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.5px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.info-code {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 19px;
    padding: 12px;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 16px;
}

.info-code-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--primary);
    background: #e8f1ff;
    font-weight: 800;
    font-size: 13px;
}

.info-code small {
    display: block;
    color: #8a94a8;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .8px;
    margin-bottom: 2px;
}

.info-code strong {
    display: block;
    color: #1e40af;
    font-size: 12px;
    letter-spacing: .2px;
}

.copy-hint {
    margin-left: auto;
    color: #94a3b8;
    font-size: 8px;
    font-weight: 700;
}

.field-group {
    margin-bottom: 15px;
}

.field-group label {
    display: block;
    margin: 0 0 7px 2px;
    color: #475166;
    font-size: 10px;
    font-weight: 800;
}

.field-group label span {
    color: #ef4444;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa4b7;
    font-size: 10px;
    font-weight: 800;
    pointer-events: none;
    min-width: 20px;
    text-align: center;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
    width: 100%;
    border: 1px solid var(--line);
    outline: none;
    background: #fbfcfe;
    color: var(--text);
    border-radius: 14px;
    font-family: inherit;
    font-size: 11px;
    transition: .2s ease;
}

.input-wrap input,
.input-wrap select {
    height: 48px;
    padding: 0 14px 0 44px;
}

.input-wrap textarea {
    min-height: 105px;
    padding: 13px 14px 13px 44px;
    resize: vertical;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
    color: #b1b8c6;
}

.input-wrap select {
    appearance: none;
    cursor: pointer;
}

.select-wrap::after {
    content: '⌄';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-55%);
    color: #9aa4b7;
    font-size: 15px;
    pointer-events: none;
}

.input-wrap:focus-within input,
.input-wrap:focus-within select,
.input-wrap:focus-within textarea {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}

.input-wrap input:disabled,
.input-wrap select:disabled {
    background: #f2f4f7;
    color: #a0a8b6;
    cursor: not-allowed;
}

.conditional-box {
    padding: 0;
}

.action-btn,
.submit-btn {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.action-btn {
    margin-top: 22px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 9px 20px rgba(37, 99, 235, .20);
}

.action-btn b {
    font-size: 17px;
    line-height: 1;
}

.action-btn:hover,
.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: #fff;
}

.button-row {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 10px;
    margin-top: 22px;
}

.button-row .action-btn {
    margin-top: 0;
}

.secondary-btn {
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    color: #687286;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.secondary-btn b {
    font-size: 15px;
}

.secondary-btn:hover {
    background: #f8fafc;
}

.submit-btn {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 9px 20px rgba(37, 99, 235, .20);
}

.final-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    margin-top: 17px;
    border-radius: 14px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}

.final-note span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dcfce7;
    color: var(--success);
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 800;
    flex-shrink: 0;
}

.final-note p {
    margin: 1px 0 0;
    color: #4b6b58;
    font-size: 8px;
    line-height: 1.5;
    font-weight: 600;
}

.app-footer {
    padding: 18px 20px 22px;
    text-align: center;
    color: #a1a9b8;
    font-size: 8px;
    font-weight: 700;
}

.app-footer i {
    margin: 0 5px;
    font-style: normal;
}





.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid #e7ebf2 !important;
    border-radius: 14px !important;
    background: #fbfcfe !important;
}

.select2-container--default .select2-selection--single
.select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 44px !important;
    padding-right: 40px !important;
    color: #172033 !important;
    font-size: 11px !important;
}

.select2-container--default .select2-selection--single
.select2-selection__arrow {
    height: 48px !important;
    right: 10px !important;
}

.select2-dropdown {
    border: 1px solid #e7ebf2 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(27, 49, 87, .15) !important;
    z-index: 9999 !important;
}






/* Desktop tetap terlihat seperti aplikasi HP */
@media (min-width: 700px) {
    .registration-page {
        padding-top: 34px;
    }

    .phone-shell {
        max-width: 480px;
    }
}

/* HP kecil */
@media (max-width: 380px) {
    .registration-page {
        padding: 0;
    }

    .phone-shell {
        min-height: 100vh;
        border-radius: 0;
        border: 0;
    }

    .app-header {
        padding: 20px 17px 17px;
    }

    .progress-card {
        margin-left: 12px;
        margin-right: 12px;
    }

    .form-step {
        padding-left: 17px;
        padding-right: 17px;
    }

    .step-label {
        font-size: 7px;
    }

    .step-dot {
        width: 19px;
        height: 19px;
    }
}


/* =========================
   ALAMAT & LOKASI
   ========================= */

.address-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    margin: -4px 0 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e8edf4;
}

.address-note > span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e8f1ff;
    color: var(--primary);
    font-size: 11px;
    flex-shrink: 0;
}

.address-note strong {
    display: block;
    color: #475166;
    font-size: 9px;
    font-weight: 800;
    margin-bottom: 2px;
}

.address-note p {
    margin: 0;
    color: #8992a4;
    font-size: 8px;
    line-height: 1.45;
}

.two-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.field-help {
    display: block;
    min-height: 0;
    margin: 5px 2px 0;
    color: #ef4444;
    font-size: 7px;
    opacity: 0;
}

.location-search {
    margin-top: 4px;
}

.select2-input-wrap .select2 {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 48px !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    background: #fbfcfe !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 32px !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 12px !important;
    padding-right: 32px !important;
    color: var(--text) !important;
    font-family: inherit !important;
    font-size: 11px !important;
    line-height: normal !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #b1b8c6 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 10px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #93c5fd !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .08) !important;
}

.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(27, 49, 87, .14);
    font-family: 'Plus Jakarta Sans', sans-serif;
    z-index: 9999 !important;
}

.select2-search--dropdown {
    padding: 9px !important;
}

.select2-search--dropdown .select2-search__field {
    height: 40px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px;
    padding: 0 11px;
    font-family: inherit;
    font-size: 10px;
    outline: none;
}

.select2-results__option {
    padding: 10px 12px !important;
    font-size: 10px;
}

.select2-results__option--highlighted[aria-selected] {
    background: #eff6ff !important;
    color: var(--text) !important;
}

.select2-location-result strong {
    display: block;
    font-size: 10px;
    font-weight: 800;
}

.select2-location-result small {
    display: block;
    margin-top: 3px;
    color: #8992a4;
    font-size: 8px;
}

.field-help-static {
    margin: 6px 2px 0;
    color: #929bad;
    font-size: 8px;
    line-height: 1.4;
}

.location-result {
    display: none;
    margin: 4px 0 19px;
    padding: 13px;
    border-radius: 16px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}

.location-result.show {
    display: block;
    animation: fadeUp .22s ease;
}

.location-result-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.location-result-head > span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 800;
}

.location-result-head strong {
    display: block;
    color: #166534;
    font-size: 9px;
    font-weight: 800;
}

.location-result-head small {
    display: block;
    margin-top: 2px;
    color: #6b8b74;
    font-size: 7px;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.location-grid > div {
    min-width: 0;
    padding: 8px 9px;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(187, 247, 208, .8);
    border-radius: 10px;
}

.location-grid > div:last-child {
    grid-column: 1 / -1;
}

.location-grid small {
    display: block;
    color: #7b9481;
    font-size: 7px;
    margin-bottom: 2px;
}

.location-grid strong {
    display: block;
    color: #36543f;
    font-size: 8px;
    line-height: 1.3;
    word-break: break-word;
}

.parent-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 21px 0 17px;
    color: #8b94a5;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.parent-divider::before,
.parent-divider::after {
    content: '';
    height: 1px;
    background: var(--line);
    flex: 1;
}

@media (max-width: 360px) {
    .two-fields {
        gap: 7px;
    }

    .location-grid {
        gap: 6px;
    }
}
