.cv-apply {
    width: 100%;
    max-width: 400px;
}

.cv-apply-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 54px;
    padding: 16px 22px;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-family: 'BandeinsSans', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.cv-apply-open:hover {
    opacity: 0.8;
}

.cv-apply-open[hidden] {
    display: none;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.apply-form[hidden] {
    display: none;
}

.apply-form .af-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-family: 'BandeinsSans', sans-serif;
    font-size: 14.5px;
    outline: none;
}

.apply-form .af-input:focus {
    border-color: #EA635F;
}

.apply-form .af-cv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px dashed rgba(128, 128, 128, 0.5);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-family: 'BandeinsSans', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.apply-form .af-cv.has-file {
    border-style: solid;
    border-color: rgba(20, 199, 154, 0.45);
    color: #14C79A;
}

.apply-form .af-cv .af-cv-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apply-form .af-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
}

.apply-form .af-consent input {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
}

.apply-form .af-consent input:checked {
    border-color: #EA635F;
    background-color: #EA635F;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='10' viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L4.2 8L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 8px;
}

.apply-form .af-consent input:focus-visible {
    outline: 2px solid rgba(234, 99, 95, 0.35);
    outline-offset: 2px;
}

.apply-form .af-consent a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.apply-form .af-error {
    display: none;
    color: #EA635F;
    font-size: 12.5px;
    line-height: 1.45;
    text-align: center;
}

.apply-form.show-error .af-error,
.apply-form .af-error.oc-visible {
    display: block;
}

.apply-form .af-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 54px;
    padding: 16px 22px;
    border: 1px solid #EA635F;
    border-radius: 8px;
    background: #EA635F;
    color: #fff;
    font-family: 'BandeinsSans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.apply-form .af-submit:hover {
    filter: brightness(1.08);
}

.apply-form .af-cancel {
    padding: 6px 0 0;
    border: 0;
    background: none;
    color: inherit;
    font-family: 'BandeinsSans', sans-serif;
    font-size: 13.5px;
    cursor: pointer;
    opacity: 0.7;
}

.apply-form .af-cancel:hover {
    opacity: 1;
}
