/* ==========================================
   ANIMASI DASAR REGISTER STYLES
   ========================================== */

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-slide-down {
    animation: slideDown 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   PROGRESS STEP BAR STYLING
   ========================================== */

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.375rem;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-align: center;
    max-width: 80px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* State: Active (Sedang diisi) */
.step-indicator.active .step-number {
    background-color: white;
    color: #059669;
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.step-indicator.active .step-label {
    color: #059669;
    font-weight: 600;
}

/* State: Completed (Sudah terisi semua) */
.step-indicator.completed .step-number {
    background-color: #059669;
    color: white;
    border-color: #059669;
}

.step-indicator.completed .step-label {
    color: #059669;
}

/* Garis penghubung antar step */
.step-connector {
    flex: 1;
    height: 2px;
    background-color: #e5e7eb;
    margin: 0 0.75rem;
    margin-top: 16px; /* Setengah dari tinggi step-number */
    transition: background-color 0.3s ease;
}

/* ==========================================
   CUSTOM ELEMENT STYLING
   ========================================== */

/* Menghilangkan panah pada input number/telepon */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Global link hover smooth */
a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Styling select khusus agar tetap rapi di semua browser */
select option {
    padding: 8px;
    color: #374151;
}
