/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1ABC9C;      /* Hijau toska */
    --primary-dark: #16A085;
    --secondary-color: #3498DB;    /* Biru */
    --accent-color: #F1C40F;       /* Kuning emas */
    --success-color: #2ECC71;
    --error-color: #E74C3C;
    --warning-color: #F39C12;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #DDDDDD;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f5f7fa;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.registration-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.progress-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.timer, .save-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.timer i, .save-status i {
    color: var(--accent-color);
}

#saveStatus i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* ===== PROGRESS STEPS ===== */
.progress-container {
    background-color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.progress-bar {
    height: 6px;
    background-color: var(--light-color);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 20%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: white;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
    transition: var(--transition);
}

.step.active .step-number {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== MAIN CONTENT ===== */
.registration-main {
    padding: 40px 0;
    min-height: 70vh;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

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

.step-header {
    margin-bottom: 30px;
    text-align: center;
}

.step-header h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.step-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== FORM STYLES ===== */
.registration-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
    width: 20px;
}

.required {
    color: var(--error-color);
    margin-left: 5px;
}

input, select, textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
    font-style: italic;
}

/* Radio & Checkbox Styles */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

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

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-text {
    color: var(--text-color);
}

/* Input with Suffix */
.input-with-suffix {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-suffix input {
    flex: 1;
}

.input-suffix {
    color: var(--text-light);
    white-space: nowrap;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 12px 20px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* ===== FORM SECTIONS ===== */
.form-section {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.form-section h3 i {
    color: var(--accent-color);
}

.form-notice {
    background-color: rgba(26, 188, 156, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-notice i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.form-notice p {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Achievement Items */
.achievement-item {
    background-color: white;
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.btn-add {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-add:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== FORM NAVIGATION ===== */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid var(--light-color);
}

.btn-prev, .btn-next, .btn-submit {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    background-color: white;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-prev:hover {
    background-color: var(--light-color);
    border-color: var(--text-light);
}

.btn-next {
    background-color: var(--primary-color);
    color: white;
}

.btn-next:hover {
    background-color: var(--primary-dark);
    transform: translateX(5px);
}

.btn-submit {
    background-color: var(--success-color);
    color: white;
}

.btn-submit:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== CONFIRMATION STEP ===== */
.confirmation-container {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.summary-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-color);
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.summary-section h3 i {
    color: var(--primary-color);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.summary-label {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.summary-value {
    color: var(--text-color);
    font-size: 1rem;
}

/* Summary Tabs */
.summary-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.summary-tab {
    padding: 8px 16px;
    background-color: var(--light-color);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.summary-tab:hover {
    background-color: var(--border-color);
}

.summary-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.summary-content {
    display: none;
}

.summary-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Upload Section */
.upload-section {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.upload-info {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.upload-item {
    display: flex;
    flex-direction: column;
}

.upload-item label {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-item label i {
    color: var(--primary-color);
    width: 20px;
}

.upload-item input[type="file"] {
    padding: 10px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    background-color: white;
    cursor: pointer;
    transition: var(--transition);
}

.upload-item input[type="file"]:hover {
    border-color: var(--primary-color);
    background-color: rgba(26, 188, 156, 0.05);
}

.file-info {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
    min-height: 20px;
}

/* Declaration Section */
.declaration-section {
    background-color: rgba(26, 188, 156, 0.05);
    border: 2px solid rgba(26, 188, 156, 0.2);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
}

.declaration-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.declaration-item:last-child {
    margin-bottom: 0;
}

.declaration-item input[type="checkbox"] {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.declaration-item label {
    color: var(--text-color);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

/* ===== FOOTER ===== */
.registration-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.footer-info i {
    color: var(--accent-color);
}

.footer-copyright p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-id {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: var(--radius);
}

.success-id span {
    font-weight: 700;
    color: var(--primary-color);
}

.success-info {
    text-align: left;
    background-color: rgba(46, 204, 113, 0.1);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.success-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark-color);
}

.success-info ul {
    padding-left: 20px;
    color: var(--text-light);
}

.success-info li {
    margin-bottom: 5px;
}

.success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-print, .btn-dashboard, .btn-finish {
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-print {
    background-color: var(--secondary-color);
    color: white;
}

.btn-print:hover {
    background-color: #2980b9;
}

.btn-dashboard {
    background-color: var(--dark-color);
    color: white;
}

.btn-dashboard:hover {
    background-color: #1c2833;
}

.btn-finish {
    background-color: var(--primary-color);
    color: white;
}

.btn-finish:hover {
    background-color: var(--primary-dark);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        justify-content: center;
        text-align: center;
    }
    
    .progress-info {
        width: 100%;
        justify-content: center;
    }
    
    .steps {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .step {
        flex: 0 0 calc(50% - 15px);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-tabs {
        flex-wrap: wrap;
    }
    
    .upload-grid {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-prev, .btn-next, .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .btn-print, .btn-dashboard, .btn-finish {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .step {
        flex: 0 0 100%;
    }
    
    .registration-form {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* ===== UTILITY CLASSES ===== */
.error {
    border-color: var(--error-color) !important;
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
}

.success {
    border-color: var(--success-color) !important;
}

.warning {
    border-color: var(--warning-color) !important;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}