@charset "UTF-8";
/* apply/css/apply-modern.css -- shared refresh for the pages AROUND the online application:
   apply/index.php, user.php, login.php, thank-you.php.

   How it stays inside each school's theme (same idea as admin/jobboard/css/jobboard.css):
   - Loaded BEFORE the school's own attachments/.../css/apply.css, so a school stylesheet can still
     override anything here (use the same ap- selector).
   - Everything is opt-in through ap- classes. Nothing global, so application.php and the app_blocks
     (which carry their own HTML/CSS from the application builder) are untouched.
   - Adds SHAPE, SPACING and NEUTRAL greys only. Theme colours stay with the school css: buttons keep
     .buttonBlue (the school's button colour), header / logo / page background are never touched.
   - Where an accent helps (focus rings, step dots, icon tints) it uses --ap-accent, which apply/header.php
     reads from the school's own .buttonBlue at page load. The values below are only the fallback. */

:root {
	--ap-accent: #3672AA;       /* school .buttonBlue background */
	--ap-accent-ink: #fff;      /* school .buttonBlue text colour */
	--ap-accent-text: #3672AA;  /* accent when readable as text on white, else a dark grey */
	--ap-accent-soft: rgba(54,114,170,.10);
	--ap-accent-ring: rgba(54,114,170,.30);
	--ap-line: rgba(127,127,127,.28);
	--ap-fill: rgba(127,127,127,.06);
}

/* ---------- card / page shell ---------- */
.wideBox.ap-card {
	box-sizing: border-box;
	padding: 30px 34px;
	border-radius: 14px;
	line-height: 1.5;
}
.wideBox.ap-card-narrow { max-width: 600px; }
/* softer, deeper shadow than the legacy .shadowed (school css can still override with the same selector) */
.wideBox.ap-card.shadowed, .wideBox.ap-app.shadowed {
	-webkit-box-shadow: 0 2px 6px rgba(0,0,0,.07), 0 18px 42px -14px rgba(0,0,0,.38);
	box-shadow: 0 2px 6px rgba(0,0,0,.07), 0 18px 42px -14px rgba(0,0,0,.38);
}

/* application.php wrapper: same card look, but NO line-height / font changes so the app_blocks inside
   (built in the application builder, with their own html/css) render exactly as before */
.wideBox.ap-app { box-sizing: border-box; padding: 18px 24px 26px 24px; border-radius: 14px; }
.ap-app-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	margin: 0 0 16px 0; padding: 0 0 14px 0; border-bottom: 1px solid var(--ap-line); line-height: 1.4;
}
.ap-app-bar-note { display: flex; align-items: center; gap: 8px; font-size: 13px; flex: 1 1 280px; min-width: 0; }
.ap-app-bar-note .ap-icon { color: #137a1c; width: 19px; height: 19px; }
.ap-app-bar .ap-actions { flex: 0 0 auto; gap: 8px; }
.ap-btn-logout:hover, a.ap-btn-logout:hover { color: #a5281b; border-color: rgba(192,57,43,.45); background: rgba(192,57,43,.06); }
.ap-card h1.ap-title { font-size: 28px; font-weight: 600; margin: 0 0 6px 0; line-height: 1.25; }
.ap-card h2.ap-subtitle { font-size: 19px; font-weight: 600; margin: 22px 0 6px 0; }
.ap-center { text-align: center; }
.ap-lead { font-size: 17px; margin: 0 0 10px 0; opacity: .85; }
.ap-muted { opacity: .72; }
.ap-small { font-size: 13px; }
.ap-intro { margin: 0 0 18px 0; }
.ap-intro:empty { display: none; }
.ap-divider { border: 0; border-top: 1px solid var(--ap-line); margin: 24px 0; }
.ap-help { font-size: 13px; text-align: center; margin: 26px 0 0 0; opacity: .8; }
.ap-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.ap-icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.ap-icon-lg { width: 26px; height: 26px; }

/* ---------- step indicator ---------- */
.ap-steps { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0 0 26px 0; padding: 0; }
.ap-step { display: flex; align-items: center; gap: 8px; flex: 1 1 0; font-size: 13px; opacity: .55; white-space: nowrap; }
.ap-step:last-child { flex: 0 0 auto; }
.ap-step:not(:last-child)::after { content: ''; flex: 1 1 auto; height: 2px; min-width: 14px; background: var(--ap-line); border-radius: 2px; margin-left: 4px; }
.ap-step-n {
	flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; box-sizing: border-box;
	border: 2px solid var(--ap-line); display: inline-flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 600;
}
.ap-step-n .ap-icon { width: 15px; height: 15px; }
.ap-step-on { opacity: 1; font-weight: 600; }
.ap-step-on .ap-step-n { background: var(--ap-accent); border-color: var(--ap-accent); color: var(--ap-accent-ink); }
.ap-step-done { opacity: .9; }
.ap-step-done .ap-step-n { border-color: var(--ap-accent); color: var(--ap-accent-text); }
.ap-step-done:not(:last-child)::after { background: var(--ap-accent); opacity: .6; }

/* ---------- buttons (pair with .buttonBlue so the school colour applies) ---------- */
.ap-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	box-sizing: border-box; margin: 0; padding: 11px 20px; border-radius: 9px;
	font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; border: 1px solid transparent;
	-webkit-appearance: none; appearance: none;
	transition: filter .15s ease, box-shadow .15s ease, transform .08s ease, background .15s ease;
}
.buttonBlue.ap-btn { margin: 0; padding: 11px 20px; font-size: 16px; border: 1px solid transparent; box-shadow: 0 2px 6px -2px rgba(0,0,0,.25); }
a.buttonBlue.ap-btn, a.buttonBlue.ap-btn:link, a.buttonBlue.ap-btn:visited, a.buttonBlue.ap-btn:hover { color: var(--ap-accent-ink); text-decoration: none; }
.buttonBlue.ap-btn:hover { box-shadow: 0 4px 12px -4px rgba(0,0,0,.35); }
.ap-btn:active { transform: scale(.98); }
.ap-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ap-accent-ring); }
.ap-btn-lg, .buttonBlue.ap-btn-lg { padding: 14px 28px; font-size: 18px; }
.ap-btn-sm, .buttonBlue.ap-btn-sm { padding: 6px 12px; font-size: 13px; font-weight: 600; }
.ap-btn-block { display: flex; width: 100%; }
/* secondary: no fill, neutral border, text inherits */
.ap-btn-ghost, a.ap-btn-ghost:link, a.ap-btn-ghost:visited { background: transparent; color: inherit; border-color: var(--ap-line); }
.ap-btn-ghost:hover, a.ap-btn-ghost:hover { background: var(--ap-fill); color: inherit; border-color: rgba(127,127,127,.5); }
.ap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ap-actions-center { justify-content: center; }

