/* =========================================================================
   GiftdMinds Build & Pitch Contest 2027
   Styles matched to www.giftdminds.com/admissions/
   (Montserrat, navy #080526, teal #5acca6, teal gradient buttons/lines)
   ========================================================================= */

:root {
  --gm-navy: #080526;
  --gm-navy-2: #0f0b3a;          /* slightly lighter navy for cards */
  --gm-navy-3: #17124f;
  --gm-teal: #5acca6;            /* headings (.gm-h2, .gm-clr-pri) */
  --gm-cyan: #26bac7;            /* loader dots */
  --gm-grad: linear-gradient(45deg, #008b9e 0%, #00bca7 30%, #00d7ac 90%);
  --gm-line: rgba(0, 188, 167, .7);
  --gm-text: #ffffff;
  --gm-muted: rgba(255, 255, 255, .65);
  --gm-error: #ff6b6b;
  --gm-radius: 20px;
  --gm-font: 'Montserrat', sans-serif;
  --gm-font-alt: 'Lato', sans-serif;
  --gm-header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--gm-header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-top: var(--gm-header-h);
  font-family: var(--gm-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gm-text);
  background: var(--gm-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; vertical-align: middle; }
a { color: var(--gm-teal); }
a:hover { color: #7fe0bf; }
[hidden] { display: none !important; }

.gm-container { width: 93%; max-width: 1400px; margin: 0 auto; }

/* ---------- Header ---------- */
.gm-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--gm-header-h);
  background: rgba(8, 5, 38, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(90, 204, 166, .15);
}
.gm-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gm-header__brand img { height: 52px; width: auto; }
.gm-header__nav { display: flex; gap: 2rem; align-items: center; }
.gm-header__nav a {
  color: #fff; text-decoration: none; font-size: .95rem; font-weight: 400; position: relative; padding: .25rem 0;
}
.gm-header__nav a.is-active { font-weight: 600; }
.gm-header__nav a.is-active::after,
.gm-header__nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gm-grad);
}
.gm-header__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.gm-header__toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: #fff; transition: transform .25s, opacity .25s; }

@media (max-width: 900px) {
  :root { --gm-header-h: 70px; }
  .gm-header__brand img { height: 42px; }
  .gm-header__toggle { display: block; }
  .gm-header__nav {
    position: fixed; top: var(--gm-header-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--gm-navy); padding: .5rem 7% 1.5rem;
    border-bottom: 1px solid rgba(90, 204, 166, .2);
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
  }
  .gm-header__nav a { width: 100%; padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .gm-header__nav a::after { display: none; }
  .gm-header.is-open .gm-header__nav { transform: translateY(0); }
  .gm-header.is-open .gm-header__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .gm-header.is-open .gm-header__toggle span:nth-child(2) { opacity: 0; }
  .gm-header.is-open .gm-header__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Shared type & bits ---------- */
.gm-h2 {
  color: var(--gm-teal); font-weight: 600; margin: 0 0 1.5rem;
  font-size: 1.875rem; line-height: 2.5rem;
}
@media (min-width: 992px) { .gm-h2 { font-size: 2.5rem; line-height: 3.125rem; } }

.gm-vrline { position: relative; }
.gm-vrline::before {
  content: ""; position: absolute; left: 0; top: 4.5rem; width: 8px; height: 110px; background: var(--gm-grad);
}

.gm-btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  padding: .6rem 2rem; font: 600 1.25rem/1.75rem var(--gm-font); color: #fff;
  border-radius: 22px; background: var(--gm-grad);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.gm-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 188, 167, .3); }
.gm-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gm-btn:disabled { filter: grayscale(.6) brightness(.8); cursor: not-allowed; transform: none; box-shadow: none; }
.gm-btn--lg { padding: .85rem 3rem; font-size: 1.35rem; border-radius: 30px; }

