:root {
  --pink-primary:  #ce7a8a;
  --pink-muted:    #e1a6b0;
  --pink-light:    #e9bcc3;
  --pink-dark:     #b94c67;
  --pink-deep:     #a83e56;
  --pink-hover:    #9d3b52;
  --bg-main:       #0f172a;
  --bg-card:       rgba(233,188,195,0.08);
  --bg-card-hover: rgba(233,188,195,0.14);
  --bg-input:      rgba(17,24,39,0.7);
  --border:        rgba(255,255,255,0.1);
  --border-input:  rgba(255,255,255,0.18);
  --border-card:   rgba(233,188,195,0.1);
  --border-pink:   rgba(206,122,138,0.35);
  --text-main:     #f8fafc;
  --text-secondary:#d1d5db;
  --text-muted:    #cbd5e1;
  --danger-text:   #f87171;
  --header-bg:     rgba(15,23,42,0.62);
  --header-border: rgba(233,188,195,0.16);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(rgba(2,6,23,0.72), rgba(2,6,23,0.72)),
    radial-gradient(circle at 10% 20%, rgba(44,154,236,0.06), transparent 20%),
    var(--about-bg, linear-gradient(180deg, #071129 0%, #0b1220 100%));
  background-size: cover, cover, cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  --about-bg: url('../apply.png');
}

:where(a, button, input, textarea, legend):focus-visible {
  outline: 2px solid var(--pink-light);
  outline-offset: 2px;
}

/* navigation bar */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 2rem;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--header-border);
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--pink-primary); line-height: 1; }

