* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4a6 50%, #b8860b 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(212, 175, 55, 0.1);
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
    text-align: center;
    padding: 50px 30px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/signupbanner.avif);
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    animation: subtle-zoom 20s ease-in-out infinite alternate;
}

@keyframes subtle-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.header-content {
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header p {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container {
    padding: 50px 45px;
}

.form-section {
    margin-bottom: 45px;
    padding: 35px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 16px;
    border-left: 5px solid #d4af37;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.form-section:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.12);
    transform: translateY(-2px);
}

.section-title {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    position: relative;
}

.section-title::before {
    content: '';
    width: 35px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f4e4a6);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label, .form-label {
    margin-bottom: 10px;
    color: #34495e;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.required, .text-danger {
    color: #e74c3c;
    font-weight: 700;
}

/* Enhanced inputs, selects, and textareas */
input, select, textarea, .form-control, .form-select {
    padding: 14px 18px;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #2c3e50;
    font-family: inherit;
    width: 100%;
}

input:hover, select:hover, textarea:hover, .form-control:hover, .form-select:hover {
    border-color: #d4af37;
    background: #fefefe;
}

input:focus, select:focus, textarea:focus, .form-control:focus, .form-select:focus {
    outline: none;
    border-color: #d4af37;
    background: white;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15), 0 4px 12px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

input::placeholder, textarea::placeholder {
    color: #95a5a6;
    opacity: 0.8;
}

/* Enhanced VirtualSelect Styling */
.vscomp-ele {
    width: 100% !important;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

.vscomp-wrapper {
    position: relative;
}

.vscomp-toggle-button {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid #e8ecef !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #2c3e50 !important;
    background: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    min-height: 48px !important;
}

.vscomp-toggle-button:hover {
    border-color: #d4af37 !important;
    background: #fefefe !important;
}

.vscomp-toggle-button:focus,
.vscomp-wrapper.focused .vscomp-toggle-button {
    outline: none !important;
    border-color: #d4af37 !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15), 0 4px 12px rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-2px) !important;
}

.vscomp-dropbox-container {
    max-height: 300px !important;
    overflow-y: auto !important;
    border: 2px solid #e8ecef !important;
    border-radius: 12px !important;
    background: white !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    margin-top: 8px !important;
}

.vscomp-dropbox {
    border: none !important;
}

.vscomp-search-wrapper {
    padding: 12px !important;
    border-bottom: 2px solid #f1f3f4 !important;
}

.vscomp-search-input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e8ecef !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
}

.vscomp-search-input:focus {
    outline: none !important;
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
}

.vscomp-options-container {
    padding: 8px !important;
}

.vscomp-option {
    padding: 12px 16px !important;
    font-size: 0.98rem !important;
    color: #2c3e50 !important;
    border-radius: 8px !important;
    margin: 3px 0 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.vscomp-option:hover,
.vscomp-option.focused {
    background: linear-gradient(135deg, #fef9f0 0%, #fdfaf5 100%) !important;
    color: #2c3e50 !important;
    transform: translateX(4px) !important;
}

.vscomp-option.selected {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4a6 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3) !important;
}

.vscomp-option.selected:hover {
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%) !important;
}

.vscomp-value {
    flex-grow: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.vscomp-value-tag {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4a6 100%) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    margin: 3px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25) !important;
}

/*.vscomp-clear-button {*/
/*    background: #e74c3c !important;*/
/*    color: white !important;*/
/*    border-radius: 6px !important;*/
/*    padding: 4px 10px !important;*/
/*    margin: 0 8px !important;*/
/*    transition: all 0.2s ease !important;*/
/*}*/

/*.vscomp-clear-button:hover {*/
/*    background: #c0392b !important;*/
/*    transform: scale(1.05) !important;*/
/*}*/

.vscomp-arrow {
    margin-left: auto !important;
    transition: transform 0.3s ease !important;
}

.vscomp-wrapper.opened .vscomp-arrow {
    transform: rotate(180deg) !important;
}

/* CRITICAL FIX - HIDE NATIVE SELECT */
.vscomp-original-select {
    opacity: 0 !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Input Groups */
.input-group {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.input-group .form-control,
.input-group .form-select {
    border-radius: 0;
}

.input-group .form-select:first-child {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.input-group .form-control:last-child {
    border-radius: 0 12px 12px 0;
}

.input-group .form-control:only-child {
    border-radius: 12px;
}

/* File Upload Preview */
#preview-govt, #preview-photo {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

#preview-govt img, #preview-photo img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #e8ecef;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#preview-govt img:hover, #preview-photo img:hover {
    border-color: #d4af37;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

/* File Input Styling */
input[type="file"] {
    padding: 12px;
    border: 2px dashed #d4af37;
    background: rgba(212, 175, 55, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #b8860b;
}

/* Radio and Checkbox Groups */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 2px solid #e8ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.radio-option:hover, .checkbox-option:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.radio-option input, .checkbox-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #d4af37;
}

/* Textarea */
textarea, textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #e8ecef 0%, #f5f7f9 100%);
    border-radius: 99px;
    margin-bottom: 35px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f4e4a6, #d4af37);
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 99px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    animation: gradientMove 3s ease infinite;
    position: relative;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    border-radius: 99px;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4a6 50%, #b8860b 100%);
    background-size: 200% 100%;
    color: white;
    border: none;
    padding: 20px 60px;
    border-radius: 14px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
    background-position: 100% 0;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Phone Input Styling */
.iti {
    width: 100%;
}

.iti__flag-container {
    border-radius: 12px 0 0 12px;
}

.iti__selected-flag {
    padding: 0 16px;
    border-radius: 12px 0 0 12px;
    transition: all 0.3s ease;
}

.iti__selected-flag:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* Terms Text */
.mt-4.text-center p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-style: italic;
}

/* Utility Classes */
.d-none {
    display: none !important;
}

.text-muted {
    color: #95a5a6 !important;
    font-size: 0.9rem;
}

.fw-bold {
    font-weight: 700 !important;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

.mt-2 {
    margin-top: 1rem !important;
}

.gap-2 {
    gap: 0.75rem !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .form-row {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 16px;
    }
    
    .header {
        padding: 35px 20px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header p {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .form-section {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .submit-btn {
        padding: 18px 40px;
        font-size: 1.1rem;
        width: 100%;
    }
    
    input, select, textarea, .form-control, .form-select {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .vscomp-toggle-button {
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
}