/* Careers Page Specific Styles */
#application-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

#application-form:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
}

.contact-form-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Form input styles */
.input-wrap {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-wrap input[type="text"],
.input-wrap input[type="email"],
.input-wrap input[type="tel"],
.input-wrap input[type="file"],
.input-wrap select,
.input-wrap textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    background-color: #fff;
}

/* Error states */
.input-wrap.has-error input,
.input-wrap.has-error select,
.input-wrap.has-error textarea,
.input-wrap input.is-invalid,
.input-wrap select.is-invalid,
.input-wrap textarea.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    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);
}

.input-wrap.has-error .form-text {
    color: #dc3545;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip {
    display: block;
}

/* File upload styles */
.file-upload-label {
    display: block;
    cursor: pointer;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
}

.file-upload-label:hover {
    border-color: #86b7fe;
    background-color: #f1f7ff;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6c757d;
}

.file-upload-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #0d6efd;
}

.file-upload-text {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.file-upload-format {
    font-size: 0.8rem;
    opacity: 0.8;
}

.file-info {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.file-info i {
    margin-right: 0.5rem;
    color: #0d6efd;
}

/* Character counter */
.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Checkbox styles */
.input-checkbox {
    margin: 1.5rem 0;
}

.custom-checkbox {
    position: relative;
    padding-left: 1.5em;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.check-mark {
    position: absolute;
    top: 0.2em;
    left: 0;
    height: 1.1em;
    width: 1.1em;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25em;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .check-mark {
    border-color: #86b7fe;
}

.custom-checkbox input:checked ~ .check-mark {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.check-mark:after {
    content: "";
    position: absolute;
    display: none;
    left: 0.4em;
    top: 0.1em;
    width: 0.3em;
    height: 0.6em;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .check-mark:after {
    display: block;
}

/* Form message styles */
.form-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
    display: none;
}

.form-message.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.form-message.alert-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Loading state */
.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
}

.btn-loading .fa-spinner {
    margin-right: 0.5rem;
}

/* Success state */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%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);
}

.was-validated .form-control:valid:focus,
.form-control.is-valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.15);
}

.section-title {
    position: relative;
    margin-bottom: 3rem !important;
}

.section-title .subtitle {
    color: #0d6efd;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    color: #212529;
}

.title-shape {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* Form Styles */
.input-wrap {
    margin-bottom: 1.75rem;
    position: relative;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    outline: none;
}

.input-wrap textarea {
    min-height: 150px;
    resize: vertical;
}

/* File Upload Styles */
.file-upload-label {
    display: block;
    width: 100%;
    padding: 2.5rem 1.5rem;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    margin-bottom: 0;
}

.file-upload-label:hover {
    border-color: #0d6efd;
    background-color: #f1f8ff;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.file-upload-label i {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 0.75rem;
}

.file-upload-text {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #495057;
}

.file-upload-format {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Checkbox Styles */
.custom-checkbox {
    margin: 1.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .check-mark {
    position: absolute;
    top: 0.25rem;
    left: 0;
    height: 1.25rem;
    width: 1.25rem;
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-checkbox input:checked ~ .check-mark {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.custom-checkbox .check-mark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .check-mark:after {
    display: block;
}

/* Button Styles */
.e-primary-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    padding: 1rem 2.5rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.e-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    color: #fff;
}

.e-primary-btn .icon-wrap {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.e-primary-btn .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    transition: all 0.3s ease;
}

.e-primary-btn:hover .icon {
    transform: translate(-30%, -50%);
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Error Message Styling */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    opacity: 0;
    height: 0;
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    height: auto;
    margin-top: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .contact-form-wrap {
        padding: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.98px) {
    .contact-form-wrap {
        padding: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .e-primary-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
