/* Educational Living online enrolment. Same look as the eGooroo add-on portal
   (brand header, card, pill buttons), in EL's colours. Phone first. */
:root {
  --brand: #A50050;
  --brand-dark: #7d003c;
  --accent: #333333;
  --bg: #F4F6FA;
  --ink: #1f1a1d;
  --muted: #6b5f64;
  --line: #e6dfe3;
  --ok: #1f7a4d;
  --err: #b3261e;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; }
a { color: var(--brand); }
.el-header { background: var(--brand); padding: 14px 16px; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.el-header img { width: 48px; height: 48px; flex: none; }
.el-wordmark { font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: #fff; letter-spacing: .2px; }
@media (max-width: 480px) { .el-header img { width: 40px; height: 40px; } .el-wordmark { font-size: 1.35rem; } }
.el-main { max-width: 760px; margin: 24px auto; padding: 0 12px; }
.el-card { background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.08); animation: el-in .5s ease; }
.el-card-head { background: var(--brand); color: #fff; padding: 22px 24px; }
.el-card-head h1 { margin: 0; font-size: 1.4rem; }
.el-card-head p { margin: 4px 0 0; opacity: .92; }
.el-card-body { padding: 22px 24px 26px; }
.el-foot { text-align: center; color: var(--muted); font-size: .85rem; margin: 18px 0 30px; }
.el-progress { height: 8px; background: #f1e6ec; border-radius: 8px; overflow: hidden; }
.el-progress-bar { height: 100%; background: var(--brand); transition: width .3s; }
.el-step { color: var(--muted); margin: 8px 0 18px; font-size: .95rem; }
.el-context { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; background: #fbf5f8; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 20px; font-size: .95rem; }
.el-context dt { color: var(--muted); }
.el-context dd { margin: 0; font-weight: 600; }
.el-grid { display: flex; flex-wrap: wrap; gap: 0 16px; }
.el-field { width: 100%; margin-bottom: 16px; }
.el-half { width: 100%; }
@media (max-width: 560px) { .el-card-body { padding: 18px 16px 22px; } }
.el-lookup [hidden] { display: none; }
.el-lookup-title { font-weight: 600; margin: 0 0 8px; }
.el-seg { display: flex; border: 1px solid #cfc4ca; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.el-seg button { flex: 1; padding: 10px 12px; border: 0; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.el-seg button + button { border-left: 1px solid #cfc4ca; }
.el-seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.el-found { margin: 8px 0 0; color: var(--ok); font-weight: 600; }
.el-found .el-link { font-weight: 400; }
.af_list .af_hover { background: var(--brand) !important; color: #fff !important; }
.af_list { box-sizing: border-box; min-width: min(688px, calc(100vw - 56px)); }
.el-field > label, legend { display: block; font-weight: 600; margin-bottom: 6px; }
fieldset { border: 0; padding: 0; margin: 0; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; border: 1px solid #cfc4ca; border-radius: 10px; background: #fff; color: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(165,0,80,.15); }
.el-choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; font-weight: 400; }
.el-choice:hover { border-color: var(--brand); }
.el-choice input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.el-choice:has(input:checked) { border-color: var(--brand); background: #fbf2f6; }
.el-consent { font-weight: 600; }
.el-field > label.el-choice { display: flex; }   /* tick boxes: beat the plain label rule */
.el-help { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.el-err { display: block; color: var(--err); font-size: .9rem; margin-top: 4px; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea, .has-error .el-choice { border-color: var(--err); }
.el-req { color: var(--brand); }
.el-alert { background: #fdecea; color: var(--err); border: 1px solid #f5c2bd; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.el-note { background: #eef6f1; color: var(--ok); border: 1px solid #cde5d7; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.el-info { background: #f6f3f5; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .95rem; }
.el-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 22px; }
.el-btn { display: inline-block; border: 0; border-radius: 50px; padding: 12px 26px; font: inherit; font-weight: 700; background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.el-btn:hover, .el-btn:focus-visible { background: var(--accent); color: #fff; transform: translateY(-1px); }
.el-btn-ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.el-btn-ghost:hover { background: #fbf2f6; color: var(--brand); }
.el-link { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.el-sig { position: relative; border: 2px dashed #cfc4ca; border-radius: 10px; background: #fff; }
.el-sig canvas { display: block; width: 100%; height: 180px; touch-action: none; cursor: crosshair; }
.el-sig .el-link { position: absolute; right: 10px; top: 8px; }
.el-file { margin: 4px 0 8px; color: var(--ok); }
.el-privacy { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px; font-size: .9rem; margin-bottom: 16px; background: #fcfbfc; }
.el-privacy h3 { font-size: 1rem; }
.el-privacy h4 { font-size: .95rem; margin-bottom: 4px; }
.el-decl li { margin-bottom: 6px; }
.el-code { display: flex; gap: 6px; justify-content: center; margin: 18px 0; flex-wrap: nowrap; }
.el-code input { width: 2.6em; height: 3em; text-align: center; font-size: 1.3rem; font-weight: 700; text-transform: uppercase; padding: 0; }
.el-code .el-gap { width: 6px; }
@media (max-width: 400px) { .el-code input { width: 2.1em; font-size: 1.1rem; } .el-code { gap: 4px; } }
.el-linkbox { display: flex; gap: 8px; }
.el-linkbox input { flex: 1; font-size: .85rem; }
/* LLN */
.lln-stimulus { background: #fcf7fa; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; white-space: pre-line; font-size: .95rem; }
.lln-table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-size: .9rem; }
.lln-table th, .lln-table td { border: 1px solid #e0007a; padding: 6px 8px; text-align: center; }
.lln-table th { background: #ffe0f0; }
.lln-img { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 6px; }
.lln-q { margin-bottom: 20px; }
.lln-q > p { font-weight: 600; margin: 0 0 8px; white-space: pre-line; }
.lln-group { font-weight: 700; margin: 18px 0 8px; white-space: pre-line; }
.lln-sub { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; margin: 16px 0 6px; }
[hidden] { display: none !important; }
@keyframes el-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .el-card { animation: none; } .el-btn { transition: none; } }
