/* Application Form Styling */
.apply-now {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Form Container */
.application-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

/* Section Styling */
.form-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.form-section h3 {
    color: #2c4964;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3fbbc0;
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c4964;
    font-weight: 500;
}

.form-group label.required:after {
    content: " *";
    color: #dc3545;
}

/* Form Controls */
.form-control, .form-select {
    height: auto;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3fbbc0;
    box-shadow: 0 0 0 0.2rem rgba(63, 187, 192, 0.25);
}

/* Checkboxes and Radio Buttons */
.form-check {
    margin-bottom: 10px;
    padding-left: 30px;
}

.form-check-input {
    margin-top: 0.3rem;
}

.form-check-input:checked {
    background-color: #3fbbc0;
    border-color: #3fbbc0;
}

/* File Upload */
input[type="file"] {
    padding: 8px;
}

/* Authorization Section */
.authorization-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.authorization-text p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #444444;
}

/* Submit Button */
.btn-primary {
    background-color: #3fbbc0;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #65c9cd;
    transform: translateY(-2px);
}

/* Error States */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .apply-now {
        padding: 40px 0;
    }

    .application-form {
        padding: 20px;
    }

    .form-section {
        padding: 15px;
    }

    .form-section h3 {
        font-size: 20px;
    }

    .btn-primary {
        width: 100%;
    }
}

/* Loading State */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3fbbc0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    margin-top: 20px;
}

/* Required Field Indicator */
.required-field {
    color: #dc3545;
    font-size: 12px;
    margin-top: 30px;
}

/* Tooltip Styling */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}.submit-btn {
    background-color: #3fbbc0;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(63, 187, 192, 0.3);
}

.submit-btn:hover {
    background-color: #35a2a7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63, 187, 192, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(63, 187, 192, 0.3);
}

.submit-btn i {
    font-size: 20px;
    vertical-align: middle;
}

/* Loading State */
.submit-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading:after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .submit-btn {
        width: 100%;
        padding: 12px 30px;
        font-size: 16px;
    }
}