/* Base Styles */
:root {
    --primary-color: #FE0002;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
/* for state search only */
   .row1 {
        position: relative;
        width: 300px;
    }
    
    .select-hidden {
        display: none;
    }
    
    .select-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        z-index: 100;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        max-height: 300px;
        overflow-y: auto;
    }
    
    .select-search-container {
        padding: 8px;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 0;
        background: white;
        z-index: 101;
    }
    
    .select-search {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .select-options {
        padding: 0;
    }
    
    .select-option {
        padding: 10px 15px;
        cursor: pointer;
    }
    
    .select-option:hover {
        background-color: #f5f5f5;
    }
    
    .select-option.selected {
        background-color: #e6f2ff;
    }


/* Registration Container */
.registration-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
}

.registration-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, black,var(--primary-color));
    color: white;
}

.logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.registration-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.registration-header p {
    font-size: 14px;
    opacity: 0.9;
}

/* Registration Form */
.registration-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.form-section h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.form-group {
    position: relative;
}


.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 14px;
}

/* Password Input Field */
.form-group input[type="password"],
.form-group input[type="text"] {
    padding-right: 40px; /* Make space for the toggle button */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    padding: 12px 15px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Password Hints */
.password-hints {
    display: none;
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-top: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
    animation: fadeIn 0.2s ease-out;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.password-hints p {
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.password-hints ul {
    list-style-type: none;
    padding-left: 5px;
}

.password-hints li {
    margin-bottom: 3px;
    position: relative;
    padding-left: 20px;
    color: var(--gray-color);
}

.password-hints li:before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--danger-color);
}

.password-hints li.valid {
    color: var(--success-color);
}

.password-hints li.valid:before {
    content: '✓';
    color: var(--success-color);
}

/* Password Visibility Toggle */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 35px; /* Adjust based on your label height */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-color);
    padding: 5px;
    z-index: 2;
}
.toggle-password:hover {
    color: var(--primary-color);
}

/* Password Strength Meter */
.password-strength {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    height: 5px;
    flex: 1;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background-color: #e74c3c;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 600;
    min-width: 50px;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 12px 15px;
    border: 1px dashed #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.file-upload-label i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.file-upload-text {
    display: block;
    font-size: 14px;
    color: var(--dark-color);
}

.file-name {
    display: block;
    font-size: 12px;
    color: var(--gray-color);
    margin-top: 5px;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-color);
    font-size: 14px;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .registration-container {
        border-radius: 0;
    }
    
    .registration-header {
        padding: 20px 15px;
    }
    
    .registration-form {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 35px 12px 10px;
    }
    
    .toggle-password {
        right: 8px;
        top: 33px;
    }
      .password-hints {
        width: calc(100% - 20px);
        left: 10px;
    }
}