/* ===========================================
   Peters Employment Application – Plugin Styles
   =========================================== */

.pea-form-wrap {
    max-width: 960px;
    margin: 0 auto 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    line-height: 1.5;
}

/* ---------- Header ---------- */
.pea-header {
    text-align: center;
    margin-bottom: 30px;
}
.pea-header h2 {
    font-size: 28px;
    margin: 0 0 6px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pea-subhead {
    font-size: 16px;
    margin: 0 0 2px;
    font-weight: 600;
    color: #555;
}
.pea-tagline {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* ---------- Fieldsets ---------- */
.pea-fieldset {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 24px 24px 16px;
    margin-bottom: 24px;
    background: #fafafa;
}
.pea-legend {
    font-size: 17px;
    font-weight: 700;
    color: #c0392b;
    padding: 0 0 10px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #ddd;
}
.pea-fieldset-agreement {
    background: #f7f7f7;
}
.pea-fieldset-cdl {
    background: #f5f8fc;
    border-color: #b8cfe0;
}
.pea-fieldset-cdl .pea-legend {
    color: #2471a3;
    border-bottom-color: #b8cfe0;
}
.pea-fieldset-eeo {
    background: #fdf8f0;
    border-color: #e0d5c3;
}
.pea-fieldset-eeo .pea-legend {
    color: #b07d2b;
    border-bottom-color: #e0d5c3;
}

/* ---------- Section Titles ---------- */
.pea-section-title {
    font-size: 14px;
    font-weight: 700;
    margin: 20px 0 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid #ddd;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #444;
}

/* ---------- Rows ---------- */
.pea-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}
.pea-row-2 > .pea-field { flex: 1 1 45%; }
.pea-row-3 > .pea-field { flex: 1 1 30%; }
.pea-row-4 > .pea-field { flex: 1 1 22%; }
.pea-row-5 > .pea-field { flex: 1 1 18%; }
.pea-row-res > .pea-field { flex: 1 1 22%; }
.pea-row-radio { margin-bottom: 10px; }

.pea-field { min-width: 0; }
.pea-field-full { flex: 1 1 100% !important; }
.pea-field-wide { flex: 2 1 40% !important; }
.pea-field-sm { flex: 0 1 110px !important; }

/* ---------- Labels ---------- */
.pea-field > label:first-child {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #444;
}
.req {
    color: #c0392b;
}

/* ---------- Inputs ---------- */
.pea-field input[type="text"],
.pea-field input[type="tel"],
.pea-field input[type="email"],
.pea-field input[type="date"],
.pea-field input[type="number"],
.pea-field textarea,
.pea-field select {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.pea-field input:focus,
.pea-field textarea:focus,
.pea-field select:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12);
}
.pea-field textarea {
    resize: vertical;
}

/* ---------- Radio / Checkbox Groups ---------- */
.pea-radio-group,
.pea-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}
.pea-radio-group label,
.pea-checkbox-group label {
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pea-checkbox-single {
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
}

/* ---------- Tables ---------- */
.pea-table-wrap {
    overflow-x: auto;
    margin-bottom: 14px;
}
.pea-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.pea-table th {
    background: #e8e8e8;
    text-align: left;
    padding: 8px 10px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid #ccc;
}
.pea-table td {
    padding: 6px 8px;
    border: 1px solid #ddd;
    vertical-align: middle;
}
.pea-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
}
.pea-table input {
    width: 100%;
    padding: 5px 7px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

/* ---------- Repeater ---------- */
.pea-repeater-row {
    position: relative;
}
.pea-repeater-row + .pea-repeater-row {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}
.pea-repeater-actions {
    flex: 0 0 auto !important;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2px;
}
.pea-repeater-remove {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 34px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pea-repeater-remove:hover {
    background: #c0392b;
}
.pea-repeater-add {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #c0392b;
    background: #fff;
    border: 1px solid #c0392b;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.pea-repeater-add:hover {
    background: #c0392b;
    color: #fff;
}

/* ---------- Employer Repeater Block ---------- */
.pea-employer-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 20px;
}
.pea-employer-block + .pea-employer-block {
    margin-top: 16px;
}
.pea-repeater-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}
.pea-employer-number {
    font-size: 15px;
    font-weight: 700;
    color: #c0392b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ---------- Agreement Text ---------- */
.pea-agreement-text {
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.65;
    color: #555;
}
.pea-agreement-text p {
    margin: 0 0 10px;
}
.pea-agreement-text ul {
    margin: 6px 0 10px 20px;
    padding: 0;
}
.pea-agreement-text li {
    margin-bottom: 4px;
}

/* ---------- Notes ---------- */
.pea-note {
    font-size: 13px;
    color: #777;
    margin: 6px 0 12px;
    line-height: 1.5;
}
.pea-eeo-footer {
    font-size: 12px;
    color: #999;
    margin-top: 16px;
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
}

/* ---------- Submit ---------- */
.pea-submit-wrap {
    text-align: center;
    margin-top: 10px;
}
.pea-submit-btn {
    display: inline-block;
    padding: 14px 50px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #c0392b;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
}
.pea-submit-btn:hover {
    background: #a93226;
}
.pea-submit-btn:active {
    transform: scale(0.98);
}

/* ---------- Messages ---------- */
.pea-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 18px 24px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 16px;
    text-align: center;
}
.pea-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 18px 24px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 16px;
    text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .pea-fieldset {
        padding: 16px 14px 10px;
    }
    .pea-row {
        flex-direction: column;
        gap: 10px;
    }
    .pea-row-2 > .pea-field,
    .pea-row-3 > .pea-field,
    .pea-row-4 > .pea-field,
    .pea-row-5 > .pea-field,
    .pea-row-res > .pea-field,
    .pea-field-wide,
    .pea-field-sm {
        flex: 1 1 100% !important;
    }
    .pea-header h2 {
        font-size: 22px;
    }
    .pea-submit-btn {
        width: 100%;
        padding: 14px;
    }
}
