* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.page {
  width: 100%;
  background-image: url("bg.png");
  background-repeat: repeat;
  background-color: #cccccc;
  padding: 15px;
}

.header {
	background: linear-gradient(to bottom, #fde6c2, #fbe0a5);
}

.heading {
	background: #091A43;
	color: #FFF;
	padding: 8px;
}

.logo-bh {
	width: 280px;
	margin-bottom: 10px;
}

.header h2 {
	font-size: 30px;
}

input[type=checkbox] {
    transform: scale(1.5);
}

.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.form-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
    position: relative;
}

.uppercase {
	text-transform: uppercase;
}

.form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.form-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.form-header .subtitle {
    margin-top: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.form-body {
    padding: 50px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: block;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.required {
    color: #ef4444;
    font-weight: bold;
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.input-wrapper:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}
	
.ta:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.form-control {
    border: none;
    padding: 18px 20px;
    font-size: 16px;
    background: transparent;
    flex: 1;
    height: 56px;
    outline: none;
    color: #374151;
    font-weight: 500;
}
	
.form-control-otp {
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    background: transparent;
    flex: 1;
    height: 42px;
    outline: none;
    color: #374151;
    font-weight: 500;
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-control-otp::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-selectv {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 20px;
    font-size: 16px;
    background: white;
    color: #374151;
    font-weight: 500;
    height: 65px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
    appearance: none;
}

.select2-selection__rendered {
  margin: -17px;
}

.form-select:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.verify-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 8px;
}

.verify-link:hover {
    color: #4338ca;
    background: rgba(102, 126, 234, 0.05);
    text-decoration: none;
}

.gender-options {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.check-option {
    display: flex;
    align-items: left;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.check-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.02);
}

.gender-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: center;
}

.gender-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.02);
}

.gender-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    margin: 0;
}

.gender-option input[type="radio"]:checked + label {
    color: #667eea;
    font-weight: 600;
}

.gender-option:has(input:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.gender-option label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    color: #374151;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5b6fd8 0%, #6a4190 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6b7280;
    border: none;
    border-radius: 16px;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    color: white;
}

.redOutLine {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(255, 255, 255, 0.95);*/
    /*backdrop-filter: blur(8px);*/
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner.show {
    display: flex;
}

.spinner-content {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.imageLoader {
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.file-upload-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 32px;
    margin: 32px 0;
    border: 2px dashed #d1d5db;
    transition: all 0.3s ease;
}

.file-upload-section:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #fafbff 0%, #ffffff 100%);
}

.file-upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.file-upload-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.file-upload-info h6 {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #374151;
    font-size: 16px;
}

.file-upload-info small {
    color: #6b7280;
    font-size: 14px;
}

.file-upload-info input[type="file"] {
    margin-top: 12px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    transition: all 0.3s ease;
    font-size: 14px;
}

.file-upload-info input[type="file"]:hover {
    border-color: #667eea;
}

.file-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.file-preview:hover {
    transform: scale(1.05);
    border-color: #667eea;
}

.no-file {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
}

.success-section {
    text-align: center;
    padding: 60px 40px;
}

.success-section img {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
}

.success-section h2 {
    color: #10b981;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 2rem;
}

.success-section h4 {
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hidden {
    display: none !important;
}


/* Match the rounded border and height of other inputs */
.select2-container .select2-selection--single {
    height: 65px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 18px 20px !important;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arrow icon positioning */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 65px !important;
    top: 0px !important;
    right: 20px;
}

/* Remove default outline and match focus style */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single.select2-selection--focus {
    outline: none;
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Selected text style */
.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 65px !important;   /* Matches container height */
    padding-left: 20px !important;  /* Optional: match .form-select */
    padding-right: 48px !important; /* Room for dropdown arrow */
    font-size: 16px;
    font-weight: 500;
    color: #374151;
}

/* Dropdown styling */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #667eea !important;
    color: white;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #e0e7ff;
    color: #1e3a8a;
}

/* Ensure width is 100% */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 65px !important;
    display: flex;
    align-items: center; /* ensures vertical alignment */
}

.footer-a {
	background: #374151;
	padding: 10px;
}

.footer-b {
	background: #2A4380;
	padding: 10px;
}


/* Responsive Design */
@media (max-width: 768px) {
	
	.page {
	  width: 100%;
	  background-image: url("bg.png");
	  background-repeat: repeat;
	  background-color: #cccccc;
	  padding: 5px;
	}

    .main-container {
        padding: 0;
    }
	
	.logo-bh {
		width: 200px;
		margin-bottom: 10px;
	}

	.header h2 {
		font-size: 20px;
	}
    
    .form-container {
        border-radius: 20px;
        margin: 10px 0;
    }
    
    .form-header {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
    
    .form-body {
        padding: 20px;
    }
    
    .gender-options {
        flex-direction: column;
        gap: 12px;
    }
    
    .gender-option {
        min-width: auto;
        justify-content: flex-start;
    }
    
    .file-upload-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .file-upload-section {
        padding: 24px 20px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
	.page {
	  width: 100%;
	  background-image: url("bg.png");
	  background-repeat: repeat;
	  background-color: #cccccc;
	  padding: 5px;
	}
    .form-header h2 {
        font-size: 1.8rem;
    }
	
	.main-container {
        padding: 0;
    }
	
	.logo-bh {
		width: 180px;
		margin-bottom: 10px;
	}

	.header h2 {
		font-size: 18px;
	}
    
    .form-body {
        padding: 15px;
    }
    
    .input-wrapper {
        border-radius: 12px;
    }
    
    .form-select {
        border-radius: 12px;
    }
    
    .btn-primary, .btn-secondary {
        border-radius: 12px;
        padding: 16px 24px;
    }
}

/* Animation for smooth transitions */
.form-group {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for form groups */
.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-group:nth-child(7) { animation-delay: 0.7s; }
