/* Students of Timor — online enrollment form (v0.249.0). Mobile first; one prefix: sel- */

/* With a link open, the public guide around the app steps aside. */
.sotedu-enrol.is-link > :not(.sotedu-enrol-app) { display: none !important; }
.sotedu-enrol-app[hidden] { display: none !important; }

/* v0.252.0 — with a link open (body class set by the app), the site's fixed phone bar and
   "Get our App" button step aside: they covered the form's Back / Next / Send bar. */
body.sotedu-enrol-active .stot-bottom-nav,
body.sotedu-enrol-active #stot-app-tab,
body.sotedu-enrol-active .stot-app-tab { display: none !important; }

.sotedu-enrol-app {
	--sel-green: #1f5a36;
	--sel-green-2: #2f7a4d;
	--sel-ink: #1d2327;
	--sel-muted: #5b6770;
	--sel-line: #d7dde2;
	--sel-bad: #b42318;
	--sel-warn-bg: #fff6e5;
	--sel-ok-bg: #edf7f0;
	max-width: 640px;
	margin: 0 auto;
	padding: 12px 12px calc(96px + var(--sel-lift, 0px) + env(safe-area-inset-bottom, 0px));
	color: var(--sel-ink);
	font-size: 16px;
	line-height: 1.45;
}
.sotedu-enrol-app * { box-sizing: border-box; }
.sel-card { background: #fff; border: 1px solid var(--sel-line); border-radius: 14px; padding: 16px; }

.sel-head__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sel-school { font-weight: 600; color: var(--sel-green); font-size: 15px; }
.sel-title { font-size: 22px; margin: 6px 0 10px; line-height: 1.25; }
.sel-h2 { font-size: 18px; margin: 14px 0 8px; }
.sel-h3 { font-size: 16px; margin: 18px 0 6px; color: var(--sel-green); }
.sel-muted { color: var(--sel-muted); font-size: 14px; }

.sel-lang { display: inline-flex; border: 1px solid var(--sel-line); border-radius: 999px; overflow: hidden; flex: none; }
.sel-lang__b { border: 0; background: #fff; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--sel-muted); min-height: 36px; cursor: pointer; }
.sel-lang__b.is-on { background: var(--sel-green); color: #fff; }

.sel-steps { list-style: none; display: flex; gap: 6px; margin: 4px 0 6px; padding: 0; flex-wrap: wrap; }
.sel-steps li button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--sel-line); background: #fff; font-weight: 700; color: var(--sel-muted); cursor: pointer; }
.sel-steps li.is-past button { border-color: var(--sel-green-2); color: var(--sel-green-2); }
.sel-steps li.is-on button { background: var(--sel-green); border-color: var(--sel-green); color: #fff; }
.sel-steps li.has-err button { border-color: var(--sel-bad); color: var(--sel-bad); }
.sel-steps li.is-on.has-err button { background: var(--sel-bad); color: #fff; }

.sel-field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.sel-field > label, .sel-field > legend { display: block; font-weight: 600; margin: 0 0 6px; padding: 0; }
.sel-field input[type="text"], .sel-field input[type="tel"], .sel-field input[type="email"], .sel-field input[type="date"],
.sel-field select, .sel-field textarea {
	width: 100%; font-size: 16px; padding: 12px; border: 1px solid #b8c2ca; border-radius: 10px; background: #fff; color: var(--sel-ink); min-height: 48px;
}
.sel-field textarea { min-height: 88px; }
.sel-field input:focus, .sel-field select:focus, .sel-field textarea:focus, .sel-code:focus { outline: 3px solid rgba(31, 90, 54, .35); border-color: var(--sel-green); }
.sel-help { display: block; color: var(--sel-muted); font-size: 13px; margin: -2px 0 6px; }
.sel-err { display: block; color: var(--sel-bad); font-size: 14px; margin-top: 4px; font-weight: 600; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--sel-bad); }

.sel-radios { display: grid; gap: 8px; }
.sel-radio, .sel-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--sel-line); border-radius: 10px; cursor: pointer; min-height: 48px; font-weight: 400; }
.sel-radio input, .sel-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--sel-green); }
.sel-field--check .sel-check { background: #fafbfc; }

/* Sticky above anything still pinned to the bottom (--sel-lift, measured by the app) and the phone's safe area. */
.sel-nav { position: sticky; bottom: var(--sel-lift, 0px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--sel-line); border-radius: 0 0 14px 14px; box-shadow: 0 -6px 12px rgba(29, 35, 39, .06); }
.sel-status { font-size: 13px; color: var(--sel-muted); text-align: center; flex: 1; }
.sel-status.is-bad { color: var(--sel-bad); }

.sel-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 2px solid var(--sel-green); background: var(--sel-green); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.sel-btn:disabled { opacity: .6; cursor: wait; }
.sel-btn--ghost { background: #fff; color: var(--sel-green); }
.sel-btn--file { width: 100%; margin-top: 6px; }
.sel-link { background: none; border: 0; color: var(--sel-green); text-decoration: underline; font-size: 14px; padding: 8px; cursor: pointer; min-height: 40px; }
.sel-stack { display: grid; gap: 8px; margin: 12px 0; }
.sel-stack .sel-btn { width: 100%; font-size: 15px; padding: 0 12px; }

.sel-codeform { display: grid; gap: 8px; margin-top: 12px; }
.sel-codeform label { font-weight: 600; }
.sel-code { font-size: 28px; letter-spacing: 8px; text-align: center; padding: 10px; border: 1px solid #b8c2ca; border-radius: 10px; width: 100%; }
.sel-msg { min-height: 1.4em; margin: 6px 0 0; font-size: 14px; }
.sel-msg.is-bad { color: var(--sel-bad); font-weight: 600; }

.sel-notice { background: var(--sel-warn-bg); border-left: 4px solid #d98e04; padding: 10px 12px; border-radius: 8px; }
.sel-notice--warn p { margin: 4px 0; }

.sel-doc { border: 1px solid var(--sel-line); border-radius: 12px; padding: 12px; margin: 0 0 10px; }
.sel-doc.is-done { background: var(--sel-ok-bg); border-color: #b6dcc4; }
.sel-doc__head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.sel-pill { background: var(--sel-green); color: #fff; border-radius: 999px; font-size: 12px; padding: 2px 10px; }
.sel-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sel-file:focus + small, .sel-btn--file:focus-within { outline: 3px solid rgba(31, 90, 54, .35); }
.sel-files { list-style: none; margin: 8px 0 0; padding: 0; }
.sel-files li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; border-top: 1px dashed var(--sel-line); }
.sel-files__n { overflow-wrap: anywhere; }

.sel-sumsec { border: 1px solid var(--sel-line); border-radius: 12px; padding: 4px 12px 10px; margin: 0 0 10px; }
.sel-sumsec.has-err { border-color: var(--sel-bad); }
.sel-sumsec__h { display: flex; justify-content: space-between; align-items: center; }
.sel-sum { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px; }
.sel-sum dt { font-size: 13px; color: var(--sel-muted); margin-top: 6px; }
.sel-sum dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sel-sum dd.is-missing { color: var(--sel-bad); }

.sel-done { text-align: center; padding: 16px 4px; }
.sel-done__tick { width: 64px; height: 64px; line-height: 64px; margin: 0 auto 8px; border-radius: 50%; background: var(--sel-green); color: #fff; font-size: 34px; }

@media (min-width: 640px) {
	.sotedu-enrol-app { padding-top: 24px; }
	.sel-card { padding: 24px; }
	.sel-nav { margin: 20px -24px -24px; padding: 14px 24px; }
	.sel-sum { grid-template-columns: 220px 1fr; column-gap: 12px; }
	.sel-sum dt { margin-top: 0; padding-top: 6px; }
	.sel-sum dd { padding-top: 6px; }
}

/* Public guide: the per-school line. */
.sotedu-enrol__school-link { display: block; color: #1f5a36; font-weight: 600; margin-top: 4px; }
.sotedu-enrol__school-link .dashicons { font-size: 14px; width: 14px; height: 14px; vertical-align: -2px; }
