@font-face {
    font-family: 'aliBaba';
    src: url('/ALIBABA.TTF') format('truetype');
}

:root {
    --primary: #2c3e50;
    --secondary: #338fce;
    --secondary-light: #5cb2eb;
    --success: #27ae60;
    --danger: #e74c3c;
    --bg: #f5f7fb;
    --card-bg: #ffffff;
    --border: #e0e6ed;
    --text: #333;
}

* {
    box-sizing: border-box;
    font-family: 'aliBaba', sans-serif;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #f5f7fb, #d9e9f7);
}

.apply-container {
    max-width: 920px;
    margin: 30px auto;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.apply-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 30px;
    text-align: center;
}

.apply-header h1 {
    margin: 0;
    font-size: 24px;
}

.apply-header p {
    margin-top: 8px;
    opacity: .85;
}

.apply-body {
    padding: 30px;
}

.form-section {
    display: none;
    background: #fafbfc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    transition: all .3s ease;
}

.form-section.active {
    display: block;
}

.form-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--primary);
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text);
}

.form-control,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 14px;
    transition: .2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(51, 143, 206, 0.2);
    outline: none;
}

.required-field::after {
    content: " *";
    color: var(--danger);
}

.experience-item {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.remove-exp {
    position: absolute;
    top: 10px;
    left: 10px;
    color: var(--danger);
    cursor: pointer;
}

.question-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

.question-text {
    font-weight: 600;
    margin-bottom: 10px;
}

.btn-next,
.btn-prev,
.btn-submit,
.btn-add {
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: .2s;
}

.btn-next, .btn-submit, .btn-add {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: #fff;
    margin: 20px 5px 0 0;
}

.btn-prev {
    background: #eee;
    color: #555;
}

.btn-next:hover,
.btn-submit:hover,
.btn-add:hover {
    transform: translateY(-2px);
}

.form-progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    transition: .4s;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
}

.step {
    opacity: .4;
    text-align: center;
    flex: 1;
}

.step.active {
    opacity: 1;
    color: var(--secondary);
}

.step.completed {
    opacity: 1;
    color: var(--success);
}

#autosave-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--success);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    display: none;
}

.input-error {
    border-color: var(--danger);
}

.field-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

@media (max-width: 768px) {

    .apply-body {
        padding: 15px;
    }

    .form-section {
        padding: 15px;
    }

    .apply-header h1 {
        font-size: 18px;
    }

    .btn-next,
    .btn-prev,
    .btn-submit {
        padding: 8px 15px;
        font-size: 12px;
    }

    .steps span {
        display: none;
    }
}

.apply-success {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn .5s ease;
}

.success-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.success-desc {
    color: #777;
    margin-bottom: 25px;
    font-size: 15px;
}

.tracking-box {
    background: #2c3e50;
    color: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 25px;
}

.tracking-box span {
    display: block;
    font-size: 13px;
    opacity: .7;
}

.tracking-box strong {
    font-size: 22px;
    letter-spacing: 2px;
}

.info-box {
    background: #eef7fc;
    border: 1px solid #d6eaf8;
    color: #2c3e50;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 500px;
    font-size: 14px;
}

.info-box i {
    color: #3498db;
    margin-left: 5px;
}

.btn-back-home {
    display: inline-block;
    margin-top: 15px;
    background: linear-gradient(135deg, #338fce, #5cb2eb);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: .3s;
}

.btn-back-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(51, 143, 206, .3);
}
#clearFormBtn {
    background: #fff;
    border: 1px solid #8b8b8b33;
    color: #999;
    font-size: 13px;
    width: auto;
    margin: 0 auto;
    padding: 6px 12px;

    transition: .3s;
}

#clearFormBtn:hover {
    color: #e74c3c;
    border-color: #e74c3c;
    background: #fff5f5;
}

.job-info-box {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.job-info-inner h5 {
    margin-bottom: 10px;
    font-weight: bold;
}

.step-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.step-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.step-image-wrapper {
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
}
