* { box-sizing: border-box; }

body {
    margin: 0;
    background: #f4f5f7;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

.application-wrap {
    max-width: 1050px;
    margin: 0 auto;
    padding: 30px 16px 60px;
}

.application-header {
    text-align: center;
    margin-bottom: 26px;
}

.application-header h1 {
    margin: 0 0 8px;
    font-size: 32px;
}

.application-header p {
    margin: 0;
    color: #666;
}

.progress-note {
    margin: 18px 0 26px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
}

.section {
    margin-bottom: 18px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.section > summary {
    list-style: none;
    cursor: pointer;
    position: relative;
    padding: 18px 55px 18px 20px;
    background: #eceff1;
    font-size: 20px;
    font-weight: 700;
    user-select: none;
}

.section > summary::-webkit-details-marker { display: none; }

.section > summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    font-weight: 400;
}

.section[open] > summary::after { content: "−"; }

.section-body {
    padding: 22px;
}

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

.full { grid-column: 1 / -1; }

label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #bfc4c9;
    border-radius: 6px;
    background: #fff;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.inline-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 8px;
}

.inline-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-weight: 400;
}

.subsection {
    grid-column: 1 / -1;
    margin: 14px 0 2px;
    padding: 11px 14px;
    background: #f3f4f5;
    border-left: 4px solid #555;
    font-weight: 700;
    font-size: 17px;
}

.notice {
    grid-column: 1 / -1;
    padding: 14px 16px;
    background: #f7f7f7;
    border-left: 4px solid #666;
    line-height: 1.55;
}

.position-box {
    padding: 16px;
    background: #f6f6f6;
    border: 2px solid #c6c6c6;
    border-radius: 8px;
}

.position-box input[readonly] {
    background: #e9ecef;
    font-weight: 700;
}

.legal {
    max-height: 320px;
    overflow-y: auto;
    padding: 18px;
    background: #f7f7f7;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.65;
}

.actions {
    margin-top: 28px;
    text-align: center;
}

button[type="submit"] {
    width: 100%;
    max-width: 360px;
    padding: 15px 24px;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
}

.required::after {
    content: " *";
}

.employer {
    grid-column: 1 / -1;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.employer summary {
    cursor: pointer;
    padding: 13px 15px;
    background: #f3f4f5;
    font-weight: 700;
}

.employer-body {
    padding: 18px;
}

.reference-card {
    grid-column: 1 / -1;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.reference-card h3 {
    margin-top: 0;
}

.small-help {
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

@media (max-width: 760px) {
    .application-header h1 { font-size: 26px; }
    .grid { grid-template-columns: 1fr; }
    .full { grid-column: auto; }
    .section-body { padding: 16px; }
    .section > summary { font-size: 17px; }
}

/* ==========================================================
   WORDPRESS THEME ISOLATION
   Prevent global site layout rules from affecting the
   standalone employment application.
   ========================================================== */

.application-page {
    background: #f4f5f7;
    padding: 1px 0;
}

.application-page #employmentApplication {
    display: block;
    width: 100%;
}

.application-page #employmentApplication > .section {
    display: block;
    padding: 0;
    margin: 0 0 18px;
}

.application-page #employmentApplication .section-body {
    width: 100%;
}

.application-page #employmentApplication .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    width: 100%;
}

.application-page #employmentApplication .full {
    grid-column: 1 / -1;
}

.application-page #employmentApplication .notice,
.application-page #employmentApplication .subsection,
.application-page #employmentApplication .employer,
.application-page #employmentApplication .reference-card {
    grid-column: 1 / -1;
}

.application-page #employmentApplication label {
    color: #222;
}

.application-page #employmentApplication input[type="text"],
.application-page #employmentApplication input[type="email"],
.application-page #employmentApplication input[type="tel"],
.application-page #employmentApplication input[type="date"],
.application-page #employmentApplication input[type="number"],
.application-page #employmentApplication select,
.application-page #employmentApplication textarea {
    margin: 0;
    max-width: none;
}

.application-page #employmentApplication button[type="submit"] {
    display: inline-block;
}

@media (max-width: 760px) {
    .application-page #employmentApplication .grid {
        grid-template-columns: 1fr;
    }

    .application-page #employmentApplication .full {
        grid-column: auto;
    }
}
