.koopo-job-modal-launcher {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.koopo-job-modal-launcher__meta p {
    margin: 0;
    color: #59627d;
    font-weight: 600;
}

.koopo-btn--new-job {
    width: 100%;
}

.koopo-btn.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: wait;
}

.koopo-btn.is-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: koopo-job-submit-spin 0.8s linear infinite;
}

@keyframes koopo-job-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

.koopo-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.koopo-modal[hidden] {
    display: none;
}

.koopo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 25, 0.55);
    backdrop-filter: blur(2px);
}

.koopo-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    border-radius: 20px;
    border: 1px solid #e4e8f2;
    background: #fff;
    box-shadow: 0 24px 36px rgba(16, 25, 43, 0.2);
    padding: 18px;
    margin: 0 auto;
}

.koopo-modal__dialog--pricing {
    width: min(720px, 100%);
}

.koopo-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.koopo-modal__header h3 {
    margin: 0;
    font-size: 1.45rem;
}

.koopo-modal__close {
   padding:5px 7px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.koopo-modal__form {
    display: grid;
    gap: 10px;
}

.koopo-job-steps {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.koopo-job-steps li {
    border: 1px solid #d7deef;
    border-radius: 999px;
    text-align: center;
    padding: 7px 10px;
    font-size: 12px;
    color: #51607d;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.koopo-job-steps li:hover,
.koopo-job-steps li:focus {
    border-color: #4b5ce1;
    color: #3242b8;
    background: #f5f7ff;
    transform: translateY(-1px);
    outline: none;
}

.koopo-job-steps li.is-active {
    border-color: #4b5ce1;
    color: #3242b8;
    background: #eef1ff;
    font-weight: 700;
}

.koopo-job-steps li.is-done {
    border-color: #3a9a55;
    color: #2a7c44;
    background: #edf9f1;
}

.koopo-job-step-panel {
    display: grid;
    gap: 10px;
}

.koopo-compensation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.koopo-location-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.koopo-location-fieldset legend {
    margin: 0 0 8px;
    font-weight: 700;
    color: #32394f;
}

.koopo-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.koopo-job-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.koopo-modal__form label {
    font-weight: 700;
    color: #32394f;
}

.koopo-modal__form input,
.koopo-modal__form textarea,
.koopo-modal__form select {
    width: 100%;
    border: 1px solid #d5dbeb;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

.koopo-modal__form textarea[data-koopo-rich-editor-input] {
    display: none;
}

.koopo-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -2px;
}

.koopo-editor-toolbar__btn {
    border: 1px solid #d5dbeb;
    background: #fff;
    color: #2b3552;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

.koopo-editor-toolbar__btn:hover,
.koopo-editor-toolbar__btn:focus {
    border-color: #4b5ce1;
    color: #3242b8;
}

.koopo-editor-toolbar__btn--ai {
    margin-left: auto;
    background: linear-gradient(130deg, #ffe986, #00bdb6);
}

.koopo-rich-editor {
    min-height: 220px;
    width: 100%;
    border: 1px solid #d5dbeb;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: #2b3552;
    line-height: 1.65;
    overflow: auto;
}

.koopo-rich-editor:focus {
    outline: none;
    border-color: #4b5ce1;
    box-shadow: 0 0 0 3px rgba(75, 92, 225, 0.12);
}

.koopo-rich-editor p,
.koopo-rich-editor ul,
.koopo-rich-editor ol {
    margin: 0 0 0.9em;
}

.koopo-rich-editor ul,
.koopo-rich-editor ol {
    padding-left: 1.4em;
}

.koopo-rich-editor p:last-child,
.koopo-rich-editor ul:last-child,
.koopo-rich-editor ol:last-child {
    margin-bottom: 0;
}

.koopo-job-ai-status {
    min-height: 20px;
    margin: 0;
}

.koopo-job-ai-status.is-loading {
    color: #3242b8;
}

.koopo-job-ai-status.is-success {
    color: #1f7a3d;
}

.koopo-job-ai-status.is-error {
    color: #b42318;
}

.koopo-qualifications-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.koopo-qualifications-fieldset legend {
    margin: 0 0 8px;
    font-weight: 700;
    color: #32394f;
}

.koopo-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.koopo-checkbox-item {
    border: 1px solid #d5dbeb;
    border-radius: 12px;
    padding: 9px 10px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #3c445f;
}

.koopo-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.koopo-benefit-other {
    margin-top: 12px;
}

.koopo-modal__form input:focus,
.koopo-modal__form textarea:focus,
.koopo-modal__form select:focus {
    outline: 2px solid rgba(53, 82, 255, 0.16);
    border-color: #4b5ce1;
}

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

.koopo-logo-preview {
    border: 1px dashed #cfd5e6;
    border-radius: 12px;
    padding: 10px;
    background: #f8faff;
}

.koopo-logo-preview img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
}

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

@media (max-width: 700px) {
    .koopo-location-grid,
    .koopo-compensation-grid {
        grid-template-columns: 1fr;
    }
}
