/* Google Fonts - Hind Vadodara for Gujarati */
@import url('https://fonts.googleapis.com/css2?family=Hind+Vadodara:wght@300;400;500;600;700&display=swap');

/* Base styles */
body {
    min-height: 100vh;
    padding: 40px 20px;
    font-family: 'Hind Vadodara', sans-serif;
}

.form-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 40px;
    max-width: 750px;
    margin: 0 auto;
}

/* Typography - Centered Header */
.form-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 2rem;
    text-align: center;
}

.form-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}

.form-label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 6px;
}

.required-asterisk {
    color: #dc3545;
}

/* Form Controls */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 14px;
    transition: all 0.3s;
    font-family: 'Hind Vadodara', sans-serif;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
}

/* Hint text */
.hint-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* OTP Section */
.otp-group {
    display: flex;
    gap: 10px;
}

.otp-group .form-control {
    flex: 1;
}

.btn-otp {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.3s;
    font-family: 'Hind Vadodara', sans-serif;
    font-weight: 500;
}

.btn-otp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-otp:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.verified-badge {
    color: #198754;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

/* Section Divider */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 25px 0;
    border-radius: 2px;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Hind Vadodara', sans-serif;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option label {
    font-weight: 400;
    cursor: pointer;
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    font-size: 13px;
}

.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback,
.form-check-input.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 1px solid #c3e6cb;
}

/* Age Display */
.age-display {
    background-color: #f8f9fa;
    padding: 12px 14px;
    border-radius: 8px;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .form-card {
        padding: 20px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .otp-group {
        flex-direction: column;
    }

    .btn-otp {
        width: 100%;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Education Table */
.edu-table {
    margin-bottom: 0;
}

.edu-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    padding: 12px;
}

.edu-table td {
    vertical-align: middle;
    padding: 8px;
}

.edu-table td:first-child {
    font-weight: 600;
    color: #34495e;
    text-align: center;
    background-color: #f8f9fa;
    width: 120px;
}

.edu-table .form-control,
.edu-table .form-select {
    padding: 8px 10px;
    font-size: 14px;
}

.edu-table .form-control::placeholder {
    color: #adb5bd;
}

/* Education Table Error */
#edu_table_error {
    display: none;
    margin-top: 10px;
    color: #dc3545;
    font-size: 13px;
}

#edu_table_error.show {
    display: block;
}

/* Education Error Messages */
.error-msg {
    display: none;
    color: #dc3545;
    font-size: 11px;
    margin-top: 4px;
}

.error-msg.show {
    display: block;
}