/* =========================================================
   Sail & Hunt Chapter I
   File : assets/css/register.css
   ========================================================= */

/* =========================================================
   REGISTER PAGE
   ========================================================= */
.register-wrapper {
    max-width: 920px;
    margin: auto;
}

.register-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: cardFade .45s ease;
}

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

/* Header */
.register-header {
    padding: 50px 60px 35px;
    text-align: center;
    background: linear-gradient(135deg, rgba(24,114,181,.04), rgba(232,138,26,.06));
    border-bottom: 1px solid var(--border);
}
.register-header h1 { margin-bottom: 12px; }
.register-header p { max-width: 550px; margin: auto; color: var(--text-muted); line-height: 1.8; }

/* Form */
#registerForm { padding: 45px 60px 55px; }

/* Step */
.form-step { display: none; animation: fadeStep .35s ease; }
.form-step.active { display: block; }
@keyframes fadeStep {
    from { opacity: 0; transform: translateX(25px); }
    to { opacity: 1; transform: translateX(0); }
}
.form-step h2 { margin-bottom: 10px; }
.form-step > p { margin-bottom: 35px; color: var(--text-muted); }

/* Wizard */
.wizard { margin-bottom: 50px; }
.wizard-progress { width: 100%; height: 8px; border-radius: 999px; overflow: hidden; background: #E8EEF8; margin-bottom: 35px; }
.wizard-progress-bar { width: 20%; height: 100%; background: linear-gradient(90deg, var(--og), var(--az)); transition: .35s; }
.wizard-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.wizard-step { display: flex; align-items: center; gap: 14px; opacity: .35; transition: .3s; }
.wizard-step.active { opacity: 1; }
.wizard-step.completed { opacity: 1; }
.wizard-circle {
    width: 58px; height: 58px; min-width: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #EDF2F9; color: var(--az); font-size: 20px; transition: .3s;
}
.wizard-step.active .wizard-circle {
    color: #fff; background: var(--grad-primary);
    box-shadow: 0 12px 30px rgba(24,114,181,.25);
}
.wizard-step.completed .wizard-circle { background: var(--success); color: #fff; }
.wizard-text h4 { margin: 0; font-size: 15px; font-family: var(--font-body); }
.wizard-text span { display: block; margin-top: 4px; font-size: 12px; color: var(--text-muted); }

/* Radio Card */
.radio-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 210px; cursor: pointer; padding: 35px; border-radius: 22px;
    background: #fff; border: 2px solid #E8EEF8; transition: .3s; text-align: center;
}
.radio-card:hover { transform: translateY(-6px); border-color: var(--az); box-shadow: var(--shadow-md); }
.radio-card.active { background: var(--azG); border-color: var(--az); }
.radio-card h3 { margin-top: 18px; margin-bottom: 10px; }
.radio-card p { margin: 0; }
.radio-card::before { content: "🏴‍☠️"; font-size: 50px; }

/* Grid (dipakai di form-step) */
.grid { gap: 22px; }

/* Form Group */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: .45rem; font-size: .85rem; font-weight: 700; color: var(--text-secondary); }
.required { color: var(--danger); }
.form-control {
    width: 100%; padding: .85rem 1rem; border: 1px solid #DCE5F2; border-radius: 14px;
    transition: .25s; background: #fff;
}
.form-control:hover { border-color: #BCD2EB; }
.form-control:focus { border-color: var(--az); box-shadow: 0 0 0 4px rgba(24,114,181,.12); }
textarea.form-control { height: auto; }
.form-help { margin-top: .35rem; font-size: .75rem; color: var(--text-muted); }
.form-error { margin-top: .35rem; color: var(--danger); font-size: .75rem; }

/* Checkbox */
.checkbox { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; margin-top: 28px; }
.checkbox input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--az); }
.checkbox label { line-height: 1.8; cursor: pointer; }

/* Review Card */
.review-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,.04); }
.review-section { padding: 28px; border-bottom: 1px solid var(--border); }
.review-section:last-child { border-bottom: none; }
.review-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 18px; font-weight: 700; color: var(--az); }
.review-title i { font-size: 18px; }
.review-item { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 10px 0; align-items: center; }
.review-label { font-weight: 700; color: #64748B; }
.review-value { font-weight: 600; color: #1E293B; word-break: break-word; }

/* Navigasi */
.form-navigation { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 45px; }
.form-navigation .btn { min-width: 180px; }

/* Password Strength (jika dipakai) */
.password-strength { width: 100%; height: 8px; margin-top: 14px; background: #E9EEF6; border-radius: 999px; overflow: hidden; }
.password-strength-bar { width: 0; height: 100%; border-radius: 999px; transition: .35s; }
.password-strength-bar.weak { width: 25%; background: #E53935; }
.password-strength-bar.fair { width: 50%; background: #FB8C00; }
.password-strength-bar.good { width: 75%; background: #43A047; }
.password-strength-bar.strong { width: 100%; background: #1872B5; }

/* Responsive */
@media (max-width: 992px) {
    #registerForm { padding: 35px; }
    .register-header { padding: 35px; }
    .wizard-text { display: none; }
    .wizard-circle { margin: auto; }
    .wizard-steps { gap: 10px; }
    .review-item { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 768px) {
    .register-wrapper { max-width: 100%; }
    .register-card { border-radius: 18px; }
    .grid { grid-template-columns: 1fr !important; }
    .radio-card { min-height: 160px; padding: 24px; }
    .radio-card::before { font-size: 38px; }
    .form-navigation { flex-direction: column-reverse; }
    .form-navigation .btn { width: 100%; }
    .review-section { padding: 20px; }
}
@media (max-width: 576px) {
    .register-header { padding: 28px 22px; }
    #registerForm { padding: 24px 20px 30px; }
    .wizard-circle { width: 46px; height: 46px; min-width: 46px; font-size: 16px; }
    .wizard-progress { margin-bottom: 25px; }
    .form-step h2 { font-size: 1.5rem; }
    .review-title { font-size: 15px; }
}