* {
  box-sizing: border-box;
}

:root {
  --navy: #082f68;
  --navy-2: #0b438b;
  --blue: #1678d2;
  --blue-2: #2399ee;
  --ice: #edf7ff;
  --line: #b9ddff;
  --ink: #10233e;
  --muted: #5a6c82;
  --success: #15804a;
  --danger: #b42318;
  --shadow: 0 28px 80px rgba(5, 42, 91, 0.24);
}

html {
  min-height: 100%;
  background: #e8f4ff;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.9),
      transparent 36%
    ),
    linear-gradient(135deg, #e9f4ff, #f9fcff 50%, #dceeff);
}

a {
  color: #0b65ba;
  text-underline-offset: 3px;
}

.site-shell {
  width: min(100%, 1080px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 75px rgba(5, 42, 91, 0.16);
}

.hero {
  position: relative;
  min-height: 420px;
  background: url("images/hero-background.png") center top / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.12)
  );
}

.hero-spacer {
  min-height: 360px;
}

.portal-card {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 28px), 780px);
  margin: -2px auto 26px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.portal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 32px 90px rgba(5, 42, 91, 0.28);
}

.status-pill {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c6e3ff;
  border-radius: 999px;
  background: #f1f8ff;
  color: #0c5ca8;
  font-size: 0.84rem;
  font-weight: 800;
}

.mini-wifi,
.button-wifi {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.mini-wifi {
  width: 18px;
  height: 18px;
}

.button-wifi {
  width: 27px;
  height: 27px;
}

.title-block {
  text-align: center;
}

.title-block h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.headline {
  margin: 20px 0 5px;
  color: var(--blue);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 800;
}

.subhead {
  margin: 0 0 30px;
  color: var(--muted);
}

.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.input-wrap {
  position: relative;
}

.input-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: #6b7f96;
  stroke-width: 1.8;
}

.input-wrap input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px 0 48px;
  border: 2px solid #cbd9e7;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--blue-2);
  box-shadow: 0 0 0 5px rgba(35, 153, 238, 0.14);
  transform: translateY(-1px);
}

.terms-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 24px 0 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.88),
    rgba(231, 244, 255, 0.95)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shield {
  width: 62px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #278fe0, #0a3e83);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(8, 63, 132, 0.2);
}

.shield svg {
  width: 40px;
  height: 46px;
  fill: none;
  stroke: white;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.terms-card h2,
.reminder h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1rem;
}

.terms-card p,
.reminder p {
  margin: 0;
  color: #364c65;
  line-height: 1.55;
}

.check-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  margin: 14px 0 0;
  line-height: 1.5;
}

.check-row input {
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: var(--blue);
}

.check-row.optional {
  color: var(--muted);
  font-size: 0.93rem;
}

.field-error {
  min-height: 1.1em;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 700;
}

#connect-button {
  position: relative;
  width: 100%;
  min-height: 74px;
  margin-top: 26px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: white;
  background: linear-gradient(180deg, #258fe8, #1169c5);
  box-shadow:
    0 7px 0 #0753a2,
    0 14px 30px rgba(18, 105, 197, 0.28);
  font: inherit;
  font-size: clamp(1.08rem, 2.8vw, 1.42rem);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

#connect-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 9px 0 #0753a2,
    0 18px 36px rgba(18, 105, 197, 0.32),
    0 0 24px rgba(35, 153, 238, 0.35);
}

#connect-button:active {
  transform: translateY(2px);
  filter: brightness(0.98);
  box-shadow:
    0 5px 0 #0753a2,
    0 10px 20px rgba(18, 105, 197, 0.22);
}

#connect-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 80%
  );
  transform: translateX(-150%);
  transition: transform 0.7s ease;
}

#connect-button:hover::before {
  transform: translateX(150%);
}

#connect-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.button-glow {
  position: absolute;
  top: -70%;
  left: -30%;
  width: 36%;
  height: 240%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.34),
    transparent
  );
  transform: rotate(20deg);
  animation: shine 4.5s infinite;
}