.nav-menu { display: flex; gap: 0.6rem; }
.nav-btn {
  background: var(--pink-dark); color: #fff;
  text-decoration: none; padding: 0.55rem 1.25rem; border-radius: 8px;
  font-weight: 700; font-size: 0.9rem; font-family: 'Inter', sans-serif;
  transition: background-color 160ms ease, transform 160ms ease; white-space: nowrap;
}
.nav-btn.active { background: var(--pink-deep); color: #fff; }

@media (hover: hover) {
  .nav-btn:hover { background: var(--pink-hover); color: #fff; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .nav-btn:hover { transform: translateY(-1px); }
}

.burger {
  position: relative; display: none; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 0;
  box-shadow: none; border-radius: 8px;
}
.burger span {
  position: absolute; left: 8px; width: 28px; height: 3px;
  background: var(--text-main); border-radius: 2px;
  transition: transform 220ms cubic-bezier(0.2, 0, 0, 1), opacity 150ms ease;
}
.burger span:nth-of-type(1) { top: 14px; }
.burger span:nth-of-type(2) { top: 21px; }
.burger span:nth-of-type(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-of-type(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
.burger::before { display: none; }

/* hero */
.hero { padding: 4rem 1.5rem 3rem; text-align: center; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(206,122,138,0.15); border: 1px solid var(--border-pink);
  color: var(--pink-muted); font-family: 'Poppins', sans-serif;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; padding: 6px 18px; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: 'Poppins', sans-serif; font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1;
  letter-spacing: -0.02em; color: #fff;
  text-shadow: 0 0 40px rgba(206,122,138,0.45);
  text-wrap: balance;
}
.hero h1 span { display: inline-block; color: var(--pink-primary); }

.hero p { margin-top: 1rem; color: var(--text-secondary); font-size: 1.05rem; max-width: 520px; margin-inline: auto; line-height: 1.6; }

/* slide the hero text in from the sides; the form stays still */
@keyframes hero-in-left {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-in-right {
  from { opacity: 0; transform: translateX(72px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-in-soft {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow {
    animation: hero-in-soft 500ms cubic-bezier(0.2, 0, 0, 1) both;
  }

  .hero h1 {
    animation: hero-in-left 620ms 80ms cubic-bezier(0.2, 0, 0, 1) both;
  }

  .hero h1 span {
    animation: hero-in-right 620ms 160ms cubic-bezier(0.2, 0, 0, 1) both;
  }

  .hero p {
    animation: hero-in-soft 520ms 240ms cubic-bezier(0.2, 0, 0, 1) both;
  }
}

/* form container */
.container { max-width: 780px; margin: 0 auto; padding: 0 1.5rem 4rem; flex: 1; width: 100%; }

/* quick info cards */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.info-card {
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: 12px; padding: 1.2rem 1rem; text-align: center;
  backdrop-filter: blur(8px);
}

.info-card .icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.info-card .label { font-family: 'Poppins', sans-serif; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.2rem; }
.info-card .value { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--pink-light); font-variant-numeric: tabular-nums; }

/* form cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  transition: background-color 160ms ease, border-color 160ms ease;
}
.card-title {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.2rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--pink-primary);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem;
}
.card-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(206,122,138,0.35), transparent);
}

/* requirements list */
.req-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.req-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.5; }
.req-list li::before { content: '✦'; color: var(--pink-primary); font-size: 0.72rem; flex-shrink: 0; margin-top: 3px; }

/* role selector */
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 0.5rem; }
.role-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.role-option { display: block; }
.role-option .role-surface {
  display: block; padding: 0.85rem 1rem;
  background: var(--bg-input); border: 1px solid var(--border-input);
  border-radius: 10px; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
@media (hover: hover) {
  .role-option .role-surface:hover { border-color: var(--border-pink); background: var(--bg-card-hover); }
}
.role-option input:checked + .role-surface { border-color: var(--pink-primary); background: rgba(206,122,138,0.1); box-shadow: 0 0 0 1px var(--pink-primary); }
.role-option input:focus-visible + .role-surface { outline: 2px solid var(--pink-light); outline-offset: 2px; }
.role-name { display: block; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.88rem; color: var(--text-main); }
.role-desc { display: block; font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }

/* form fields */
.field { margin-bottom: 1.2rem; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-family: 'Poppins', sans-serif; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.45rem; }
.field input, .field textarea {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border-input);
  color: var(--text-main); border-radius: 10px; padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif; font-size: 0.92rem;
  transition: border-color 0.15s, background-color 0.15s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--pink-primary); outline: 2px solid var(--pink-light); outline-offset: 2px; }
.field textarea { min-height: 105px; }
.field .hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }

.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* submit button */
.btn-submit {
  width: 100%; padding: 1rem; background: var(--pink-dark); color: #fff;
  border: none; border-radius: 12px; font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em;
  cursor: pointer; transition: background-color 0.15s, transform 0.15s; margin-top: 0.5rem;
  box-shadow: none;
}
@media (hover: hover) {
  .btn-submit:hover { background: var(--pink-deep); color: #fff; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn-submit:active:not(:disabled) { transform: scale(0.96); }
}
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-status { margin-top: 0.75rem; font-size: 0.85rem; line-height: 1.5; color: var(--danger-text); }
.form-status:empty { display: none; }

/* application received notice */
.pending-card {
  background: var(--bg-card); border: 1px solid var(--border-pink);
  border-radius: 12px; padding: 3rem 2rem; text-align: center;
  backdrop-filter: blur(10px); margin-bottom: 1.5rem; display: none;
}
.pending-card.show { display: block; }
.pending-icon { font-size: 3rem; margin-bottom: 1rem; }
.pending-card h2 { font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 1.5rem; color: var(--pink-primary); margin-bottom: 0.75rem; }
.pending-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; max-width: 420px; margin: 0 auto 1.5rem; }
.pending-username { color: var(--pink-light); font-weight: 700; }
.btn-withdraw {
  background: transparent; border: 1px solid var(--border-input);
  color: var(--text-secondary); padding: 0.6rem 1.4rem; border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
  text-transform: uppercase; letter-spacing: 0.03em; box-shadow: none;
}
@media (hover: hover) {
  .btn-withdraw:hover { border-color: var(--danger-text); color: var(--danger-text); background: transparent; }
}
.btn-withdraw:hover::before { display: none; }

/* footer */
.footer { text-align: center; padding: 1.25rem; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 0.875rem; }

/* mobile adjustments */
@media (max-width: 768px) {
  .navbar { padding: 0.75rem 1rem; }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    width: 100%;
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(15,23,42,0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 1rem;
    gap: 0.5rem;
    z-index: 99;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.open { display: flex; }
  .burger { display: block; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .card { padding: 1.25rem; }
  .hero { padding: 3rem 1rem 2rem; }
  body { background-attachment: scroll; }
  .field input, .field textarea { font-size: 16px; }
}
@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .burger span { transition: none; }
}
