/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f0f4f8;
    color: #1e293b;
    line-height: 1.5;
}

/* Header */
.main-header {
  /*  background: #008AD2;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/

    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    /*padding-left: 1rem;*/
    background: #008AD2;
    color: white;
    /*border-radius: 0.5rem;*/
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.main-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.main-header p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Container */
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 0.5rem;
    /*padding: 1rem;*/
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.progress-step {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.5rem;
    color: #94a3b8;
    position: relative;
    cursor: pointer;
}

.progress-step.active {
    color: #1e3a8a;
    font-weight: 600;
}

.progress-step.completed {
    color: #10b981;
}

/* Form Steps */
.form-step {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-step h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    color: #1e3a8a;
}

/* Form Groups */
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #dc2626;
}

.required {
    color: #dc2626;
}

small {
    font-size: 0.75rem;
    color: #64748b;
}

/* Cards */
.card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
}

/* Buttons */
.btn-next,
.btn-prev,
.btn-submit,
.btn-add,
.btn-remove {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-next {
    background: #1e3a8a;
    color: white;
}

.btn-next:hover {
    background: #1e40af;
}

.btn-prev {
    background: #f1f5f9;
    color: #334155;
    margin-right: 0.5rem;
}

.btn-prev:hover {
    background: #e2e8f0;
}

.btn-submit {
    background: #10b981;
    color: white;
}

.btn-submit:hover {
    background: #059669;
}

.btn-add {
    background: #f1f5f9;
    color: #1e3a8a;
    width: 100%;
    margin-top: 0.5rem;
    border: 1px dashed #cbd5e1;
}

.btn-add:hover {
    background: #e2e8f0;
}

.btn-remove {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.btn-remove:hover {
    background: #fecaca;
}

.step-buttons {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    margin: 0.75rem 0;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

/* Declaration Box */
.declaration-box {
    background: #fef9c3;
    border-left: 4px solid #eab308;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

/* Summary Section */
.summary-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.summary-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.summary-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.375rem;
}

.summary-item strong {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

/* Messages */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 1.5rem;
    color: #64748b;
    font-size: 0.75rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 640px) {
    .form-container {
        margin: 1rem auto;
    }
    
    .form-step {
        padding: 1rem;
    }
    
    .progress-bar {
        flex-wrap: wrap;
    }
    
    .progress-step {
        flex-basis: 25%;
        font-size: 0.625rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .step-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        text-align: center;
    }
    
    .btn-prev {
        margin-right: 0;
    }
}


/* Improved mobile select styling */
@media (max-width: 640px) {
    select[multiple] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .nrc-fields {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nrc-field {
        width: 100%;
    }
    
    .nrc-separator {
        display: none;
    }
    
    /* Add labels for mobile NRC fields */
    .nrc-field:before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        color: #64748b;
        margin-bottom: 0.25rem;
    }
}

/* Error styling */
input.error, select.error, textarea.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

/* Success styling for valid fields */
input.valid, select.valid {
    border-color: #10b981;
}