.bpc-muted { color: var(--gm-muted); font-weight: 400; }
.bpc-req { color: var(--gm-teal); }
.bpc-grad-text { background: var(--gm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.bpc-hero { padding: 4rem 0 3.5rem; background:
  radial-gradient(1000px 500px at 85% -10%, rgba(0, 188, 167, .18), transparent 60%),
  radial-gradient(700px 400px at -10% 110%, rgba(38, 186, 199, .12), transparent 60%); }
.bpc-eyebrow {
  display: inline-block; margin: 0 0 1rem; padding: .35rem 1rem; border-radius: 999px;
  border: 1px solid var(--gm-line); color: var(--gm-teal); font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.bpc-hero__title { margin: 0 0 1rem; font-weight: 800; font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.12; max-width: 18ch; }
.bpc-hero__lead { margin: 0 0 1.25rem; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 600; }
.bpc-hero__text { max-width: 820px; margin: 0 0 1rem; font-size: 1.1rem; color: rgba(255,255,255,.88); }
.bpc-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.bpc-countdown { margin: 0; font-weight: 600; color: var(--gm-teal); }

/* ---------- Facts ---------- */
.bpc-facts { padding: 4rem 0 2rem; }
.bpc-facts .gm-h2, .bpc-form-section .gm-h2 { padding-left: 1.5rem; }
.bpc-facts__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.bpc-card {
  background: var(--gm-navy-2); border: 1px solid rgba(90, 204, 166, .2); border-radius: var(--gm-radius);
  padding: 1.5rem;
}
.bpc-card h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 600; color: var(--gm-teal); text-transform: uppercase; letter-spacing: .04em; }
.bpc-card p { margin: 0; }
.bpc-card--wide { grid-column: 1 / -1; }
.bpc-date { font-size: 1.6rem; font-weight: 700; line-height: 1.25; }
.bpc-notice {
  margin-top: 1.5rem; padding: 1.5rem 1.75rem; border-radius: var(--gm-radius);
  background: linear-gradient(135deg, rgba(0, 139, 158, .22), rgba(0, 215, 172, .1));
  border: 2px solid var(--gm-line);
}
.bpc-notice h3 { margin: 0 0 .5rem; color: var(--gm-teal); font-size: 1.2rem; }
.bpc-notice p { margin: 0 0 .5rem; }
.bpc-notice p:last-child { margin: 0; }

/* ---------- Form layout ---------- */
.bpc-form-section { padding: 4rem 0 5rem; }
.bpc-form-intro { max-width: 820px; font-size: 1.1rem; margin: 0 0 2rem; }
.bpc-closed { padding: 2rem; border-radius: var(--gm-radius); background: var(--gm-navy-2); border: 2px solid var(--gm-line); max-width: 820px; }
.bpc-closed h3 { color: var(--gm-teal); margin-top: 0; }

.bpc-form { max-width: 1040px; }
.bpc-step {
  margin: 0 0 1.75rem; padding: 1.75rem 1.5rem 1.5rem; border: 1px solid rgba(90, 204, 166, .22);
  border-radius: var(--gm-radius); background: var(--gm-navy-2); min-width: 0;
}
@media (min-width: 768px) { .bpc-step { padding: 2rem 2.25rem 1.75rem; } }
.bpc-step legend {
  float: left; width: 100%; padding: 0; margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.35rem; font-weight: 600; color: var(--gm-teal);
}
.bpc-step legend + * { clear: left; }
.bpc-step__num {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem;
  border-radius: 50%; background: var(--gm-grad); color: #fff; font-size: 1rem; font-weight: 700;
}
.bpc-help { margin: 0 0 1.25rem; color: var(--gm-muted); }

.bpc-grid { display: grid; gap: 0 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bpc-grid { grid-template-columns: 1fr 1fr; } }

.bpc-field { position: relative; display: flex; flex-direction: column; margin: 0 0 1.5rem; min-width: 0; }
.bpc-field--spaced { margin-top: 1.5rem; }
.bpc-field > label, .bpc-label { font-weight: 600; font-size: 1rem; margin-bottom: .4rem; }

/* Inputs – underline style like admissions page */
.bpc-input {
  width: 100%; font: 500 1.05rem var(--gm-font); color: #fff;
  background: transparent; border: 0; border-radius: 0;
  border-bottom: 2px solid; border-image: linear-gradient(to left, #008b9e, #00bca7) 1;
  padding: .55rem .15rem .5rem; outline: none;
  transition: background-color .2s;
}
.bpc-input::placeholder, .bpc-textarea::placeholder { color: rgba(255,255,255,.4); font-weight: 400; }
.bpc-input:focus { background-color: rgba(0, 188, 167, .07); }
select.bpc-input {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235acca6' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .3rem center;
}
select.bpc-input option { background: var(--gm-navy); color: #fff; }
input[type="date"].bpc-input { color-scheme: dark; }

/* Textarea – rounded teal box like admissions page */
.bpc-textarea {
  width: 100%; min-height: 102px; resize: vertical; padding: 15px;
  font: 400 1rem/1.55 var(--gm-font); color: #fff; background: transparent;
  border: 2px solid var(--gm-line); border-radius: var(--gm-radius); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.bpc-textarea:focus { border-color: #00d7ac; box-shadow: 0 0 0 3px rgba(0, 215, 172, .15); }

.bpc-counter { align-self: flex-end; font-size: .8rem; color: var(--gm-muted); margin-top: .3rem; }
.bpc-counter.is-over { color: var(--gm-error); font-weight: 600; }
.bpc-hint { font-size: .85rem; color: var(--gm-teal); margin-top: .35rem; min-height: 1em; }
.bpc-hint.is-bad { color: var(--gm-error); }

/* Errors */
.bpc-error { display: block; color: var(--gm-error); font-size: .85rem; font-weight: 500; margin-top: .35rem; min-height: 0; }
.bpc-error:empty { display: none; }
.is-invalid.bpc-input { border-image: linear-gradient(to left, #ff6b6b, #ff8e8e) 1; }
.is-invalid.bpc-textarea { border-color: var(--gm-error); }
.bpc-chips.is-invalid { outline: 2px dashed var(--gm-error); outline-offset: 6px; border-radius: 12px; }

/* Phone */
.bpc-phone { display: flex; align-items: flex-end; gap: .5rem; }
.bpc-phone__cc { padding: .55rem .5rem .55rem 0; font-weight: 600; color: var(--gm-muted); border-bottom: 2px solid rgba(255,255,255,.15); }

/* Checkboxes */
.bpc-checks { display: flex; flex-direction: column; }
.bpc-check {
  display: flex; gap: .85rem; align-items: flex-start; cursor: pointer;
  padding: .75rem .9rem; margin: .35rem 0 0; border-radius: 14px; transition: background-color .2s;
}
.bpc-check:hover { background: rgba(255,255,255,.04); }
.bpc-check input {
  flex: 0 0 auto; -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: .1rem 0 0;
  border: 2px solid var(--gm-line); border-radius: 6px; background: transparent; cursor: pointer; position: relative;
  transition: background .15s;
}
.bpc-check input:checked { background: var(--gm-grad); border-color: transparent; }
.bpc-check input:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.bpc-check input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.bpc-check input.is-invalid { border-color: var(--gm-error); }
.bpc-check + .bpc-error { margin: 0 0 .25rem 3.15rem; }

/* Segmented radio */
.bpc-segment { display: inline-flex; padding: 4px; border: 2px solid var(--gm-line); border-radius: 30px; width: max-content; max-width: 100%; }
.bpc-segment label { position: relative; cursor: pointer; }
.bpc-segment input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bpc-segment span { display: block; padding: .5rem 1.75rem; border-radius: 24px; font-weight: 600; transition: background .2s, color .2s; }
.bpc-segment input:checked + span { background: var(--gm-grad); }
.bpc-segment input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }

/* Chips */
.bpc-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.bpc-chip { position: relative; cursor: pointer; }
.bpc-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bpc-chip span {
  display: block; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid rgba(90, 204, 166, .45);
  font-size: .92rem; font-weight: 500; transition: background .15s, border-color .15s;
}
.bpc-chip:hover span { border-color: var(--gm-teal); }
.bpc-chip input:checked + span { background: var(--gm-grad); border-color: transparent; font-weight: 600; }
.bpc-chip input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }

/* Members */
.bpc-member { padding: 1.5rem 0 .5rem; border-top: 1px dashed rgba(90, 204, 166, .3); }
.bpc-member:first-child { border-top: 0; padding-top: 0; }
.bpc-member__title { margin: 0 0 1.25rem; font-size: 1.15rem; font-weight: 700; }
.bpc-member__lead { color: var(--gm-teal); font-weight: 500; font-size: .95rem; }
.bpc-member__sub { margin: .5rem 0 1rem; font-size: 1rem; font-weight: 600; color: var(--gm-teal); }

/* Tip box */
.bpc-tipbox { padding: 1.1rem 1.4rem; margin: 0 0 1.5rem; border-radius: 16px; background: rgba(0, 188, 167, .08); border-left: 4px solid #00bca7; }
.bpc-tipbox p { margin: 0 0 .4rem; }
.bpc-tipbox ul { margin: 0 0 .6rem; padding-left: 1.25rem; }

/* Video upload */
.bpc-drop {
  position: relative; padding: 1.75rem 1.5rem; text-align: center; border: 2px dashed var(--gm-line);
  border-radius: var(--gm-radius); transition: background .2s, border-color .2s;
}
.bpc-drop.is-drag { background: rgba(0, 188, 167, .1); border-color: #00d7ac; }
.bpc-drop.is-invalid { border-color: var(--gm-error); }
.bpc-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.bpc-drop p { margin: .2rem 0; }
.bpc-video {
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin-top: 1rem;
  padding: 1rem; border-radius: var(--gm-radius); border: 1px solid rgba(90,204,166,.4); background: rgba(0,188,167,.05);
}
.bpc-video video { width: 260px; max-width: 100%; max-height: 220px; border-radius: 12px; background: #000; }
.bpc-video__meta { flex: 1 1 200px; min-width: 0; }
.bpc-video__meta p { margin: 0 0 .35rem; word-break: break-word; }
.bpc-video__name { font-weight: 600; }
.bpc-linkbtn { background: none; border: 0; padding: 0; color: var(--gm-teal); font: 600 .95rem var(--gm-font); text-decoration: underline; cursor: pointer; }

/* Submit */
.bpc-submit { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: 1rem; }
.bpc-draft-note { margin: 0; font-size: .85rem; min-height: 1.2em; }
.bpc-form-error { margin: 0; padding: .9rem 1.2rem; border-radius: 12px; background: rgba(255, 107, 107, .12); border: 1px solid var(--gm-error); color: #ffd0d0; font-weight: 500; }

/* Honeypot */
.bpc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.gm-footer { padding: 60px 0 0; border-top: 1px solid rgba(90, 204, 166, .15); margin-top: 2rem; }
.gm-footer__main { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .gm-footer__main { grid-template-columns: 1fr 1.3fr 2fr; } }
.gm-footer__heading { margin: 0 0 1.5rem; color: var(--gm-teal); font-size: 1.6rem; font-weight: 600; }
.gm-footer__social { display: flex; gap: 1rem; }
.gm-footer__social img { width: 36px; height: 36px; }
.gm-footer__media { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; color: #fff; text-decoration: none; }
.gm-footer__media:hover { color: var(--gm-teal); }
.gm-footer__media img { width: 22px; height: 22px; }
.gm-footer__map iframe { border-radius: 16px; }
.gm-footer__brand { text-align: center; padding: 2rem 0 .5rem; }
.gm-footer__brand a { color: #fff; text-decoration: none; font-weight: 900; font-size: 1.25rem; font-family: var(--gm-font-alt); }
.gm-footer__brand span { font-weight: 400; }
.gm-footer__copy { text-align: center; font-size: 12px; padding: 8px 0 18px; color: rgba(255,255,255,.85); }

/* ---------- Loader (same as admissions) ---------- */
@keyframes three { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
.loaderForm {
  position: fixed; inset: 0; z-index: 1035; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: rgba(0, 0, 0, .8);
}
.loaderForm.active { display: flex; }
.loaderForm__text { margin: 0; font-weight: 600; text-align: center; padding: 0 1rem; }
.loaderForm__sub { margin: 0; font-size: .85rem; text-align: center; padding: 0 1rem; }
.loaderForm__bar { width: min(320px, 80vw); height: 10px; border-radius: 10px; background: rgba(255,255,255,.12); overflow: hidden; }
.loaderForm__bar span { display: block; height: 100%; width: 0; background: var(--gm-grad); transition: width .3s ease; }
.threes { display: flex; align-items: center; justify-content: space-between; width: 5rem; height: 5rem; }
.threes .three { display: inline-flex; width: 30%; height: 30%; border-radius: 100%; background: var(--gm-cyan); animation: three 1.5s infinite ease-in-out both; }
.threes .three-1 { animation-delay: -320ms; }
.threes .three-2 { animation-delay: -160ms; }

/* ---------- Popups ---------- */
.gm-popup { position: fixed; inset: 0; z-index: 1040; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, .8); }
.gm-popup__message {
  width: 100%; max-width: 420px; padding: 2rem 1.75rem; text-align: center;
  background: var(--gm-navy); border: 2px solid var(--gm-line); border-radius: 18px;
  animation: pop .25s ease-out;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gm-popup__message img { max-width: 160px; margin-bottom: 1rem; }
.gm-popup__message h3 { color: var(--gm-teal); margin: 0 0 .75rem; font-size: 1.4rem; }
.gm-popup__message p { margin: 0 0 .75rem; }
.gm-popup__ref { font-size: 1.1rem; }
.gm-popup__ref strong { color: var(--gm-teal); letter-spacing: .05em; }
.gm-popup__message .gm-btn { margin-top: .75rem; }

/* ---------- Small screens ---------- */
@media (max-width: 575px) {
  .gm-vrline::before { width: 6px; height: 80px; }
  .bpc-hero { padding-top: 2.5rem; }
  .bpc-segment span { padding: .5rem 1.25rem; }
  .gm-btn--lg { width: 100%; }
  .bpc-submit { align-items: stretch; }
}
