* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #4682b4 50%, #1e3c72 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background-image: url('../images/header.png');
    background-size: cover;         
    background-position-x: 7%; /* geser ke kanan sedikit */
    background-position-y: center;

    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3.5 / 1;                            

    color: white;
    overflow: hidden; 
    padding: 0; 
    margin: 0;          
    text-align: center;
}

/* Check Paper Section */
.check-section {
    text-align: center;
    padding: 40px 20px;
}

.check-section h2 {
    margin-bottom: 15px;
    color: #374151;
    font-size: 2rem;
    font-weight: 600;
}

.subtitle {
    margin-bottom: 40px;
    color: #6b7280;
    font-size: 1.1rem;
}

.check-input {
    width: 300px;
    padding: 15px 20px;
    font-size: 1.2rem;
    text-align: center;
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.check-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.info-box {
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Buttons */
.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.3);
}

.btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
    margin-top: 10px;
}

.btn-loading {
    display: none;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid;
    font-size: 0.95rem;
}

.alert strong {
    font-weight: 600;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-input:focus,
.form-select:focus,
.check-input:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .header {
        background: #4f46e5 !important;
        /* -webkit-print-color-adjust: exact; */
        /* color-adjust: exact; */
    }
    
    .btn, .download-link {
        display: none;
    }
} */

/* Registration Form Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Progress Container */
.progress-container {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

/* Progress Line */
.progress-line {
    position: absolute;
    top: 30px;
    left: 15%;
    right: 15%;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    z-index: 1;
}

.progress-line-active {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
    transition: width 0.8s ease-in-out;
}

/* Steps */
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
    background: white;
    color: #6c757d;
}

.step-circle.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
    transform: scale(1.1);
}

.step-circle.pending {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.step-title {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    text-align: center;
}

.step-desc {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    line-height: 1.3;
}

/* Form Section */
.form-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.form-section h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 15px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.form-label i {
    color: #007bff;
    width: 16px;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-input:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Styling untuk validation message */
.form-input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Success Message */
.success-message {
    color: #28a745;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.success-message i {
    margin-right: 5px;

}
.info-message {
    color: inherit; 
    font-size: 12px;
    margin-top: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
    opacity: 0.8; 
}

.info-message i {
    margin-right: 6px;
    margin-top: 1px;
    flex-shrink: 0;
}

.info-message .note-label {
    font-weight: 600;
    margin-right: 4px;
}

/* Error Message */
.error-message {
    color: #dc3545;
    font-size: 16px;
    /* margin-top: 5px; */
}

/* Payment Amount Styling */
.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.input-prefix {
    background: #e9ecef;
    border: 1px solid #e9ecef;
    border-right: none;
    padding: 10px 4px;
    font-weight: 600;
    color: #495057;
    border-radius: 8px 0 0 8px;
    white-space: nowrap;
    min-width: 50px; 
    max-width: 60px; 
    font-size: 0.9em;
}

.input-group .form-input {
    border-radius: 0 8px 8px 0;
    border-left: none;
    flex: 1;
    min-width: 0;
}

.input-group .form-input:focus {
    border-left: 1px solid #007bff;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-text {
    color: #495057;
}

.conditional-text {
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
}

.form-group.disabled {
    opacity: 0.5;
}

.btn-add-file:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.btn-add-file:disabled:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* Payment Amount Display */
.payment-amount-display {
    display: flex;
    align-items: stretch; 
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0; 
}

.payment-amount-display .currency {
    color: #495057;
    font-weight: 600;
    font-size: 0.9em;
    background: #e9ecef; 
    padding: 10px 12px;
    margin: 0; 
    border-right: 1px solid #dee2e6;
    display: flex;
    align-items: center;
}

.payment-amount-display .amount {
    color: #6c757d;
    /* font-weight: 600; */
    font-size: 0.9em;
    padding: 10px 12px;
    flex: 1; 
    display: flex;
    align-items: center;
}

/* Note Display */
.note-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    min-height: 80px;
}

.note-display p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
    font-style: italic;
}

