* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0A1F44;
    --primary-azure: #2372b9;
    --accent: #FF9800;
    --accent-light: #FFB74D;
    --bg-white: #FFFFFF;
    --text-dark: #5f6368;
    --border-color: #e0e0e0;
    --error-color: #d32f2f;
    --success-color: #388e3c;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-white);
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Form Container */
.form-container {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(10, 31, 68, 0.04);
}

/* Form Section */
.form-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: var(--error-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-azure);
    box-shadow: 0 0 0 3px rgba(35, 114, 185, 0.1);
}

.form-group input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

.help-text {
    display: block;
    font-size: 13px;
    color: #757575;
    margin-top: 6px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-dark);
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-azure);
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.file-upload-label:hover {
    border-color: var(--primary-azure);
    background: rgba(35, 114, 185, 0.02);
}

.file-upload-text {
    color: var(--primary-azure);
    font-weight: 500;
}

.file-upload-name {
    color: var(--text-dark);
    font-size: 14px;
}

.image-preview {
    margin-top: 16px;
    display: none;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Submit Button */
.form-actions {
    margin-top: 40px;
}

.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error Message */
.error-message {
    background: #ffebee;
    color: var(--error-color);
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 4px solid var(--error-color);
    font-size: 14px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-dark);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .form-container {
        padding: 24px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .form-container {
        padding: 20px;
    }
}

/* Select2 Custom Styling */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 16px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    color: var(--text-dark);
    padding-left: 0;
    padding-right: 30px;
    font-size: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 12px;
    top: 0;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-azure);
    box-shadow: 0 0 0 3px rgba(35, 114, 185, 0.1);
    outline: none;
}

/* Dropdown */
.select2-dropdown {
    border: 1px solid var(--primary-azure);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Search box */
.select2-search--dropdown {
    padding: 12px;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
    width: 100%;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary-azure);
}

/* Results */
.select2-results {
    max-height: 300px;
}

.select2-results__options {
    max-height: 280px;
    overflow-y: auto;
}

.select2-results__option {
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-dark);
}

.select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-azure) !important;
    color: white !important;
}

.select2-results__option[aria-selected=true] {
    background-color: #e3f2fd;
    color: var(--primary);
}

/* Loading & No Results */
.select2-results__message {
    padding: 12px 16px;
    font-size: 14px;
    color: #999;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single {
        height: 52px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 52px;
        font-size: 16px;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 52px;
    }
    
    .select2-search--dropdown .select2-search__field {
        padding: 14px 16px;
        font-size: 16px;
        -webkit-appearance: none;
    }
    
    .select2-results__option {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .select2-dropdown {
        margin-top: 4px;
    }
}

/* Prevent body scroll when dropdown open on mobile */
@media (max-width: 768px) {
    .select2-container--open + .select2-container--open {
        position: fixed;
    }
}