/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

/* Language Selector */
.language-selector {
    position: relative;
}

.language-dropdown {
    position: relative;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-icon {
    font-size: 16px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2d3561;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 6px;
    margin: 4px;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px 0;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 30px;
}

.flash-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

.flash-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.flash-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Container */
.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Form Styles */
.document-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 8px;
}

.section-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-style: italic;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #f59e0b;
    margin-bottom: 8px;
    font-size: 1rem;
}

.field-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* File Upload Styles */
.file-upload-area {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.file-upload-area.dragover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.7;
}

.upload-text p:first-child {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.upload-formats {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.choose-file-btn {
    background: #f59e0b;
    color: #1a1f3a;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.choose-file-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.file-status {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.file-selected {
    color: #22c55e !important;
}

/* Radio Button Styles */
.radio-group {
    margin-bottom: 16px;
}

.radio-option {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.radio-input {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #f59e0b;
}

.radio-label {
    color: #ffffff;
    cursor: pointer;
    font-size: 0.95rem;
}

.conditional-field {
    margin-top: 16px;
    padding-left: 30px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.conditional-field.show {
    opacity: 1;
    max-height: 200px;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #f59e0b;
    flex-shrink: 0;
}

.checkbox-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.consent-link {
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.consent-link:hover {
    color: #d97706;
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a1f3a;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-link {
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #d97706;
    text-decoration: underline;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .document-form {
        padding: 24px;
    }
    
    .file-upload-area {
        padding: 24px 16px;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .checkbox-input {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .form-title {
        font-size: 1.75rem;
    }
    
    .document-form {
        padding: 20px;
    }
    
    .file-upload-area {
        padding: 20px 12px;
    }
    
    .submit-btn {
        font-size: 1rem;
        padding: 14px 24px;
    }
}



/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-container {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f59e0b;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.modal-body h2 {
    color: #f59e0b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 24px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.modal-body h2:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 16px;
    text-align: justify;
}

.modal-body ul {
    margin: 16px 0;
    padding-left: 24px;
}

.modal-body li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.modal-body strong {
    color: #f59e0b;
    font-weight: 600;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.5);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.7);
}

/* Contact information styling */
.contact-info {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info a {
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #d97706;
    text-decoration: underline;
}

/* Responsive modal design */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 16px;
    }
    
    .modal-container {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 24px;
        max-height: calc(95vh - 100px);
    }
    
    .modal-body h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 12px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
}

/* Animation for modal content */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-overlay.active .modal-body {
    animation: modalSlideIn 0.4s ease 0.1s both;
}

