/* Кандидати за работа - form styles */

:root {
    --bkc-red: #9d1b2f;
    --bkc-red-dark: #7c1525;
    --bkc-radius: 999px;
}

/* ---------- Form ---------- */
.bkc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.bkc-intro {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #4a4a4a;
}

.bkc-field {
    position: relative;
}

.bkc-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    border-radius: var(--bkc-radius);
    padding: 18px 26px;
    font-size: 17px;
    line-height: 1.3;
    color: #222;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}

.bkc-input::placeholder {
    color: #8a8a8a;
}

.bkc-input:focus {
    border-color: var(--bkc-red);
    box-shadow: 0 6px 22px rgba(157, 27, 47, 0.18);
}

/* ---------- Position select ---------- */
.bkc-select {
    cursor: pointer;
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}
.bkc-select:invalid {
    color: #8a8a8a; /* placeholder-like colour when nothing chosen */
}
.bkc-field--select.bkc-field--error .bkc-select,
.bkc-select.bkc-error {
    border-color: var(--bkc-red);
    box-shadow: 0 0 0 2px rgba(157, 27, 47, 0.18);
}

/* ---------- File field ---------- */
.bkc-file {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    border: 1px dashed rgba(157, 27, 47, 0.4);
    background: #fff;
    border-radius: min(22px, var(--bkc-radius));
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bkc-file:hover {
    border-color: var(--bkc-red);
}
.bkc-file__button {
    flex: 0 0 auto;
    background: var(--bkc-red);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--bkc-radius);
    white-space: nowrap;
}
.bkc-file__name {
    flex: 1 1 auto;
    font-size: 15px;
    color: #6b6b6b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bkc-file__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.bkc-field--file.bkc-field--error .bkc-file {
    border-color: var(--bkc-red);
    box-shadow: 0 0 0 2px rgba(157, 27, 47, 0.18);
}

/* reCAPTCHA */
.bkc-field--recaptcha {
    display: flex;
    justify-content: flex-start;
}
.bkc-field--recaptcha.bkc-recaptcha--center {
    justify-content: center;
}
.bkc-field--recaptcha.bkc-recaptcha--right {
    justify-content: flex-end;
}
.bkc-recaptcha-notice {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: #8a8a8a;
    text-align: left;
}
.bkc-recaptcha-notice.bkc-recaptcha--center {
    text-align: center;
}
.bkc-recaptcha-notice.bkc-recaptcha--right {
    text-align: right;
}
.bkc-recaptcha-notice a {
    color: var(--bkc-red);
    text-decoration: underline;
}
.bkc-field--recaptcha.bkc-field--error {
    outline: 2px solid rgba(157, 27, 47, 0.5);
    outline-offset: 4px;
    border-radius: 6px;
}

/* Checkboxes (consent) */
.bkc-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 17px;
    color: #1d1d1d;
    cursor: pointer;
    line-height: 1.4;
    padding: 0 6px;
}

.bkc-consent-label input {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    accent-color: var(--bkc-red);
    flex: 0 0 auto;
}

.bkc-consent-label a {
    color: var(--bkc-red);
    text-decoration: underline;
}

/* Submit */
.bkc-submit {
    width: auto;
    min-width: 200px;
    border: 0;
    background: var(--bkc-red);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 20px 24px;
    border-radius: var(--bkc-radius);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}
.bkc-submit:hover {
    background: var(--bkc-red-dark);
}
.bkc-submit:active {
    transform: translateY(1px);
}
.bkc-submit[disabled] {
    opacity: 0.65;
    cursor: default;
}

/* Open button (shortcode) */
.bkc-open-btn {
    display: inline-block;
    border: 0;
    background: var(--bkc-red);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--bkc-radius);
    cursor: pointer;
    transition: background 0.15s ease;
}
.bkc-open-btn:hover {
    background: var(--bkc-red-dark);
    color: #fff;
}

/* Validation + messages */
.bkc-input.bkc-error {
    border-color: var(--bkc-red);
    box-shadow: 0 0 0 2px rgba(157, 27, 47, 0.18);
}

