/* =========================================================
   Register page custom styles (PPID)
   ========================================================= */

:root {
    --reg-orange: #ff7418;
    --reg-orange-dark: #e5620d;
    --reg-text: #1f2937;
    --reg-muted: #6b7280;
    --reg-border: #e5e7eb;
    --reg-field-bg: #f3f4f6;
}

.reg-wrapper {
    font-family: 'Poppins', sans-serif;
    padding: 30px 0 50px;
}

/* ---- Card ---- */
.reg-card {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--reg-border);
    border-radius: 16px;
    padding: 26px 34px 30px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
}

/* ---- Header ---- */
.reg-header {
    text-align: center;
    margin-bottom: 14px;
}

.reg-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--reg-text);
    margin: 0 0 6px;
}

.reg-header p {
    font-size: 13px;
    color: var(--reg-muted);
    margin: 0;
}

/* ---- Stepper ---- */
.reg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 4px;
}

.reg-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--reg-muted);
}

.reg-step .num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--reg-field-bg);
    color: var(--reg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.reg-step.active .num {
    background: var(--reg-orange);
    color: #fff;
}

.reg-step.active {
    color: var(--reg-text);
}

.reg-step-line {
    width: 34px;
    height: 1px;
    background: var(--reg-border);
}

/* ---- Section ---- */
.reg-section {
    border-top: 1px solid var(--reg-border);
    padding-top: 16px;
    margin-top: 16px;
}

.reg-section:first-of-type {
    border-top: none;
    padding-top: 4px;
    margin-top: 8px;
}

.reg-section-head {
    background: #fff3e9;
    border: 1px solid #ffe0c7;
    border-left: 3px solid var(--reg-orange);
    border-radius: 9px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.reg-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--reg-text);
    margin: 0;
}

.reg-section-title .idx {
    color: var(--reg-orange);
    margin-right: 6px;
}

.reg-section-sub {
    font-size: 12px;
    color: var(--reg-muted);
    margin: 2px 0 0;
}

/* ---- Grid ---- */
.reg-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.reg-col {
    padding: 0 8px;
    margin-bottom: 12px;
    flex: 0 0 100%;
    max-width: 100%;
}

.reg-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* ---- Fields ---- */
.reg-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--reg-text);
    margin-bottom: 7px;
}

.reg-label .req {
    color: #ef4444;
    margin-left: 2px;
}

.reg-control,
.reg-select,
textarea.reg-control {
    width: 100%;
    background: var(--reg-field-bg);
    border: 1px solid transparent;
    border-radius: 9px;
    height: 46px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--reg-text);
    font-family: 'Poppins', sans-serif;
    box-shadow: none;
    transition: border-color .15s ease, background .15s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

textarea.reg-control {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
    min-height: 92px;
}

.reg-control::placeholder,
textarea.reg-control::placeholder {
    color: #9ca3af;
}

.reg-control:focus,
.reg-select:focus,
textarea.reg-control:focus {
    background: #fff;
    border-color: var(--reg-orange);
    box-shadow: 0 0 0 3px rgba(255, 116, 24, .12);
}

/* Select arrow */
.reg-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cg%20fill%3D%22%236b7280%22%3E%3Cpath%20d%3D%22M10.293%2C3.293%2C6%2C7.586%2C1.707%2C3.293A1%2C1%2C0%2C0%2C0%2C.293%2C4.707l5%2C5a1%2C1%2C0%2C0%2C0%2C1.414%2C0l5-5a1%2C1%2C0%2C1%2C0-1.414-1.414Z%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    background-size: .7em;
    background-position: calc(100% - 14px) center;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.reg-hint {
    font-size: 11px;
    color: var(--reg-muted);
    margin-top: 6px;
}

/* ---- File dropzone ---- */
.reg-dropzone {
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    background: #fafafa;
    padding: 14px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.reg-dropzone:hover {
    border-color: var(--reg-orange);
    background: #fff7f1;
}

.reg-dropzone .dz-icon {
    font-size: 18px;
    color: var(--reg-orange);
    margin-bottom: 4px;
}

.reg-dropzone .dz-text {
    font-size: 13px;
    color: var(--reg-text);
}

.reg-dropzone .dz-text a {
    color: var(--reg-orange);
    font-weight: 600;
    text-decoration: underline;
}

.reg-dropzone .dz-meta {
    font-size: 11px;
    color: var(--reg-muted);
    margin-top: 6px;
}

.reg-dropzone input[type="file"] {
    display: none;
}

.reg-dropzone.has-file {
    border-color: var(--reg-orange);
    background: #fff7f1;
}

/* ---- Password field ---- */
.reg-pass {
    position: relative;
}

.reg-pass .reg-control {
    padding-right: 42px;
}

.reg-pass .toggle-pass {
    position: absolute;
    top: 0;
    right: 0;
    height: 46px;
    width: 42px;
    border: none;
    background: transparent;
    color: var(--reg-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reg-pass .toggle-pass:hover {
    color: var(--reg-text);
}

/* ---- Strength meter ---- */
.reg-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.reg-strength .bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.reg-strength .bar {
    height: 4px;
    flex: 1;
    border-radius: 3px;
    background: #e5e7eb;
    transition: background .15s ease;
}

.reg-strength.s1 .bar:nth-child(1) { background: #ef4444; }
.reg-strength.s2 .bar:nth-child(-n+2) { background: #f59e0b; }
.reg-strength.s3 .bar:nth-child(-n+3) { background: #eab308; }
.reg-strength.s4 .bar { background: #22c55e; }

.reg-strength .label {
    font-size: 11px;
    color: var(--reg-muted);
    white-space: nowrap;
}

/* ---- Agreement ---- */
.reg-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 6px 0 22px;
}

.reg-agree input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--reg-orange);
    flex: 0 0 auto;
}

.reg-agree label {
    font-size: 12.5px;
    color: var(--reg-muted);
    line-height: 1.5;
    margin: 0;
}

/* ---- Actions ---- */
.reg-actions {
    display: flex;
    gap: 12px;
}

.reg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.reg-btn-primary {
    flex: 1;
    background: var(--reg-orange);
    color: #fff;
}

.reg-btn-primary:hover {
    background: var(--reg-orange-dark);
    color: #fff;
}

.reg-btn-primary:disabled,
.reg-btn-primary[disabled] {
    background: #f6c9a6;
    cursor: not-allowed;
    opacity: .8;
}

.reg-btn-secondary {
    background: #fff;
    color: var(--reg-text);
    border-color: var(--reg-border);
}

.reg-btn-secondary:hover {
    background: #f9fafb;
    color: var(--reg-text);
}

/* ---- Footer ---- */
.reg-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--reg-muted);
}

.reg-footer a {
    color: var(--reg-orange);
    font-weight: 600;
    text-decoration: none;
}

.reg-footer a:hover {
    text-decoration: underline;
}

/* ---- Alerts ---- */
.reg-alert {
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}

.reg-alert ul {
    margin: 0;
    padding-left: 18px;
}

/* ---- Responsive ---- */
@media (max-width: 575px) {
    .reg-card {
        padding: 24px 18px;
        border-radius: 12px;
    }
    .reg-col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .reg-steps {
        gap: 4px;
    }
    .reg-step-line {
        width: 18px;
    }
    .reg-step .txt {
        display: none;
    }
}
