/* Good Boy Golf event inquiry form — styled to match the Good Boy Golf site */

:root {
  --ink: #0e120c;
  --ink-soft: rgba(14, 18, 12, 0.72);
  --grey: rgba(14, 18, 12, 0.6);
  --paper: #fcfcfb;
  --tile: #efefec;
  --white: #ffffff;
  --line: rgba(14, 18, 12, 0.12);
  --line-strong: rgba(14, 18, 12, 0.28);
  --green: #057350;
  --green-deep: #045c40;
  --green-light: #8ec0b0;
  --green-soft: #e6f1ee;
  --error: #b42318;
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 16px;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; }

.gg-btn, .gg-steps, .gg-kicker, .gg-program-tag, .gg-foot {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

button, input, select, textarea { font: inherit; color: inherit; }

/* Header + intro */

.gg-top {
  background: var(--ink);
  padding: 14px 20px;
  display: flex;
  justify-content: center;
}

.gg-logo {
  height: 40px;
  width: auto;
}

.gg-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

.gg-intro {
  text-align: center;
  padding: 48px 8px 32px;
}

.gg-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  background: var(--green);
  color: var(--white);
  padding: 5px 10px 4px;
  border-radius: var(--radius-s);
  margin-bottom: 18px;
}

.gg-intro h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.gg-lede {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--grey);
  font-size: 16px;
}

/* Card + steps */

.gg-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
}

.gg-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.gg-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--grey);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.gg-steps li span {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-s);
  background: var(--tile);
  color: var(--grey);
  font-size: 11px;
}

.gg-steps li.is-done { color: var(--ink); border-color: var(--ink); }
.gg-steps li.is-done span { background: var(--ink); color: var(--white); }
.gg-steps li.is-current { color: var(--green); border-color: var(--green); }
.gg-steps li.is-current span { background: var(--green); color: var(--white); }

.gg-screen h2 {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 4px;
}

.gg-sub {
  color: var(--grey);
  font-size: 15px;
  margin-bottom: 20px;
}

/* Program cards */

.gg-programs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gg-program {
  position: relative;
  display: block;
  cursor: pointer;
}

.gg-program input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gg-program-body {
  position: relative;
  height: 100%;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 44px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--white);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

/* Checkbox indicator, top-right of the card. */
.gg-program-body::before {
  content: '';
  position: absolute;
  right: 14px;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line-strong);
  background: var(--white) center / 14px no-repeat;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gg-program-icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-m);
  background: var(--tile);
  color: var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.gg-program-icon svg {
  width: 28px;
  height: 28px;
}

.gg-icon-mask {
  width: 26px;
  height: 26px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.gg-program-text {
  min-width: 0;
}

.gg-program input:checked + .gg-program-body .gg-program-icon {
  background: var(--green);
  color: var(--white);
}

.gg-program:hover .gg-program-body { border-color: var(--green-light); }

.gg-program input:checked + .gg-program-body {
  border-color: var(--green);
  background: var(--green-soft);
}

.gg-program input:checked + .gg-program-body::before {
  border-color: var(--green);
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath d='M8.2 13.6 4.7 10l-1.2 1.2 4.7 4.7 9-9-1.2-1.2z'/%3E%3C/svg%3E");
}

.gg-program input:focus-visible + .gg-program-body {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.gg-program-name {
  display: block;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.gg-program-tag {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
}

.gg-program-blurb {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--grey);
}

.gg-program-note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-style: italic;
  color: var(--grey);
}

/* Fields */

.gg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gg-span-2 { grid-column: 1 / -1; }

.gg-field label,
.gg-legend {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.gg-optional {
  font-weight: 400;
  color: var(--grey);
}

.gg-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--white);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.gg-input { min-height: 96px; resize: vertical; }

.gg-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.gg-input[aria-invalid="true"] { border-color: var(--error); }

.gg-error {
  min-height: 0;
  margin-top: 4px;
  font-size: 13px;
  color: var(--error);
}

.gg-error:empty { display: none; }

.gg-inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--grey);
}

.gg-inline-check input { width: 18px; height: 18px; accent-color: var(--green); }

/* Chips (radio / checkbox pills) */

fieldset { border: 0; }

.gg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gg-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gg-chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.gg-chip:hover span { border-color: var(--green); }
.gg-chip input:checked + span { background: var(--green); border-color: var(--green); color: var(--white); }
.gg-chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* Follow-up blocks */

.gg-section-label {
  margin: 28px 0 12px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.gg-followup {
  padding: 18px;
  border-radius: var(--radius-l);
  background: var(--tile);
  margin-bottom: 12px;
}

.gg-followup h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 12px;
}

.gg-followup h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--green);
}

.gg-followup .gg-q + .gg-q { margin-top: 14px; }

/* Nav + buttons */

.gg-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.gg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s, opacity 0.2s;
}

.gg-btn-primary,
.gg-btn-accent { background: var(--green); border-color: var(--green); color: var(--white); }
.gg-btn-primary:hover:not(:disabled),
.gg-btn-accent:hover { background: var(--green-deep); border-color: var(--green-deep); }
.gg-btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
.gg-btn-ghost { background: transparent; border-color: transparent; color: var(--grey); padding: 12px 8px; }
.gg-btn-ghost:hover { color: var(--ink); }
.gg-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.gg-count {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--grey);
}

.gg-form-error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: #fef3f2;
  color: var(--error);
  font-size: 14px;
}

/* Thank-you screen */

.gg-done {
  text-align: center;
  padding: 16px 4px 8px;
}

.gg-done-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: var(--radius-l);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath d='M8.2 13.6 4.7 10l-1.2 1.2 4.7 4.7 9-9-1.2-1.2z'/%3E%3C/svg%3E") center / 34px no-repeat;
}

.gg-done h2 { font-size: 28px; letter-spacing: -0.03em; margin-bottom: 8px; }
.gg-done p { color: var(--grey); max-width: 460px; margin: 0 auto 8px; }
.gg-done ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 24px; }
.gg-done li { padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font-size: 13px; font-weight: 500; }

.gg-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gg-foot {
  text-align: center;
  font-size: 11px;
  color: var(--grey);
  padding: 0 16px 32px;
}

@media (max-width: 640px) {
  .gg-intro { padding: 32px 4px 24px; }
  .gg-card { padding: 20px 16px; }
  .gg-programs, .gg-grid { grid-template-columns: 1fr; }
  .gg-span-2 { grid-column: auto; }
  .gg-steps li { font-size: 10px; gap: 6px; }
  .gg-nav { flex-wrap: wrap; }
  .gg-nav .gg-btn-primary { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.gg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