.bkc-message {
    display: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 15px;
}
.bkc-message.bkc-message--error {
    display: block;
    background: #fdecec;
    color: #9d1b2f;
}
.bkc-message.bkc-message--success {
    display: block;
    background: #eaf7ee;
    color: #1f7a3d;
}

/* Anti-spam honeypot — visually hidden but present in the DOM for bots. */
.bkc-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Success panel ---------- */
.bkc-success-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 24px 8px 8px;
    animation: bkc-fade-in 0.25s ease;
}
.bkc-success-icon svg {
    width: 78px;
    height: 78px;
}
.bkc-success-icon circle {
    stroke: #1f9d55;
    stroke-width: 2.5;
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: bkc-stroke 0.5s ease forwards;
}
.bkc-success-icon path {
    stroke: #1f9d55;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: bkc-stroke 0.35s 0.35s ease forwards;
}
.bkc-success-text {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #1d1d1d;
    font-weight: 600;
}
.bkc-success-again {
    border: 0;
    background: transparent;
    color: var(--bkc-red);
    font-size: 15px;
    text-decoration: underline;
    cursor: pointer;
    padding: 6px 10px;
}
.bkc-success-again:hover {
    color: var(--bkc-red-dark);
}
@keyframes bkc-stroke {
    to { stroke-dashoffset: 0; }
}
@keyframes bkc-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Modal ---------- */
.bkc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
}
.bkc-modal.is-open {
    display: block;
}
.bkc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 12, 0.55);
    backdrop-filter: blur(2px);
}
.bkc-modal__dialog {
    position: relative;
    z-index: 1;
    margin: 6vh auto;
    width: min(560px, 92vw);
    max-height: 88vh;
    overflow: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 240, 244, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    padding: 38px 34px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.bkc-modal__title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1d;
}
.bkc-modal__dialog .bkc-intro {
    margin-bottom: 22px;
}
.bkc-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: #6b6b6b;
    cursor: pointer;
}
.bkc-modal__close:hover {
    color: var(--bkc-red);
}

body.bkc-modal-open {
    overflow: hidden;
}

/* Inline (shortcode) wrap */
.bkc-form-wrap {
    width: min(560px, 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 240, 244, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

@media (max-width: 480px) {
    .bkc-modal__dialog,
    .bkc-form-wrap {
        padding: 26px 20px;
    }
    .bkc-input {
        font-size: 16px;
        padding: 16px 20px;
    }
    .bkc-file {
        flex-wrap: wrap;
    }
}

/* ================= Design variants ================= */

/* Field shape (drives the corner radius via --bkc-radius). */
.bkc-shape--pill   { --bkc-radius: 999px; }
.bkc-shape--soft   { --bkc-radius: 14px; }
.bkc-shape--square { --bkc-radius: 6px; }

/* Submit button width. */
.bkc-btn--full .bkc-submit { width: 100%; }

/* Horizontal layout: fields sit side by side in a 2-column grid. */
.bkc-layout--horizontal .bkc-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
.bkc-layout--horizontal .bkc-field--file,
.bkc-layout--horizontal .bkc-field--consent,
.bkc-layout--horizontal .bkc-field--recaptcha,
.bkc-layout--horizontal .bkc-field--submit,
.bkc-layout--horizontal .bkc-message {
    grid-column: 1 / -1;
}
.bkc-layout--horizontal .bkc-field--submit {
    text-align: right;
}
.bkc-layout--horizontal.bkc-btn--full .bkc-field--submit {
    text-align: left;
}

/* Give the horizontal form more breathing room. */
.bkc-form-wrap.bkc-layout--horizontal {
    width: min(860px, 100%);
}
.bkc-modal__dialog.bkc-layout--horizontal {
    width: min(860px, 92vw);
}

@media (max-width: 560px) {
    .bkc-layout--horizontal .bkc-form {
        grid-template-columns: 1fr;
    }
    .bkc-layout--horizontal .bkc-field--submit {
        text-align: left;
    }
}
