/* ===== General Styles ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== Header Section ===== */

.header-section {
    background: #2c3e50;
    color: white;
    padding: 12px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.header-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-title ion-icon {
    font-size: 1.4rem;
}

.header-subtitle {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.85;
}

.header-icon ion-icon {
    font-size: 45px;
    opacity: 0.15;
}

/* 🔥 RESPONSIVE (HP) */
@media (max-width: 768px) {
    .header-section {
        padding: 10px 0;
        text-align: center;
    }

    .header-title {
        justify-content: center;
        font-size: 1.2rem;
    }

    .header-subtitle {
        font-size: 0.8rem;
    }

    .header-icon {
        display: none; /* sembunyikan icon besar di HP */
    }
}

/* ===== Progress Bar ===== */

.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.progress-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
}

.progress-icon ion-icon {
    font-size: 28px;
    color: #6c757d;
}

.progress-step.active .progress-icon {
    background-color: #2c3e50;
    border-color: #2c3e50;
}

.progress-step.active .progress-icon ion-icon {
    color: white;
}

.progress-step.completed .progress-icon {
    background-color: #27ae60;
    border-color: #27ae60;
}

.progress-step.completed .progress-icon ion-icon {
    color: white;
}

.progress-label {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
}

.progress-step.active .progress-label {
    color: #2c3e50;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 3px;
    background-color: #e9ecef;
    margin: 0 10px;
    position: relative;
    top: -20px;
}

.progress-line.completed {
    background-color: #27ae60;
}

/* ===== Form Container ===== */

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 40px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f5;
}

.form-header ion-icon {
    font-size: 60px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-header p {
    color: #718096;
    margin: 0;
    font-size: 1rem;
}

/* ===== Form Elements ===== */

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label ion-icon {
    font-size: 18px;
    color: #34495e;
}

.form-control,
.form-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.otp-input {
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 10px;
    font-weight: 600;
}

.form-text {
    color: #718096;
    font-size: 0.875rem;
    margin-top: 5px;
}

.form-check-input:checked {
    background-color: #2c3e50;
    border-color: #2c3e50;
}

/* ===== Buttons ===== */

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: space-between;
}

.btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
}

.btn ion-icon {
    font-size: 20px;
}

.btn-primary {
    background-color: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.25);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

.btn-next {
    margin-left: auto;
}

/* ===== Alerts ===== */

.alert {
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.alert ion-icon {
    font-size: 24px;
}

.alert-info {
    background-color: #e7f3ff;
    color: #0c5da5;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-link {
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
}

/* ===== Success Page ===== */

.success-container {
    text-align: center;
}

.spinner-container {
    margin-bottom: 30px;
}

.spinner-border {
    width: 60px;
    height: 60px;
    border-width: 5px;
}

.success-header {
    margin-bottom: 40px;
}

.success-header ion-icon {
    font-size: 80px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.success-header h3 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 700;
}

.success-header p {
    color: #718096;
    font-size: 1.1rem;
}

.data-summary {
    text-align: left;
    margin-top: 30px;
}

.data-summary h5 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-summary h5 ion-icon {
    font-size: 28px;
    color: #2c3e50;
}

.summary-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border: 2px solid #e2e8f0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-label ion-icon {
    font-size: 18px;
    color: #34495e;
}

.summary-value {
    color: #2d3748;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* ===== Footer ===== */

.footer-section {
    background-color: #2d3748;
    color: white;
    padding: 30px 0;
    margin-top: auto;
}

.footer-section p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-section ion-icon {
    font-size: 20px;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== Responsive Design ===== */

@media (max-width: 768px) {
    .header-section {
        padding: 30px 0;
    }
    .header-title {
        font-size: 1.75rem;
        gap: 10px;
    }
    .header-title ion-icon {
        font-size: 2rem;
    }
    .header-subtitle {
        font-size: 0.95rem;
    }
    .header-icon {
        display: none;
    }
    .progress-container {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 0;
    }
    .progress-step {
        flex: 1 1 40%;
    }
    .progress-line {
        display: none;
    }
    .progress-icon {
        width: 50px;
        height: 50px;
    }
    .progress-icon ion-icon {
        font-size: 22px;
    }
    .progress-label {
        font-size: 0.75rem;
    }
    .form-container {
        padding: 25px 20px;
        margin: 0 10px 30px;
        border-radius: 10px;
    }
    .form-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    .form-header h3 {
        font-size: 1.4rem;
    }
    .form-header p {
        font-size: 0.9rem;
    }
    .form-header ion-icon {
        font-size: 50px;
    }
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    .btn-next {
        margin-left: 0;
        order: 1;
    }
    .btn-prev {
        order: 2;
    }
    .summary-card {
        padding: 20px;
    }
    .summary-item {
        flex-direction: column;
        gap: 5px;
        padding: 10px 0;
    }
    .summary-value {
        max-width: 100%;
        text-align: left;
        font-size: 0.95rem;
    }
    .summary-label {
        font-size: 0.9rem;
    }
    .success-header ion-icon {
        font-size: 60px;
    }
    .success-header h3 {
        font-size: 1.5rem;
    }
    .success-header p {
        font-size: 1rem;
    }
    .data-summary h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .header-section {
        padding: 25px 0;
    }
    .header-title {
        font-size: 1.4rem;
        gap: 8px;
    }
    .header-title ion-icon {
        font-size: 1.6rem;
    }
    .header-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .progress-container {
        gap: 10px;
    }
    .progress-icon {
        width: 45px;
        height: 45px;
    }
    .progress-icon ion-icon {
        font-size: 20px;
    }
    .progress-label {
        font-size: 0.7rem;
    }
    .form-container {
        padding: 20px 15px;
        margin: 0 5px 20px;
    }
    .form-header {
        margin-bottom: 20px;
    }
    .form-header h3 {
        font-size: 1.25rem;
    }
    .form-header p {
        font-size: 0.85rem;
    }
    .form-header ion-icon {
        font-size: 45px;
    }
    .form-label {
        font-size: 0.9rem;
    }
    .form-control,
    .form-select {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .otp-input {
        font-size: 1.5rem;
        letter-spacing: 5px;
        padding: 14px;
    }
    .alert {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    .summary-card {
        padding: 15px;
    }
    .spinner-border {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
    .success-header ion-icon {
        font-size: 50px;
    }
    .success-header h3 {
        font-size: 1.3rem;
    }
    .success-header p {
        font-size: 0.9rem;
    }
    .data-summary h5 {
        font-size: 1rem;
    }
    .footer-section {
        padding: 20px 0;
        font-size: 0.85rem;
    }
}