/* Apply page — candidate questionnaire + resume upload.
   Inherits site typography from post-10.css. */

:root {
    --brand-red: #ED1B24;
    --brand-amber: #FAA621;
    --hero-text: #FFFFFF;
    --form-radius: 12px;
    --btn-radius: 10px;
    --section-radius: 30px;
    --max-content: 1100px;
    --border: #E5E5E5;
    --muted: #6B6B6B;
}

.apply-page {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* ---- Hero ---------------------------------------------------------- */

.apply-hero {
    position: relative;
    background: url('/wp-content/uploads/2026/04/InqIf-1.jpg') no-repeat center left / cover;
    color: var(--hero-text);
    border-radius: var(--section-radius);
    min-height: 360px;
    padding: 100px 40px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-hero .hero-content {
    max-width: 900px;
    text-align: center;
}

.apply-hero h1 {
    color: var(--hero-text);
    margin: 0 0 24px;
}

.apply-hero h1 .accent {
    color: var(--brand-red);
}

.apply-hero p {
    color: var(--hero-text);
    margin: 0;
    font-size: 20px;
}

.apply-hero .hero-link {
    color: var(--brand-amber);
    text-decoration: underline;
}

.apply-hero .hero-link:hover {
    color: #FFFFFF;
}

/* ---- Form layout --------------------------------------------------- */

.apply-form-section {
    max-width: var(--max-content);
    margin: 60px auto;
    padding: 0 20px;
}

.apply-form {
    background: #FFFFFF;
    border-radius: var(--section-radius);
    padding: 50px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.validation-summary {
    color: var(--brand-red);
    background: rgba(237, 27, 36, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
}

.validation-summary ul { margin: 0; padding-left: 18px; }
.validation-summary:empty { display: none; }

.form-section {
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-section > legend {
    font-family: "Helvetica Now Display", sans-serif;
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 8px;
    padding: 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.form-section .hint {
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

/* ---- Generic field ------------------------------------------------- */

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
}

.field .label {
    font-weight: 600;
    color: #1a1a1a;
}

.field .label em {
    color: var(--brand-red);
    font-style: normal;
    margin-left: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field textarea {
    border: 1px solid var(--border);
    border-radius: var(--form-radius);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 16px;
    color: #1a1a1a;
    background: #FFFFFF;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--brand-red);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(237, 27, 36, 0.15);
}

.field textarea {
    resize: vertical;
    min-height: 100px;
}

.field-error {
    color: var(--brand-red);
    font-size: 14px;
}

.field-other {
    margin-top: 8px;
}

/* ---- Grids --------------------------------------------------------- */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.short-grid {
    margin-top: 8px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 24px;
}

.radio-row {
    display: flex;
    gap: 24px;
    padding: 6px 0;
}

.radio-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---- Checkbox / Radio ---------------------------------------------- */

.check,
.radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #1a1a1a;
}

.check input[type="checkbox"],
.radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-red);
    flex-shrink: 0;
    margin: 0;
}

.radio.inline-date {
    flex-wrap: wrap;
    gap: 12px;
}

.radio.inline-date input[type="date"] {
    flex: 1;
    min-width: 160px;
}

/* ---- Pay row ------------------------------------------------------- */

.pay-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pay-row .currency {
    color: var(--muted);
    font-weight: 600;
}

.pay-row .dash {
    color: var(--muted);
    padding: 0 4px;
}

.pay-row input {
    flex: 1;
    min-width: 0;
}

/* ---- File upload --------------------------------------------------- */

.file-field input[type="file"] {
    margin-top: 4px;
    font-size: 15px;
    cursor: pointer;
}

.file-field input[type="file"]::file-selector-button {
    background: var(--brand-red);
    color: #FFFFFF;
    border: 0;
    border-radius: var(--btn-radius);
    padding: 10px 18px;
    margin-right: 14px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.file-field input[type="file"]::file-selector-button:hover {
    background: #000000;
}

/* ---- Submit -------------------------------------------------------- */

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-light {
    background: #FFFFFF;
    color: #000000;
    border-radius: var(--btn-radius);
    padding: 16px 22px;
    flex-direction: row-reverse;
    border: 1px solid var(--border);
}

.btn-light:hover, .btn-light:focus { background: var(--brand-amber); }

.btn-submit {
    background: var(--brand-red);
    color: #FFFFFF;
    border-radius: var(--btn-radius);
    padding: 18px 28px;
    flex-direction: row-reverse;
    filter: drop-shadow(0 14.798px 39.46px rgba(245, 123, 128, 0.50));
}

.btn-submit:hover, .btn-submit:focus { background: #000000; }

/* ---- Success card -------------------------------------------------- */

.apply-success {
    max-width: 700px;
    margin: 80px auto;
    padding: 0 20px;
}

.success-card {
    background: #FFFFFF;
    border-radius: var(--section-radius);
    padding: 50px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.success-card h2 { margin: 0 0 16px; }
.success-card p { margin: 0 0 24px; }
.success-card .note {
    color: var(--brand-red);
    font-size: 15px;
}

/* ---- Responsive ---------------------------------------------------- */

@media (max-width: 1036px) {
    .apply-hero { min-height: 280px; padding: 80px 20px 60px; }
    .apply-form { padding: 40px 30px; gap: 32px; }
    .form-section > legend { font-size: 20px; }
}

@media (max-width: 767px) {
    .apply-hero { padding: 60px 16px 50px; }
    .apply-hero p { font-size: 16px; }
    .apply-form-section { margin: 30px auto; }
    .apply-form { padding: 28px 22px; gap: 28px; }
    .grid-2 { grid-template-columns: 1fr; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .radio-grid { grid-template-columns: repeat(2, 1fr); }
    .radio-row { flex-direction: column; gap: 8px; }
    .form-actions { justify-content: stretch; }
    .form-actions .btn-submit { width: 100%; justify-content: center; }
    .success-card { padding: 30px 22px; }
}
