/* global(x) application page (child of /insideout/globalx).
   Loaded only by that page's Header Content, after globalx-guatemala-2027.css.
   Restyles Rock's Obsidian Registration Entry block (wrapper class .registration-entry)
   to match the trip page: Inter / Inter Tight, green pills, rounded fields. */

/* ---------- hero (smaller than the trip page hero) ---------- */
.gx .gx-apply-hero { padding: 112px 0 64px; }
.gx .gx-apply-hero .gx-logo { width: min(340px, 70vw); }
.gx .gx-apply-hero .eyebrow { margin-top: 28px; }
.gx .gx-apply-hero h1 { font-size: clamp(30px, 4.4vw, 48px); }
.gx .gx-apply-hero .lede { font-size: 17px; max-width: 560px; }
.gx .gx-apply-hero .lede strong { color: #fff; }
.gx .gx-apply-hero .ctas { margin-top: 26px; }
.gx .gx-apply-hero .pill.ghost { font-size: 15px; padding: 9px 20px; }

/* ---------- form section ---------- */
.registration-entry {
  --gx-green: #92c73d;
  --gx-green-bright: #95d600;
  --gx-green-5: #eef7e3;
  --gx-blue: #006a99;
  --gx-char: #1f1f1f;
  --gx-ink: #1a1a1a;
  --gx-muted: #5b5f63;
  --gx-line: #e4e6e8;
  --gx-soft: #f5f6f4;
  background: var(--gx-soft);
  padding: 56px 16px 96px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gx-ink);
  -webkit-font-smoothing: antialiased;
}
.registration-entry > .block-content {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gx-line);
  border-radius: 20px;
  padding: 40px clamp(20px, 5vw, 48px) 36px;
  box-shadow: 0 18px 40px -28px rgba(31, 31, 31, .35);
}

/* The registrant step's "Student" heading adds nothing for a one-person application. */
.registration-entry h1:has(+ .registrationentry-registrant) { display: none; }

.registration-entry h1,
.registration-entry h2,
.registration-entry h3 {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--gx-char);
  text-transform: none;
}
.registration-entry h1 { font-size: 32px; margin: 0 0 16px; }

/* Section headings come from the form fields' PreText (<h4>). */
.registration-entry h4 {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gx-blue);
  margin: 40px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--gx-line);
}
.registration-entry form > h4:first-of-type,
.registration-entry form > div:first-child h4 { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- fields ---------- */
.registration-entry .form-group { margin-bottom: 20px; }
.registration-entry .control-label {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--gx-char);
  margin-bottom: 6px;
}
.registration-entry .form-control {
  height: auto;
  min-height: 46px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--gx-ink);
  background: #fff;
  border: 1.5px solid #d5d9dc;
  border-radius: 12px;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.registration-entry textarea.form-control { min-height: 110px; }
.registration-entry select.form-control { padding-right: 32px; }
.registration-entry .form-control:focus {
  border-color: var(--gx-green);
  box-shadow: 0 0 0 4px rgba(146, 199, 61, .22);
  outline: 0;
}
.registration-entry .birthday-picker .form-control-group { display: flex; gap: 8px; align-items: center; max-width: 420px; }
.registration-entry .birthday-picker .form-control-group select { flex: 1 1 0; min-width: 0; width: auto; }
.registration-entry .help-block,
.registration-entry .help-inline { color: var(--gx-muted); font-size: 14px; }

/* Radio and checkbox lists (trip weeks, disclosure) as tappable option cards. */
/* Rock puts every radio label in one <span>; checkbox labels sit directly in the list. */
.registration-entry .rockradiobuttonlist,
.registration-entry .rockcheckboxlist { display: block; columns: auto; }
.registration-entry .rockradiobuttonlist > span,
.registration-entry .rockcheckboxlist { display: grid; gap: 10px; }
.registration-entry .rockradiobuttonlist label.radio-inline,
.registration-entry .rockcheckboxlist label.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #d5d9dc;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  color: var(--gx-ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.registration-entry .rockradiobuttonlist label.radio-inline input[type=radio],
.registration-entry .rockcheckboxlist label.checkbox-inline input[type=checkbox] {
  position: static;
  margin: 0;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--gx-green);
}
.registration-entry .rockradiobuttonlist label.radio-inline:hover,
.registration-entry .rockcheckboxlist label.checkbox-inline:hover { border-color: var(--gx-green); }
.registration-entry .rockradiobuttonlist label.radio-inline:has(input:checked),
.registration-entry .rockcheckboxlist label.checkbox-inline:has(input:checked) {
  border-color: var(--gx-green);
  background: var(--gx-green-5);
}
.registration-entry .rockradiobuttonlist label.radio-inline:has(input:focus-visible),
.registration-entry .rockcheckboxlist label.checkbox-inline:has(input:focus-visible) {
  box-shadow: 0 0 0 4px rgba(146, 199, 61, .3);
}

/* The disclosure text (PreText .well) as a soft rounded card. */
.registration-entry .well {
  background: var(--gx-soft);
  border: 0;
  border-radius: 16px;
  box-shadow: none;
  padding: 22px 24px;
  font-size: 15px;
  color: #33373a;
}
.registration-entry .well p { margin: 0 0 .8em; }
.registration-entry .well ul { margin: 0; padding-left: 1.2em; }

/* ---------- buttons ---------- */
.registration-entry .actions { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gx-line); }
/* .actions is a Bootstrap .row; drop its negative gutters so the divider lines up with the fields. */
.registration-entry .actions.row { margin-left: 0; margin-right: 0; }
.registration-entry .actions.row > [class*="col-"] { padding-left: 0; padding-right: 0; }
.registration-entry .btn {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  padding: 12px 28px;
  border: 0;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.registration-entry .btn-primary {
  background: var(--gx-green);
  color: var(--gx-char);
}
.registration-entry .btn-primary:hover,
.registration-entry .btn-primary:focus {
  background: var(--gx-green-bright);
  color: var(--gx-char);
  transform: translateY(-1px);
}
.registration-entry .btn-default {
  background: transparent;
  color: var(--gx-muted);
  box-shadow: inset 0 0 0 1.5px #c9ced2;
}
.registration-entry .btn-default:hover,
.registration-entry .btn-default:focus {
  background: transparent;
  color: var(--gx-char);
  box-shadow: inset 0 0 0 1.5px var(--gx-char);
}
.registration-entry .btn:focus-visible { outline: 3px solid var(--gx-green); outline-offset: 3px; }

/* ---------- messages ---------- */
.registration-entry .alert {
  border: 0;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
}
.registration-entry .alert-validation,
.registration-entry .alert-danger { background: #fdecea; color: #8a1f17; }
.registration-entry .alert-info { background: #e8f3f8; color: #0b4a66; }
.registration-entry .alert-success { background: var(--gx-green-5); color: #2f4410; }

@media (max-width: 680px) {
  .registration-entry { padding: 32px 12px 64px; }
  .registration-entry > .block-content { border-radius: 16px; padding: 28px 18px; }
  .gx .gx-apply-hero { padding: 112px 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .registration-entry .btn,
  .registration-entry .form-control,
  .registration-entry .rockradiobuttonlist label.radio-inline,
  .registration-entry .rockcheckboxlist label.checkbox-inline { transition: none; }
}
