/* Programme enquiry form (/{lang}/apply).
   Same white-card-on-lifted-cover language as the section landings and the
   events calendar. Scoped .apl-* so nothing collides with the legacy cascade
   or the contact form's .cnt-*. */

:root { --apl-brand: #E32D44; --apl-ink: #2c2c38; --apl-muted: #5A5A67; }

.apl-wrap {
    position: relative;
    z-index: 2;
    margin-top: -46px;
    padding-bottom: 90px;
}

.apl-card {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(30, 22, 40, .07);
    padding: 34px 38px 38px;
}

.apl-lead { color: var(--apl-muted); font-size: 16px; margin: 0 0 24px; }

/* ---------- alerts ---------- */
.apl-alert {
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.55;
}
.apl-alert--ok  { background: #eef8f0; border: 1px solid #cfe9d5; color: #1f6b34; }
.apl-alert--err { background: #fdf0f2; border: 1px solid #f5cdd4; color: #a01a2c; }
.apl-alert ul { margin: 0; padding-left: 18px; }

/* ---------- layout: two columns, full-width rows where it helps ---------- */
.apl-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}
.apl-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.apl-field--full { grid-column: 1 / -1; }

.apl-label { font-size: 14px; color: var(--apl-ink); }
.apl-req { color: var(--apl-brand); }

.apl-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e2ea;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    color: var(--apl-ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.apl-input:focus {
    outline: none;
    border-color: var(--apl-brand);
    box-shadow: 0 0 0 3px rgba(227, 45, 68, .12);
}
/* Server-side rejection, marked on the field itself rather than only in the
   summary above — so a long form does not make the reader hunt. */
.apl-input.is-bad { border-color: var(--apl-brand); background: #fffafb; }

select.apl-input { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235A5A67' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

textarea.apl-input { resize: vertical; min-height: 110px; line-height: 1.55; }

.apl-hint { align-self: flex-start; font-size: 13.5px; color: var(--apl-brand); text-decoration: none !important; }
.apl-hint:hover { text-decoration: underline !important; }

/* ---------- honeypot: out of sight, out of the tab order ---------- */
.apl-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- actions ---------- */
.apl-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.apl-send {
    padding: 13px 34px;
    border: 0;
    border-radius: 100px;
    background: var(--apl-brand);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}
.apl-send:hover { background: #c81f35; transform: translateY(-1px); }
.apl-send:focus-visible { outline: 2px solid var(--apl-brand); outline-offset: 3px; }

.apl-note { font-size: 13.5px; color: var(--apl-muted); }

@media (max-width: 640px) {
    .apl-card { padding: 24px 18px 28px; border-radius: 14px; }
    .apl-form { grid-template-columns: 1fr; }
}
/* Shared by every guest-facing form (partials/spamguard.blade.php). Loaded
   from contact.css, apply.css and anywhere else the partial appears. */
.sg-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.sg-check {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0 18px;
}
.sg-check__label { font-size: 14px; color: #2c2c38; }
.sg-check__req { color: #E32D44; }
.sg-check__input {
    width: 140px;
    padding: 11px 14px;
    border: 1px solid #e2e2ea;
    border-radius: 10px;
    font-size: 16px;
    color: #2c2c38;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.sg-check__input:focus {
    outline: none;
    border-color: #E32D44;
    box-shadow: 0 0 0 3px rgba(227, 45, 68, .12);
}
.sg-check__hint { font-size: 13px; color: #5A5A67; }
