/* Apply Page Styles */
* {
    box-sizing: border-box;
}

.apply {
    background-color: #f8f9fa;
}

.apply-header {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    background-color: #161f37;
    padding: 60px 0;
    color: #fff;
}

.apply-header .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.apply-subtitle {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    margin: 0;
    text-transform: uppercase;
    opacity: 0.8;
    white-space: nowrap;
}

.apply-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Content Wrapper */
.apply-wrapper {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 200px);
}

/* Form Section - 40% */
.apply-form {
    width: 40%;
    background-color: #fff;
    padding: 40px 50px;
}

/* Step Indicator */
.step-indicator {
    color: #377EC2;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.step-indicator span {
    color: #377EC2;
}

/* Progress Bar */
.progress-bar {
    background-color: #e5e7eb;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 30px;
    --total-steps: 4;
}

.progress-bar::before {
    content: '';
    display: block;
    background-color: #377EC2;
    width: calc(100% / var(--total-steps));
    height: 6px;
    transition: all 300ms ease;
}

/* Step Management */
.step {
    display: none;
}

.step.active {
    display: block;
}

.step h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 25px 0;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.social-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #377EC2;
    background-color: #fff;
    color: #183A5C;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.social-link:hover {
    background-color: #377EC2;
    color: #fff;
}

.social-link:hover svg path {
    fill: #fff;
    stroke: #fff;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1a2332;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    color: #1a2332;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #377EC2;
    box-shadow: 0 0 0 3px rgba(55, 126, 194, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: none;
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #183A5C;
    padding: 8px;
    border-radius: 4px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-arrow path {
    stroke: #ffffff !important;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* File Upload */
.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 4px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.file-upload:hover {
    border-color: #377EC2;
    background-color: #f0f7ff;
}

.file-upload svg {
    margin-bottom: 15px;
}

.file-upload p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.file-upload p span {
    color: #377EC2;
    font-weight: 600;
}

.file-upload .allowed-ext {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

/* Language Inputs */
.lang-item {
    margin-bottom: 15px;
}

.lang-inputs {
    display: flex;
    gap: 10px;
}

.lang-inputs input {
    flex: 2;
}

.lang-inputs .select-wrapper {
    flex: 1;
}

/* Add Button */
.add-btn {
    padding: 10px 14px;
    border: none;
    background-color: #183A5C;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.add-btn:hover {
    background-color: #377EC2;
}

/* Button Group - + and - buttons side by side */
.btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-group .add-btn,
.btn-group .remove-btn {
    margin-bottom: 0;
}

/* Remove Button */
.remove-btn {
    padding: 10px 14px;
    border: none;
    background-color: #dc3545;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remove-btn:hover {
    background-color: #c82333;
}

/* Input Wrappers with Remove Button */
.cert-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.cert-input-wrapper input {
    flex: 1;
}

.lang-inputs-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.lang-inputs-wrapper .lang-inputs {
    flex: 1;
}

.lang-inputs-wrapper .remove-btn {
    margin-top: 0;
    height: 44px;
}

/* CAPTCHA Refresh Icon */
.feather-refresh-cw {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#new-image:hover .feather-refresh-cw {
    transform: rotate(180deg);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #1a2332;
}

/* Terms Text */
.terms-text {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    margin: 20px 0;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.prev-btn,
.next-btn {
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a2332;
    background-color: transparent;
}

.prev-btn {
    opacity: 0.8;
}

.prev-btn:hover {
    opacity: 1;
    background-color: transparent;
    color: #1a2332;
}

.next-btn {
    background-color: #f8f9fa;
    padding: 8px 8px 8px 30px;
    border-radius: 0;
    margin-left: auto;
}

.next-btn .arrow-box {
    background-color: #2b7bc4;
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.3s ease;
}

.next-btn:hover {
    background-color: #f1f3f5;
}

.next-btn:hover .arrow-box {
    background-color: #1a2332;
}

/* Right Section - 60% - Sticky to right edge */
.apply-image {
    width: 60%;
    position: relative;
    overflow: hidden;
}

.apply-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive Design */
@media only screen and (max-width: 1200px) {
    .apply-form {
        padding: 35px 40px;
    }

    .apply-header {
        padding: 50px 0;
    }

    .apply-title {
        font-size: 36px;
    }
}

@media only screen and (max-width: 991px) {
    .apply-wrapper {
        flex-direction: column;
    }

    .apply-form {
        width: 100%;
        padding: 30px 25px;
        order: 2;
    }

    .apply-header {
        padding: 40px 0;
    }

    .apply-image {
        width: 100%;
        min-height: 400px;
        order: 1;
    }

    .apply-title {
        font-size: 32px;
    }

    .step h2 {
        font-size: 24px;
    }

    .social-links {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 20px;
    }
}

@media only screen and (max-width: 768px) {
    .apply-header {
        padding-top: 90px;
    }

    .apply-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .apply-title {
        font-size: 28px;
    }

    .apply-form {
        padding: 25px 20px;
        order: 2;
    }

    .apply-image {
        min-height: 300px;
        order: 1;
    }

    .step h2 {
        font-size: 22px;
    }

    .form-buttons {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .prev-btn,
    .next-btn {
        width: 100%;
        justify-content: center;
    }

    .next-btn {
        margin-left: 0;
    }
}