.button-wifi {
  width: 27px;
  height: 27px;
  position: relative;
  z-index: 1;
}

.button-label {
  position: relative;
  z-index: 1;
}

@keyframes shine {
  0%,
  55% {
    left: -42%;
  }
  75%,
  100% {
    left: 125%;
  }
}

.form-status {
  min-height: 1.25em;
  margin: 16px 0 0;
  text-align: center;
  font-weight: 800;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

.reminder,
.review-card {
  margin-top: 28px;
  border-radius: 20px;
}

.reminder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: linear-gradient(145deg, #e8f4ff, #d9ecff);
}

.reminder-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 2px solid #1c6bb7;
  border-radius: 18px;
  background: white;
  color: #0c5ca8;
  box-shadow: 0 9px 20px rgba(12, 92, 168, 0.14);
}

.reminder-icon svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin-bottom: 4px !important;
  color: var(--blue) !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-card {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #f0d58e;
  background: linear-gradient(145deg, #fffdf6, #fff8dc);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(89, 70, 12, 0.12);
}

.stars {
  color: #f5b301;
  font-size: 1.28rem;
  letter-spacing: 0.05em;
}

.legal-links {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  padding: 21px 16px 34px;
  color: white;
  text-align: center;
  background:
    radial-gradient(
      circle at 10% 50%,
      rgba(46, 153, 239, 0.24),
      transparent 18%
    ),
    radial-gradient(
      circle at 90% 50%,
      rgba(46, 153, 239, 0.24),
      transparent 18%
    ),
    linear-gradient(180deg, #093a79, #062d63);
}

footer strong {
  font-size: 1.2rem;
}

footer span {
  color: #d5ebff;
}

footer em {
  color: #68bdf9;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 18, 42, 0.62);
  backdrop-filter: blur(8px);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 430px);
  padding: 34px;
  border-radius: 24px;
  background: white;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-check {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2fbf73, #14834b);
  color: white;
  font-size: 2rem;
  font-weight: 800;
}

.modal-card h2 {
  margin: 0 0 10px;
  color: var(--navy);
}

.modal-card p {
  color: var(--muted);
  line-height: 1.6;
}

.secondary-button {
  min-width: 130px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--navy-2);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* ===========================================
   Mobile Responsive
=========================================== */

@media (max-width: 768px) {
  .hero,
  .hero-spacer {
    min-height: 170px;
    height: 170px;
  }

  .hero {
    background-size: auto 170px;
    background-position: top center;
    background-repeat: no-repeat;
  }

  .portal-card {
    width: calc(100% - 14px);
    margin-top: 4px;
    padding: 22px 16px 26px;
    border-radius: 22px;
  }

  .status-pill {
    margin-bottom: 16px;
    font-size: 0.76rem;
  }

  .title-block h1 {
    font-size: 1.65rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .headline {
    margin-top: 14px;
    font-size: 1.05rem;
  }

  .subhead {
    margin-bottom: 22px;
    font-size: 0.88rem;
  }

  .input-wrap input {
    min-height: 56px;
    font-size: 16px;
  }

  .terms-card {
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 16px;
    text-align: left;
  }

  .shield {
    width: 46px;
    height: 52px;
    margin: 0;
    border-radius: 15px;
  }

  .shield svg {
    width: 29px;
    height: 34px;
  }

  .terms-card h2 {
    font-size: 0.92rem;
  }

  .terms-card p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .check-row {
    font-size: 0.9rem;
  }

  #connect-button {
    min-height: 64px;
    font-size: 1.08rem;
  }

  .reminder {
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 16px;
    text-align: left;
  }

  .reminder-icon {
    width: 46px;
    height: 46px;
    margin: 0;
  }

  .review-card {
    padding: 16px;
  }



}   /* <-- Close the media query HERE */

/* ===========================================
   Accessibility
=========================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}