/* Textarea styling */
textarea.form-input {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

textarea.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Character counter for note */
.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
}

.char-counter.warning {
    color: #ffc107;
}

.char-counter.danger {
    color: #dc3545;
}

/* File Upload */
.file-upload {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.file-upload:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.file-upload.has-file {
    border-color: #28a745;
    background: #f8fff9;
    cursor: default;
}

.upload-icon {
    font-size: 32px;
    color: #6c757d;
    margin-bottom: 10px;
}

.upload-icon.success {
    color: #28a745;
}

.upload-icon i {
    display: block;
}

.file-upload p {
    margin: 5px 0;
    color: #333;
}

.upload-desc {
    color: #6c757d;
    font-size: 12px;
}

.upload-desc.success {
    color: #28a745;
}

.btn-change {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-change:hover {
    background: #5a6268;
}

.icon-dark {
    color: #333 !important;
}

.whatsapp-icon {
  background-color: #333;   
  color: white;              
  border-radius: 50%;        
  padding: 5px;             
  font-size: 14px;           
}

/* File Status */
.file-status {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8fff9;
    border: 2px solid #28a745;
    border-radius: 8px;
}

.file-icon {
    margin-right: 10px;
    color: #28a745;
}

.file-name {
    flex: 1;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.file-status-badge {
    color: #28a745;
    font-size: 12px;
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Status Messages */
.status-message {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.status-message.pending {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.status-message.validated {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.message-icon {
    font-size: 24px;
    margin-right: 15px;
}

.message-icon i {
    color: inherit;
}

.status-message.pending .message-icon {
    color: #856404;
}

.status-message.validated .message-icon {
    color: #155724;
}

.message-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.message-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Invitation Section */
.invitation-section {
    text-align: center;
    padding: 20px;
}

.invitation-card {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(40,167,69,0.3);
}

.invitation-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.invitation-card h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.invitation-card p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.form-footer p {
    margin: 10px 0;
    color: #666;
}

.form-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 15px;
    }
    
    .progress-container, .form-section {
        padding: 25px 20px;
    }
    
    .progress-steps {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .progress-line {
        display: none;
    }
    
    .step {
        width: 100%;
        max-width: 200px;
    }
    
    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .form-section h3 {
        font-size: 20px;
    }
    
    .invitation-card {
        padding: 30px 20px;
    }
    
    .invitation-icon {
        font-size: 36px;
    }
    
    .invitation-card h4 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .file-upload {
        padding: 20px 15px;
    }
    
    .upload-icon {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.btn-loading {
    display: inline-flex;
    align-items: center;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Update untuk Progress Line Active dengan Gradient Biru */
.progress-line-active {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8); 
    border-radius: 2px;
    transition: width 0.8s ease-in-out;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3); 
}

/* Update Step Circle Active dengan Biru Gradient */
.step-circle.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8); 
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4); 
    transform: scale(1.1);
}

/* Update Step Title Active Color */
.step-circle.active + .step-title {
    color: #3b82f6;
    font-weight: 700;
}

/* Enhanced Status Messages untuk 3 Status */
.status-message.register {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.status-message.register .message-icon {
    color: #f59e0b;
}

.status-message.validation {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.status-message.validation .message-icon {
    color: #3b82f6;
}

.status-message.invitation {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.status-message.invitation .message-icon {
    color: #10b981;
}

/* Download Section dalam Status Message */
.download-section {
    margin-top: 15px;
}

.download-section .btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    /* transition: all 0.3s ease; */
}

.download-section .btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Enhanced Button Styles */
.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Enhanced Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Pulse Animation untuk Status Pending */
.status-message.register .message-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Enhanced Responsive Design */
/* @media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .invitation-card {
        padding: 25px 20px;
    }
} */

/* Loading State Enhancement */
.btn[disabled] {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success Animation untuk Completed Steps */
.step-circle.active {
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

/* Notification Badge untuk New Status */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.status-badge.new {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}


