:root {
  color-scheme: light;
  --navy: #212348;
  --blue: #6390cb;
  --muted: #575756;
  --line: #d0d0d0;
  --paper: #f3f6fa;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy);
  background: var(--paper);
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.site-header { background: var(--navy); color: #fff; border-bottom: 4px solid var(--blue); }
.site-bar, .page { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.club-name { font-size: 1.1rem; font-weight: 750; }
.club-name span { color: #b9d1ef; font-weight: 500; }
.languages { display: flex; align-items: center; gap: .25rem; }
.languages button {
  min-height: 2.5rem;
  min-width: 2.5rem;
  padding: .25rem .45rem;
  color: #fff;
  background: transparent;
  border: 1px solid transparent;
  border-radius: .4rem;
  font-size: .9rem;
  font-weight: 650;
}
.languages button[aria-pressed='true'] { background: #fff; color: var(--navy); }
.languages button[aria-pressed='false']:hover { border-color: #b9d1ef; }

.page { padding-block: clamp(2rem, 6vw, 4rem); }
.page-heading { margin-bottom: 1.8rem; }
.season { margin: 0 0 .35rem; font-weight: 700; }
h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 760; letter-spacing: -.045em; line-height: 1.08; }
.intro { margin: .75rem 0 0; color: var(--muted); }
.membership-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, .55fr); gap: 1.5rem; align-items: start; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: .9rem; }
fieldset { min-inline-size: 0; padding: 0; margin: 0; border: 0; }
form > fieldset { padding: clamp(1.15rem, 3vw, 1.75rem); }
.form-section + .form-section { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.35rem; }
h2 { font-size: 1.28rem; margin: 0 0 1rem; line-height: 1.25; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem 1rem; }
.fields label { display: flex; flex-direction: column; gap: .32rem; min-width: 0; font-size: .94rem; font-weight: 650; }
.fields small { font-size: .88rem; font-weight: 450; color: var(--muted); }
.fields input, .fields select {
  display: block;
  min-height: 2.9rem;
  width: 100%;
  padding: .55rem .65rem;
  border: 1px solid #a9aab6;
  border-radius: .45rem;
  background: #fff;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 450;
}
.select-field { position: relative; display: block; min-width: 0; }
.select-field select { appearance: none; padding-right: 1.85rem; text-overflow: ellipsis; }
.select-field::after {
  content: '';
  position: absolute;
  inset: 43% .75rem auto auto;
  width: .5rem;
  height: .5rem;
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.rink-options { margin-top: 1.2rem; }
.rink-options legend { font-size: .95rem; font-weight: 650; padding: 0; margin-bottom: .3rem; }
.rink-options label, .alumni-option { display: flex; align-items: baseline; gap: .5rem; padding: .3rem 0; }
.rink-options input, .alumni-option input { accent-color: var(--navy); margin: 0; flex: none; width: 1rem; height: 1rem; }
.alumni-option { margin-top: .65rem; }
.form-actions { margin-top: 1.35rem; }
.primary { display: block; min-height: 3rem; padding: .6rem 1rem; border: 0; border-radius: .45rem; background: var(--navy); color: #fff; font-weight: 700; }
.primary:hover { background: #33386a; }
#review-result { margin: .85rem 0 0; padding: .65rem .85rem; border-left: 3px solid var(--blue); background: var(--paper); overflow-wrap: anywhere; }

.estimate { position: sticky; top: 1.25rem; padding: 1.5rem; background: var(--navy); color: #fff; border-radius: .9rem; border-top: 4px solid var(--blue); }
.estimate h2 { margin-bottom: .8rem; }
.estimate-placeholder p { margin: 0; color: #dbe3f2; }
.estimate-lines { display: grid; gap: .55rem; margin: 0; color: #e5ebf7; font-size: .94rem; }
.estimate-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.estimate-lines dd { flex: none; margin: 0; font-weight: 650; }
.club-total { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid #636987; }
.club-total span { display: block; color: #e5ebf7; }
.club-total strong { display: block; margin-top: .15rem; font-weight: 760; font-size: clamp(1.9rem, 4.5vw, 2.65rem); letter-spacing: -.03em; line-height: 1.2; }
.alumni-cost { margin-top: 1rem; border-top: 1px solid #636987; padding-top: .85rem; }

@media (max-width: 48rem) {
  .membership-layout { grid-template-columns: 1fr; }
  .estimate { position: static; }
}

@media (max-width: 33rem) {
  .site-bar, .page { width: calc(100% - 1.5rem); }
  .fields { grid-template-columns: 1fr; }
  .primary { width: 100%; }
}
