.ts-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.ts-wrapper .ts-control,
.ts-wrapper .ts-control input {
    cursor: text !important;
    border: none !important;
}

.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="%23000" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2rem;
}

.custom-select::-ms-expand {
    display: none;
}

label.semi-header {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0;
    letter-spacing: 0.025em;
    display: block;
}

label.description {
    font-size: 12px;
    color: #6c757d;
    font-weight: 350;
    display: block;
    /* margin-top: 4px; */
    margin-bottom: 8px;
}

.error-message {
    color: red;
    font-size: 0.75rem !important;
    margin-top: 0rem !important;
}

.section-header {
    color: #495057;
    background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
    padding: 25px 20px 25px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.025em;
}

.section-header h5 {
    font-size: 1.1rem;
    margin-bottom: 0px;
    font-weight: 500;
    color: #495057;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 10px;
    padding-left: 10px;
}

.form-col-quarter {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 10px;
    padding-left: 10px;
}

.form-col-third {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 10px;
    padding-left: 10px;
}

.form-col-three-quarters {
    flex: 0 0 75%;
    max-width: 75%;
    padding-right: 10px;
    padding-left: 10px;
}

.form-col-full {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 10px;
    padding-left: 10px;
}

.card-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (max-width: 768px) {
    .form-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .form-col-third {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .form-col-three-quarters {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .card-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.required-field::after {
    content: " *";
    color: #e74a3b;
    font-weight: bold;
}

.form-control {
    font-size: 14px;
    color: #495057;
}

.form-control:focus {
    border-color: #667eea;
    /* box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25); */
}

.page-title {
    font-weight: 500;
    color: #495057;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: #667eea;
    border: none;
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 0.025em;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled,
.btn-primary.btn-disabled {
    /* background: #6c757d !important; */
    border-color: #6c757d !important;
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary:disabled:hover,
.btn-primary.btn-disabled:hover {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 8px 20px;
    font-weight: 500;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 0.025em;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Field spacing improvements */
.mb-4 {
    margin-bottom: 24px !important;
}

.mb-3 {
    margin-bottom: 16px !important;
}

.mb-2 {
    margin-bottom: 12px !important;
}

/* Cascading Dropdown Styles */
.cascading-dropdown {
    position: absolute;
    z-index: 99999;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: auto;
}

.cascading-container {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 100px;
    min-width: 180px;
    max-height: 300px;
    overflow-x: auto;
    white-space: nowrap;
}

.cascading-container > .level {
    flex: 0 0 220px;
}

.cascading-level {
    min-width: 180px;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    flex-shrink: 0;
    border-right: 1px solid #eee;
}

.cascading-level[data-level="0"] {
    border-right: none;
}

.cascading-level[data-level]:not([data-level="0"]) {
    border-right: 1px solid #eee;
}

.cascading-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: none;
    display: flex !important;
    align-items: center !important;
    background-color: white;
    height: 35px;
    font-size: 14px;
    color: #212529;
    text-decoration: none;
    line-height: normal;
}

.cascading-item:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.cascading-item.selected {
    font-weight: bold;
    background-color: #e3f2fd;
}

.cascading-item .content-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.cascading-item .name-span {
    flex: 1;
}

.cascading-item .plus-icon {
    color: #666;
    font-size: 14px;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 8px;
    flex-shrink: 0;
}

.cascading-item .plus-icon:hover {
    color: #007bff;
}

/* Tom Select dropdown z-index and overflow fixes */
.ts-dropdown {
    z-index: 10000 !important;
}

.section-card {
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 0.05rem 0.75rem 0 rgba(58, 59, 69, 0.15);
    overflow: visible !important; /* Allow dropdowns to overflow */
}

.section-body {
    padding: 18px;
    background-color: #fff;
    overflow: visible !important; /* Allow dropdowns to overflow */
}

.form-col {
    position: relative; /* Ensure proper positioning context */
    overflow: visible !important; /* Allow dropdowns to overflow */
}

/* Enhanced Button Styling */
.upload-btn {
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    border-width: 2px !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15) !important;
}

.upload-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3) !important;
    border-color: #667eea !important;
    color: #667eea !important;
}

.upload-description {
    font-size: 13px;
    color: #6c757d;
}

.add-section-btn {
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    border-width: 2px !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    min-width: 150px;
}

.add-section-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn-outline-primary.add-section-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #5a6fd8 100%) !important;
    border-color: #667eea !important;
    color: white !important;
}

.btn-outline-success.add-section-btn:hover {
    background: linear-gradient(135deg, #28a745 0%, #20963d 100%) !important;
    border-color: #28a745 !important;
    color: white !important;
}

.add-section-container {
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px dashed #dee2e6;
    margin: 8px 0;
}

.add-section-description {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 0;
}

.submit-section {
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e3e6f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: 0 auto;
}

.submit-btn {
    padding: 10px 24px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    min-width: 140px;
    background: linear-gradient(135deg, #667eea 0%, #5a6fd8 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4) !important;
    background: linear-gradient(135deg, #5a6fd8 0%, #4c63d2 100%) !important;
}

.cancel-btn {
    padding: 10px 24px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    min-width: 100px;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    border: none !important;
    color: white !important;
}

.cancel-btn:hover {
    transform: translateY(-1px) !important;
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

.submit-description {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 0;
}


/* Pay Range Input Styling */
.pay-range-input {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    padding: 0;
    width: 100%;
}

.pay-range-input .pay-range-min,
.pay-range-input .pay-range-max {
    min-width: 0;
    border: none;
    text-align: center;
}

.pay-range-input .pay-range-min:focus,
.pay-range-input .pay-range-max:focus {
    outline: 0;
}

.pay-range-input:focus-within {
    border-color: #667eea;
}

.pay-range-separator {
    color: #6c757d;
    font-weight: 500;
    flex-shrink: 0;
    user-select: none;
}

/* Responsive design for pay range */
@media (max-width: 576px) {
    .pay-range-input {
        flex-direction: column;
        gap: 4px;
    }
    
    .pay-range-separator {
        align-self: center;
        transform: rotate(90deg);
    }
}

/* Date Range Input Styling */
.date-range-input {
    position: relative;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23666" viewBox="0 0 16 16"><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.date-range-input:focus {
    /* border-color: #667eea; */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23667eea" viewBox="0 0 16 16"><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg>');
}

/* Flatpickr custom styling */
.flatpickr-calendar {
    border-radius: 8px !important;
    border: 1px solid #e3e6f0 !important;
}

.flatpickr-monthDropdown-months{
    font-size: 8px;
}

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #007bff;
    background-color: #e7f3ff;
}

.file-upload-area.dragover {
    border-color: #007bff;
    background-color: #e7f3ff;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.file-info {
    background-color: #e9ecef;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
}

.file-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.requirements-list {
    font-size: 0.875rem;
    color: #6c757d;
}

.requirements-list li {
    margin-bottom: 0.25rem;
}

/* Sticky Form Buttons */
.sticky-form-buttons {
    position: fixed;
    top: 76%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

/* Scroll animation classes */
.sticky-form-buttons.scrolling {
    transform: translateY(-50%) scale(0.95);
    opacity: 0.8;
}

.sticky-form-buttons.scroll-up {
    transform: translateY(-50%) translateY(-5px);
}

.sticky-form-buttons.scroll-down {
    transform: translateY(-50%) translateY(5px);
}

/* Ensure transitions work for all states */
.sticky-form-buttons.scrolling.scroll-up {
    transform: translateY(-50%) translateY(-5px) scale(0.95);
    opacity: 0.8;
}

.sticky-form-buttons.scrolling.scroll-down {
    transform: translateY(-50%) translateY(5px) scale(0.95);
    opacity: 0.8;
}

/* For xl screens and up - col-xl-6 offset-xl-3 (50% width, centered) */
@media (min-width: 1200px) {
    .sticky-form-buttons {
        left: calc(25% + 50%); /* offset(25%) + width(50%) + margin  */
    }
}

/* For large screens and below - col-12 (full width with container padding) */
@media (max-width: 1199px) and (min-width: 769px) {
    .sticky-form-buttons {
        left: calc(100% - 80px); /* Position right after the form content */
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sticky-form-buttons {
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
        transform: none;
        flex-direction: row;
    }
    
    .sticky-form-buttons .btn {
        min-width: auto;
        padding: 8px 16px;
        font-size: 14px;
    }
}

.circle-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Language Checkboxes Styling */
.language-checkboxes {
    display: flex;
    flex-direction: column;
    /* gap: 4px; */
}

.language-check-item {
    display: flex;
    align-items: center;
    padding: 4px 0px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

input.language-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 2px solid #ced4da;
    border-radius: 4px;
    flex-shrink: 0;
}

input.language-checkbox:checked {
    background-color: #667eea;
    border-color: #667eea;
}

input.language-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.language-label {
    font-size: 14px;
    font-weight: 400;
    color: #495057;
    margin-left: 10px;
    cursor: pointer;
    user-select: none;
    line-height: 1.2;
}

.language-check-item:hover .language-label {
    color: #667eea;
}
.select-skills .ts-control{
    height: 120px;
    background-color: #28a745;
}