/* public/css/wizard.css */

/* Body and Container */
body {
    background-color: #f5f7fa;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Card styling */
.main-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    padding: 20px;
    border-bottom: none;
}

.logo {
    height: 70px;
    width: 70px;
    object-fit: contain;
    border-radius: 50%;
    padding: 5px;
    background-color: white;
}

/* Wizard container */
.wizard-container {
    padding: 20px 10px;
}

/* Wizard Steps */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding: 0 20px;
}

.wizard-steps:before {
    content: "";
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.wizard-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.wizard-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #757575;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-icon {
    background-color: #1976d2;
    color: white;
    box-shadow: 0 4px 10px rgba(25, 118, 210, 0.3);
    transform: scale(1.1);
}

.wizard-step.completed .wizard-step-icon {
    background-color: #4caf50;
    color: white;
}

.wizard-step-label {
    font-weight: 500;
    color: #616161;
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-label {
    color: #1976d2;
    font-weight: bold;
}

.wizard-step.completed .wizard-step-label {
    color: #4caf50;
    font-weight: bold;
}

/* Wizard panels */
.wizard-panel {
    display: block;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.wizard-panel.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.wizard-panel-header {
    padding: 15px 20px;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e0e0e0;
}

.wizard-panel-header h5 {
    margin: 0;
    color: #1976d2;
}

.wizard-panel-body {
    padding: 25px;
}

.wizard-panel-footer {
    padding: 15px 25px;
    background-color: #f5f7fa;
    border-top: 1px solid #e0e0e0;
}

/* Form styling */
.form-label {
    font-weight: 500;
    color: #424242;
}

.form-control {
    height: 46px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

.input-group-text {
    background-color: #f5f7fa;
    border: 1px solid #ddd;
    color: #757575;
}

/* Gender options */
.gender-options {
    display: flex;
    gap: 20px;
}

.gender-option {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.gender-option:hover {
    background-color: #f5f7fa;
}

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

.gender-option input[type="radio"]:checked + label {
    color: #1976d2;
    font-weight: bold;
}

.gender-option input[type="radio"]:checked + label i {
    color: #1976d2;
}

.gender-option label {
    cursor: pointer;
    margin: 0;
    width: 100%;
    font-size: 16px;
}

.gender-option label i {
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #1976d2;
    border-color: #1976d2;
}

.btn-primary:hover {
    background-color: #1565c0;
    border-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.3);
}

.btn-secondary {
    background-color: #757575;
    border-color: #757575;
}

.btn-secondary:hover {
    background-color: #616161;
    border-color: #616161;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(97, 97, 97, 0.3);
}

.btn-success {
    background-color: #4caf50;
    border-color: #4caf50;
}

.btn-success:hover {
    background-color: #43a047;
    border-color: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(67, 160, 71, 0.3);
}

/* Password strength and match indicator */
.password-strength,
.password-match {
    height: 5px;
    border-radius: 3px;
    margin-top: 5px;
    transition: all 0.3s;
}

.strength-weak {
    background-color: #f44336;
    width: 33%;
}

.strength-medium {
    background-color: #ff9800;
    width: 66%;
}

.strength-strong {
    background-color: #4caf50;
    width: 100%;
}

.password-match-text {
    font-size: 12px;
    margin-top: 5px;
}

.match-error {
    color: #f44336;
}

.match-success {
    color: #4caf50;
}

/* Success panel */
.success-panel {
    padding: 50px 20px;
}

.success-icon {
    font-size: 80px;
    color: #4caf50;
    margin-bottom: 20px;
}

/* NIK validation message */
#nik-validation-message .text-success {
    color: #4caf50 !important;
}

#nik-validation-message .text-danger {
    color: #f44336 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wizard-steps:before {
        left: 30px;
        right: 30px;
    }

    .wizard-step-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .wizard-step-label {
        font-size: 14px;
    }

    .gender-options {
        flex-direction: column;
        gap: 10px;
    }
}
