/* ===== SPMB Premium Form Styles — Light Theme ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f0f4f8;
    color: #1e293b;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Animated Background Blobs --- */
.bg-decoration {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -120px; left: -120px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    bottom: -80px; right: -80px;
    animation-delay: -7s;
}

.blob-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
    top: 40%; left: 50%;
    animation-delay: -14s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

/* --- Hero Header --- */
.hero-header {
    position: relative;
    z-index: 2;
    padding: 60px 20px 80px;
    text-align: center;
    background: linear-gradient(135deg, #1e4a8b 0%, #3b6fb6 50%, #6366f1 100%);
    color: white;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.logo-badge {
    width: 90px; height: 90px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 22px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    animation: fadeInDown 0.8s ease;
}

.logo-badge img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.hero-text { animation: fadeInUp 0.8s ease 0.2s both; }

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #e0e7ff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hero-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-header p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    font-weight: 400;
}

/* --- Progress Bar --- */
.progress-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 20px;
}

.progress-container {
    max-width: 750px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #0ea5e9);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Form Container --- */
.form-container {
    max-width: 750px;
    margin: -40px auto 0;
    padding: 0 20px 60px;
    position: relative;
    z-index: 2;
}

/* --- Form Cards --- */
.form-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.form-card:hover {
    border-color: rgba(99,102,241,0.15);
    box-shadow: 0 8px 30px rgba(99,102,241,0.08);
}

/* --- Section Divider --- */
.section-divider {
    background: linear-gradient(135deg, #eef2ff, #e0f2fe);
    border-left: 4px solid #6366f1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
}

.section-icon {
    width: 42px; height: 42px;
    background: rgba(99,102,241,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 1rem;
    flex-shrink: 0;
}

.section-divider h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
}

/* --- Field Card --- */
.field-card { position: relative; }

.field-number {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #cbd5e1;
    background: #f8fafc;
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Form Group --- */
.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 14px;
}

.required-dot {
    color: #ef4444;
    font-size: 1.1rem;
}

.optional-tag {
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 10px;
}

/* --- Input Wrapper & Controls --- */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    transition: color 0.3s;
    z-index: 2;
}

.input-wrapper .form-control {
    padding-left: 44px;
}

.input-wrapper:focus-within .input-icon {
    color: #6366f1;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
}

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

/* --- Radio Group --- */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
}

.radio-option:hover {
    border-color: #a5b4fc;
    background: #eef2ff;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px; height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.25s;
}

.radio-custom::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #6366f1;
    transform: scale(0);
    transition: transform 0.2s;
}

.radio-option input[type="radio"]:checked ~ .radio-custom {
    border-color: #6366f1;
}

.radio-option input[type="radio"]:checked ~ .radio-custom::after {
    transform: scale(1);
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    color: #4338ca;
    font-weight: 600;
}

.radio-label {
    color: #475569;
    font-size: 0.9rem;
    transition: all 0.2s;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 30px;
}

.empty-icon {
    font-size: 3rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #64748b;
    margin-bottom: 8px;
}

.empty-state p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* --- Form Actions --- */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 0 4px;
    gap: 16px;
}

.form-actions-left,
.form-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-reset {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    transition: color 0.2s;
}

.btn-reset:hover { color: #ef4444; }

.btn-submit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99,102,241,0.25);
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.35);
}

.btn-submit:active { transform: translateY(0); }

/* --- Footer --- */
.page-footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* --- Success Overlay --- */
.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.success-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.success-card {
    text-align: center;
    animation: popIn 0.5s ease;
}

.success-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 20px;
    animation: pulse 1.5s ease infinite;
}

.success-card h2 { color: #1e293b; margin-bottom: 8px; }
.success-card p { color: #64748b; }

/* --- Animations --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.35); }
    50% { box-shadow: 0 0 0 20px rgba(99,102,241,0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.shake { animation: shake 0.5s ease; }

/* --- Step Indicator --- */
.step-wrapper {
    position: relative;
    z-index: 3;
    padding: 0 20px;
    margin-top: -30px;
    margin-bottom: 20px;
}

.step-container {
    max-width: 750px;
    margin: 0 auto;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    cursor: default;
}

.step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.4s;
    flex-shrink: 0;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.3s;
    white-space: nowrap;
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.step-item.active .step-label {
    color: #4338ca;
    font-weight: 600;
}

.step-item.completed .step-circle {
    background: #22c55e;
    color: white;
}

.step-item.completed .step-label {
    color: #16a34a;
}

.step-line {
    width: 40px;
    height: 3px;
    background: #e2e8f0;
    margin: 0 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* --- Page Description Card --- */
.page-desc-card {
    background: linear-gradient(135deg, #eef2ff, #e0f2fe);
    border-left: 4px solid #6366f1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
}

.page-desc-icon {
    color: #6366f1;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.page-desc-card p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Previous Button --- */
.btn-prev {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-prev:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #eef2ff;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .hero-header { padding: 40px 16px 60px; }
    .hero-header h1 { font-size: 1.8rem; }
    .form-card { padding: 20px; border-radius: 14px; }
    .form-actions { flex-direction: column-reverse; gap: 16px; }
    .form-actions-left, .form-actions-right { width: 100%; }
    .btn-submit, .btn-prev { width: 100%; justify-content: center; }
    .blob { opacity: 0.15; }
    .logo-badge { width: 70px; height: 70px; }
    .step-container { padding: 14px 16px; gap: 0; }
    .step-label { display: none; }
    .step-line { width: 24px; }
}
