/* Base modal */
.cdlup-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    font-family: inherit;
}

.cdlup-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    inset: 0;
}

body.cdlup-modal-open {
    overflow: hidden;
}

/* Modal container */
.cdlup-modal-content {
    background: #ffffff;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    margin: 8vh auto;
    padding: 28px 30px;
    border-radius: 14px;
    position: relative;
}

.cdlup-modal-content::-webkit-scrollbar {
    width: 6px;
}

.cdlup-modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}

/* Close button */
.cdlup-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 22px;
    background: none;
    border: 0;
    cursor: pointer;
}

/* Normalize all form controls */
.cdlup-modal input,
.cdlup-modal select {
    width: 100%;
    height: 48px;

    padding: 0 14px !important;
    margin-bottom: 14px !important;

    font-size: 15px;
    line-height: 1.2;
    color: #1d2939;

    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background-color: #ffffff;

    box-shadow: none;
    outline: none;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Placeholder text */
.cdlup-modal input::placeholder {
    color: #98a2b3;
}

/* Select placeholder color */
.cdlup-modal select {
    color: #98a2b3;
}

/* When select has value */
.cdlup-modal select:valid {
    color: #1d2939;
}

/* Focus state */
.cdlup-modal input:focus,
.cdlup-modal select:focus {
    border-color: #2ea3f2;
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.15);
}

/* Button */
.cdlup-btn {
    width: 100%;
    height: 48px;

    margin: 16px 0 8px;
    padding: 0;

    background: #2ea3f2;
    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

/* Error */
.cdlup-error {
    color: #c0392b;
    margin-top: 10px;
    font-size: 14px;
}

/* Switch text */
.cdlup-switch {
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
}

/* Role toggle wrapper */
.cdlup-role-toggle {
    display: flex;
    gap: 28px;
    margin-bottom: 20px;
}

/* Label styling */
.cdlup-role-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

/* Hide native radio */
.cdlup-role-option input[type="radio"] {
    display: none;
}

/* Custom radio */
.cdlup-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #c4c4c4;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

/* Checked state */
.cdlup-role-option input[type="radio"]:checked + .cdlup-radio {
    border-color: #2ea3f2;
}

.cdlup-role-option input[type="radio"]:checked + .cdlup-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #2ea3f2;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cdlup-modal textarea {
    width: 100%;
    min-height: 96px;

    padding: 10px 14px !important;
    margin-bottom: 14px !important;

    font-size: 15px;
    line-height: 1.4;
    color: #1d2939;

    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background-color: #ffffff;

    resize: vertical;
    outline: none;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cdlup-modal textarea:focus {
    border-color: #2ea3f2;
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.15);
}

.cdlup-modal-content {
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* IMPORTANT */
}

.cdlup-modal-body {
    overflow-y: auto;
    padding-right: 6px;
}

.cdlup-modal-content {
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* IMPORTANT */
}

.cdlup-modal-body {
    overflow-y: auto;
    padding-right: 6px;
}
.cdlup-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cdlup-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 14px;
}

.cdlup-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}
.cdlup-job-form h4 {
    margin: 20px 0 8px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}
