/* Enhanced Form Styles for Third-Member Application */

/* General Form Styling Improvements */
.form-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Form Heading Styles */
.form-container h2 {
    color: #0056b3;
    font-size: 1.6rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 30px;
    position: relative;
}

/* Input Field Styling */
.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 12px 15px;
    transition: all 0.3s;
    box-shadow: none;
}

.form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0,86,179,0.15);
}

/* Select Field Styling */
.form-select {
    height: auto;
    padding: 12px 15px;
}

/* Card Styling for Grouped Sections */
.card {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Form Check Styling */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.25em;
}

.form-check-label {
    padding-left: 5px;
}

/* Section Headers */
.section-header {
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 4px solid #0056b3;
}

.section-header h3 {
    margin: 0;
    color: #0056b3;
    font-size: 1.3rem;
}

/* File Upload Styling */
input[type="file"] {
    padding: 10px;
    border: 1px dashed #ced4da;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.file-list {
    margin-top: 10px;
}

.file-item {
    background-color: #e9ecef;
    border-left: 3px solid #0056b3;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Submit Button Styling */
.btn-submit {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-submit:hover {
    background-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Required Field Indicator - Base style */
label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
    display: inline;
    margin-left: 2px;
    font-size: 1.2em;
    vertical-align: top;
    position: static !important;
}

/* Remove the default position adjustments that might be causing issues */
label.required::after {
    top: auto;
    bottom: auto;
}

/* Special styling for radio button labels */
.form-check-label.required::after {
    vertical-align: middle;
}

/* Add a special class to handle multilingual labels */
.asterisk-inline span.en-content {
    position: relative;
}

.asterisk-inline span.en-content::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
    display: inline;
    margin-left: 2px;
    font-size: 1.2em;
    vertical-align: top;
}

/* Ensure all required indicators stay on the same line */
label.required > span,
label.required::after {
    display: inline !important;
}

/* Instructions Panel Enhancement */
.instructions {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #0056b3;
}

.instructions h2 {
    color: #0056b3;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.instructions h3 {
    color: #495057;
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.instructions ol, .instructions ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.instructions li {
    margin-bottom: 8px;
}

/* Reference Sections */
.reference-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Main Headings */
h1 {
    color: #0056b3;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e9ecef;
    font-weight: 600;
}

/* Language Section Styling */
.language-group {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.language-level {
    margin-bottom: 15px;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
    
    .btn-submit {
        width: 100%;
    }
}