/* ---------- choice tiles (welcome page) ---------- */
.ap-choices { display: grid; gap: 12px; margin: 18px 0 8px 0; }
a.ap-choice, a.ap-choice:link, a.ap-choice:visited {
	display: flex; align-items: center; gap: 14px; box-sizing: border-box; width: 100%;
	margin: 0; padding: 16px 18px; border: 1px solid var(--ap-line); border-radius: 12px;
	text-align: left; text-decoration: none; color: inherit; font-size: 16px; font-weight: 400;
	transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}
a.ap-choice:hover { color: inherit; border-color: var(--ap-accent); box-shadow: 0 8px 20px -12px rgba(0,0,0,.4); }
a.ap-choice:active { transform: scale(.99); }
a.ap-choice:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ap-accent-ring); }
.ap-choice-icon {
	flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px;
	display: flex; align-items: center; justify-content: center;
	background: var(--ap-accent-soft); color: var(--ap-accent-text);
}
.ap-choice-body { flex: 1 1 auto; min-width: 0; }
.ap-choice-t { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
.ap-choice-d { display: block; font-size: 14px; opacity: .75; margin-top: 2px; }
.ap-choice-arrow { flex: 0 0 auto; opacity: .45; transition: transform .15s ease, opacity .15s ease; }
a.ap-choice:hover .ap-choice-arrow { opacity: .9; transform: translateX(3px); }
/* the primary tile takes the school's button colour */
a.ap-choice.buttonBlue, a.ap-choice.buttonBlue:link, a.ap-choice.buttonBlue:visited, a.ap-choice.buttonBlue:hover { color: var(--ap-accent-ink); border-color: transparent; }
a.ap-choice.buttonBlue .ap-choice-icon { background: rgba(255,255,255,.18); color: inherit; }
a.ap-choice.buttonBlue .ap-choice-d { opacity: .9; }

/* ---------- forms ---------- */
.ap-form { text-align: left; }
.ap-section { border: 1px solid var(--ap-line); border-radius: 12px; padding: 18px 20px 20px 20px; margin: 18px 0; }
.ap-section-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; margin: 0 0 14px 0; }
.ap-section-title .ap-icon { opacity: .7; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ap-grid-1 { grid-template-columns: 1fr; }
.ap-span-2 { grid-column: 1 / -1; }
.ap-field { min-width: 0; }
.ap-label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 5px 0; }
.ap-req { color: #c0392b; margin-left: 2px; }
.ap-hint { display: block; font-size: 12px; opacity: .7; margin-top: 4px; font-weight: 400; }
.ap-form .field, .ap-search .field {
	display: block; box-sizing: border-box; width: 100%; max-width: none; min-width: 0;
	margin: 0; padding: 10px 12px; font-family: inherit; font-size: 16px; line-height: 1.3;
	border: 1px solid var(--ap-line); border-radius: 8px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ap-form select.field, .ap-search select.field { padding: 9px 10px; }
.ap-form .field:focus, .ap-search .field:focus { outline: none; border-color: var(--ap-accent); box-shadow: 0 0 0 3px var(--ap-accent-ring); }
.ap-form .field::placeholder, .ap-search .field::placeholder { opacity: .6; }
.ap-form #referral2 { margin-top: 8px; }
/* application.php step one ONLY: the campus / program pickers (class added on each select, incl. the
   ajax.php getProgramsForCampus one). Never style by container there -- #step_one_div isn't closed
   in the "have appID" branch, so it wraps the whole app form and its date dropdowns. */
.field.ap-pick {
	box-sizing: border-box; padding: 9px 12px; font-family: inherit;
	border: 1px solid var(--ap-line); border-radius: 8px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.field.ap-pick:focus { outline: none; border-color: var(--ap-accent); box-shadow: 0 0 0 3px var(--ap-accent-ring); }
.ap-submit { text-align: center; margin: 24px 0 6px 0; }
.ap-consent { display: block; font-size: 12px; opacity: .75; margin: 0 auto 12px auto; max-width: 520px; }

/* email search row */
.ap-search { display: flex; gap: 10px; max-width: 540px; margin: 18px auto 10px auto; }
.ap-search .field { flex: 1 1 auto; }
.ap-search .ap-btn { flex: 0 0 auto; }

/* ---------- alerts ---------- */
.ap-alert {
	display: flex; align-items: flex-start; gap: 11px; text-align: left;
	margin: 16px 0; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--ap-line);
	background: var(--ap-fill); font-size: 15px; line-height: 1.5;
}
.ap-alert > .ap-icon { margin-top: 1px; }
.ap-alert-body { flex: 1 1 auto; min-width: 0; }
.ap-alert.ap-small { font-size: 13px; padding: 10px 13px; }
.ap-alert.ap-small > .ap-icon { width: 17px; height: 17px; opacity: .7; }
.ap-alert-title { display: block; font-weight: 600; margin-bottom: 2px; }
.ap-alert-info { background: var(--ap-accent-soft); border-color: var(--ap-accent-ring); }
.ap-alert-info > .ap-icon { color: var(--ap-accent-text); }
.ap-alert-warn { background: rgba(255,170,0,.11); border-color: rgba(214,140,0,.45); }
.ap-alert-warn > .ap-icon { color: #b26b00; }
.ap-alert-error { background: rgba(192,57,43,.07); border-color: rgba(192,57,43,.4); }
.ap-alert-error > .ap-icon, .ap-alert-error .ap-alert-title { color: #a5281b; }
.ap-alert-success { background: rgba(26,164,38,.09); border-color: rgba(26,164,38,.4); }
.ap-alert-success > .ap-icon, .ap-alert-success .ap-alert-title { color: #137a1c; }

/* "please wait" boxes (toggled by JS via inline display) */
.ap-status { margin: 14px 0 0 0; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--ap-line); background: var(--ap-fill); text-align: center; font-size: 15px; }
.ap-status .ap-status-sub { display: block; font-size: 13px; opacity: .75; margin-top: 2px; }
.ap-status .progress { width: 70%; margin: 10px auto 2px auto; }

/* ---------- "is this you?" card ---------- */
.ap-person { display: flex; align-items: center; gap: 14px; text-align: left; margin: 16px 0; padding: 16px 18px; border: 1px solid var(--ap-line); border-radius: 12px; }
.ap-avatar {
	flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--ap-accent-soft); color: var(--ap-accent-text); font-size: 19px; font-weight: 700;
}
.ap-person-name { font-size: 19px; font-weight: 600; letter-spacing: .03em; }
.ap-person-email { font-size: 14px; opacity: .75; word-break: break-all; }

/* ---------- success hero (sent / thank-you) ---------- */
.ap-hero { text-align: center; padding: 6px 0 4px 0; }
.ap-hero-icon {
	width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 12px auto;
	display: flex; align-items: center; justify-content: center;
	background: rgba(26,164,38,.12); color: #137a1c;
}
.ap-hero-icon .ap-icon { width: 32px; height: 32px; }
.ap-hero-icon-accent { background: var(--ap-accent-soft); color: var(--ap-accent-text); }
.ap-hero-icon-error { background: rgba(192,57,43,.1); color: #a5281b; }

/* "write this number down" box (payment-complete) */
.ap-idbox { text-align: center; margin: 20px auto; padding: 16px 18px; max-width: 360px; border: 2px dashed var(--ap-line); border-radius: 12px; }
.ap-idbox-l { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; opacity: .7; }
.ap-idbox-n { display: block; font-size: 30px; font-weight: 700; letter-spacing: .06em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ap-idbox-h { display: block; font-size: 13px; opacity: .75; }

/* thank-you.php: "secure payment form could not load" box, built by paymentFormFailed() */
#payment-fallback.ap-alert { margin: 0 0 16px 0; }
#payment-fallback p { margin: 6px 0; }
#payment-fallback #payment-retry { margin-top: 10px; width: auto; display: inline-flex; }
.ap-topbar { display: flex; justify-content: flex-end; margin: -10px -12px 4px 0; }

/* ---------- thank-you: fees panel + application copy ---------- */
.ap-panel { border: 1px solid var(--ap-line); border-radius: 12px; padding: 18px 20px; margin: 18px 0; text-align: left; }
.ap-panel-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; margin: 0 0 12px 0; }
.ap-inv-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--ap-line); }
.ap-inv-row > div:last-child { flex: 0 0 auto; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ap-inv-fee { font-size: 14px; opacity: .85; }
.ap-inv-total { border-bottom: 0; border-top: 2px solid var(--ap-line); font-weight: 700; font-size: 17px; }
.ap-doc-wrap { margin: 30px auto 10px auto; }
.ap-doc-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; opacity: .65; margin: 0 0 8px 0; text-align: center; }
.ap-doc { box-sizing: border-box; border-radius: 10px; }

/* ---------- small screens ---------- */
@media screen and (max-width: 768px) {
	.wideBox.ap-card { padding: 22px 18px; border-radius: 0; }
	.wideBox.ap-app { padding: 14px 2% 20px 2%; border-radius: 0; }
	.wideBox.ap-card.shadowed, .wideBox.ap-app.shadowed { -webkit-box-shadow: none; box-shadow: none; }
}
@media screen and (max-width: 600px) {
	.ap-grid { grid-template-columns: 1fr; }
	.ap-section { padding: 14px; }
	.ap-search { flex-direction: column; }
	.ap-step-l { display: none; }
	.ap-step-on .ap-step-l { display: inline; }
	.ap-card h1.ap-title { font-size: 24px; }
	.ap-person { flex-direction: column; text-align: center; }
	.ap-actions { justify-content: center; }
	.ap-app-bar { justify-content: center; text-align: center; }
	.ap-app-bar-note { justify-content: center; flex-basis: 100%; }
}

/* =====================================================================================================
   REGISTER module (register/index.php, register.php, pay-reg-fees.php, thank-you.php, payment-complete.php,
   select-courses-list*.php iframes, and the staff preview-register). Register pages load the school's
   application.css + register.css AFTER this file. register.css styles every <label> as a floating
   "stripe-style" label and puts !important underline borders on .reg_field / .select, so the rules
   below are scoped + specific enough to win only inside .ap containers. Never set a width on selects
   here: the MM / DD / YYYY date dropdowns rely on their inline 25% / 28% widths.
   ===================================================================================================== */

/* undo register.css's floating-label rules on our own labels */
.ap label.ap-label { height: auto; position: static; margin: 0 0 5px 0; color: inherit; line-height: 1.35; }
.ap label.ap-label > span { position: static; width: auto; height: auto; line-height: inherit; border: 0; color: inherit; pointer-events: auto; font-weight: inherit; }
.ap label.ap-label > span.ap-req { color: #c0392b; }
.ap .ap-form .field, .ap .ap-form .field.is-empty { opacity: 1; }
/* register.css puts an !important coloured underline on .select menus */
.ap .ap-form select.field.select { border: 1px solid var(--ap-line) !important; }
.ap .ap-form select.field.select:focus { border-color: var(--ap-accent) !important; }

/* register.php: the many label/field "two_col" tables become label-above-field cards, 2-up, 1-up on phones */
.ap-reg { line-height: 1.45; }
.ap-reg .ap-section { text-align: left; }
.ap-reg .ap-section::after { content: ''; display: table; clear: both; }
.ap-reg .two_col { float: left; box-sizing: border-box; width: 48%; margin: 8px 1%; padding: 0; border-bottom: 0; font-size: inherit; }
.ap-reg .one_col { box-sizing: border-box; border-bottom: 0; }
.ap-reg .two_col > table { width: 100%; border-collapse: collapse; }
.ap-reg .two_col > table > tbody > tr > td { display: block; width: auto; padding: 0; white-space: normal; }
.ap-reg .two_col > table > tbody > tr > td:first-child { font-size: 14px; font-weight: 600; margin: 0 0 5px 0; }
.ap-reg .reg_field, .ap-reg select.field, .ap-reg input.field {
	box-sizing: border-box; min-height: 40px; padding: 8px 10px; margin: 0;
	font-family: inherit; font-size: 15px; line-height: 1.3;
	border: 1px solid var(--ap-line) !important; border-radius: 8px; background-color: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ap-reg select.reg_field, .ap-reg select.field { padding: 7px 6px; }
.ap-reg .reg_field:focus, .ap-reg select.field:focus, .ap-reg input.field:focus { outline: none; border-color: var(--ap-accent) !important; box-shadow: 0 0 0 3px var(--ap-accent-ring); }
.ap-reg input[type=file].reg_field { min-height: 0; padding: 6px; }
.ap-reg .ap-subgroup { clear: both; border-radius: 10px; background: var(--ap-fill); border: 1px solid var(--ap-line); padding: 6px 4px; margin: 10px 0; }
.ap-reg .ap-subgroup::after { content: ''; display: table; clear: both; }
.ap-reg .ap-subgroup-title { font-weight: 600; padding: 6px 10px 0 10px; }
.ap-reg .ap-verify-input { width: 70px !important; text-align: center; font-weight: 700; letter-spacing: .08em; }
.ap-reg #Submit { font-size: 18px; width: auto; max-width: none; margin: 6px auto 0 auto; }
.ap-reg .campus-name, .ap-courses h2.campus-name { font-size: 17px; font-weight: 600; text-decoration: none !important; margin: 18px 0 6px 0; text-align: left; }

/* course pick lists (register.php course step + select-courses-list iframes) */
.ap-courses { text-align: left; }
.ap-courses .course_row {
	box-sizing: border-box; margin: 6px 0; padding: 11px 12px; font-size: 14px; line-height: 1.4;
	border: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line); border-radius: 10px;
	background: #fff; transition: border-color .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.ap-courses .course_row:hover { border-color: rgba(127,127,127,.5); }
.ap-courses .course_row.selectedRow { border-color: rgba(26,164,38,.55); box-shadow: inset 4px 0 0 rgba(26,164,38,.7); }
.ap-courses .course_row input[type=checkbox] { width: 17px; height: 17px; margin: 0 7px 0 0; vertical-align: -3px; cursor: pointer; accent-color: var(--ap-accent); }
.ap-courses .ap-course-head {
	background: transparent !important; color: inherit !important; border: 0; border-bottom: 2px solid var(--ap-line);
	border-radius: 0; padding: 6px 12px; font-size: 11px; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .05em; opacity: .8;
}
.ap-courses .ap-course-head:hover { border-color: var(--ap-line); }
.ap-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 14px 0 4px 0; }
.ap-pager-info { font-size: 12px; opacity: .7; text-align: center; margin: 4px 0 0 0; }
.ap-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 14px 0; font-size: 15px; font-weight: 600; }
.ap-filter select { box-sizing: border-box; min-height: 40px; max-width: 320px; padding: 7px 10px; font-family: inherit; font-size: 15px; border: 1px solid var(--ap-line) !important; border-radius: 8px; background: #fff; }
.ap-filter select:focus { outline: none; border-color: var(--ap-accent) !important; box-shadow: 0 0 0 3px var(--ap-accent-ring); }

/* iframe embeds (select-courses-list*.php): page background stays transparent for the host site */
body.ap-embed { padding: 8px; box-sizing: border-box; }
.ap-embed-submit { position: sticky; bottom: 8px; text-align: center; margin: 16px 0 0 0; }

@media screen and (max-width: 600px) {
	.ap-reg .two_col { float: none; width: 100%; margin: 10px 0; }
	.ap-courses .course_row > .floatLeft { float: none !important; width: auto !important; display: block; }
	.ap-courses .course_row > .floatLeft + .floatLeft { display: inline-block; margin: 6px 14px 0 24px; font-weight: 600; }
	.ap-courses .ap-course-head { display: none; }
}
