/* Registration page — sky + glass, matches landing taste */

.lmg-register-page {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 80px;
  color: #15708c;
  overflow-x: clip;
  background-color: #0f2036;
}

.lmg-register-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #0f2036;
}
.lmg-register-sky .lmg-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.lmg-register-wrap {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.lmg-register-hero {
  text-align: center;
  margin: 0 0 28px;
  color: #fff;
}

.lmg-register-eyebrow {
  margin: 0 0 8px;
  font-family: Exo, sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

.lmg-register-hero h1 {
  margin: 0 0 10px;
  font-family: "DVN-Beaufort", Georgia, serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 8px 24px rgba(10, 40, 70, 0.25);
}
.lmg-register-hero h1.is-success {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lmg-register-lead {
  margin: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.lmg-register-card {
  padding: 36px 40px 32px;
  margin: 0 0 22px;
  border-radius: 20px;
  color: #fff;
}

.lmg-register-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-family: "DVN-Beaufort", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: #fff;
}

.lmg-register-card h2 span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0179c1, #56b5e3);
  color: #fff;
  font-family: Exo, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.lmg-register-section-note {
  margin: 0 0 22px;
  font-family: Exo, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.lmg-register-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.lmg-register-meta li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(21, 112, 140, 0.12);
  font-size: 16px;
}

.lmg-register-meta li:last-child {
  border-bottom: 0;
}

.lmg-register-meta span {
  opacity: 0.9;
  color: #fff;
}

.lmg-register-meta strong {
  font-weight: 600;
  color: #fff;
}

.lmg-register-flash {
  padding: 24px 28px;
  margin: 0 0 22px;
  border-radius: 20px;
}

.lmg-register-flash.is-success {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(210, 245, 220, 0.85));
  color: #fff;
}
.lmg-register-flash.is-success strong,
.lmg-register-flash.is-success p {
  color: #fff;
}
.lmg-register-flash.is-success > p:first-child {
  margin-top: 0;
}

.lmg-register-flash.is-error {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 220, 220, 0.9));
  color: #fff;
}
.lmg-register-flash.is-error strong,
.lmg-register-flash.is-error p {
  color: #fff;
}

.lmg-register-flash.is-closed {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.25), rgba(255, 236, 200, 0.92));
  color: #fff;
}
.lmg-register-flash.is-closed strong,
.lmg-register-flash.is-closed p {
  color: #fff;
}
.lmg-register-flash.is-closed > p:first-child {
  margin-top: 0;
}

.lmg-register-flash p {
  margin: 8px 0 0;
}

.lmg-register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  align-items: start;
}

.lmg-field-span {
  grid-column: 1 / -1;
}

.lmg-reg-prefetch-status {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(21, 112, 140, 0.08);
  color: #026986;
}
.lmg-reg-prefetch-status.is-ok {
  background: rgba(34, 140, 80, 0.12);
  color: #1a6b3c;
}
.lmg-reg-prefetch-status.is-error {
  background: rgba(183, 45, 45, 0.1);
  color: #8f1f1f;
}
.lmg-reg-prefetch-status.is-loading {
  background: rgba(21, 112, 140, 0.08);
  color: #026986;
}

#lmg-golfer-info {
  scroll-margin-top: 110px;
}

.lmg-field {
  display: grid;
  gap: 8px;
  font-size: 15px;
  min-width: 0;
}

.lmg-field > span {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.lmg-field-hint {
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}
.lmg-field input,
.lmg-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(21, 112, 140, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  font: inherit;
  color: #1c2b45;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.lmg-field input.lmg-input-numeric {
  font-variant-numeric: tabular-nums;
}

.lmg-dob {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}
.lmg-dob__display {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
  padding-right: 42px !important;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
  color: #1c2b45;
  -webkit-text-fill-color: #1c2b45;
  opacity: 1;
}
.lmg-dob__picker {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 12px;
  opacity: 0.011;
  cursor: pointer;
  box-shadow: none !important;
  background: transparent !important;
  color: transparent;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
}
.lmg-dob__picker::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.lmg-dob__clear {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 3;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(21, 112, 140, 0.12);
  color: #15708c;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.lmg-dob__clear[hidden] {
  display: none !important;
}
.lmg-dob__clear:hover {
  background: rgba(21, 112, 140, 0.22);
}

.lmg-field input:focus,
.lmg-field textarea:focus {
  outline: none;
  border-color: #0179c1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(1, 121, 193, 0.18);
}

.lmg-fieldset {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.lmg-fieldset legend {
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

/* Space between stacked blocks in a card (fieldset ↔ field) */
.lmg-fieldset + .lmg-field,
.lmg-field + .lmg-fieldset,
.lmg-fieldset + .lmg-fieldset,
.lmg-register-grid + .lmg-fieldset {
  margin-top: 28px;
}

.lmg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lmg-chip {
  cursor: pointer;
}

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

.lmg-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lmg-chip input:checked + span,
.lmg-chip input:focus-visible + span {
  background: linear-gradient(135deg, #0179c1, #56b5e3);
  border-color: transparent;
  color: #fff;
}

.lmg-field-other {
  margin-top: 14px;
}

.lmg-register-confirm-copy {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}

.lmg-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  color: #fff;
}

.lmg-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #0179c1;
}

.lmg-register-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0179c1, #0a8fd0 45%, #56b5e3);
  color: #fff;
  font-family: "DVN-Beaufort", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(1, 80, 130, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.lmg-register-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 32px rgba(1, 80, 130, 0.34);
}

.lmg-register-contact {
  margin-top: 28px;
  padding: 8px 8px 0;
  text-align: center;
  color: #fff;
}

.lmg-register-contact h2 {
  margin: 0 0 10px;
  font-family: "DVN-Beaufort", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
}

.lmg-register-contact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lmg-register-thanks {
  margin: 14px 0 0;
  opacity: 0.92;
}

.lmg-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* Confirm preview modal — above sticky header (must be outside #main stacking). */
.lmg-reg-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.lmg-reg-modal[hidden] {
  display: none !important;
}
.lmg-reg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 40, 70, 0.55);
  backdrop-filter: blur(4px);
}
.lmg-reg-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(calc(100dvh - 48px), 720px);
  overflow: hidden;
  padding: 22px 20px 0;
  border-radius: 20px;
  color: #15708c;
  /* Opaque — glass gradient is transparent at bottom and clips content on mobile. */
  background: rgba(236, 246, 251, 0.98) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(1, 50, 90, 0.35);
}
.lmg-reg-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(21, 112, 140, 0.1);
  color: #15708c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lmg-reg-modal__dialog > h2 {
  flex-shrink: 0;
  margin: 0 36px 8px 0;
  font-family: "DVN-Beaufort", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: #15708c;
}
.lmg-reg-modal__lead {
  flex-shrink: 0;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(2, 105, 134, 0.85);
}
.lmg-reg-preview-list {
  margin: 0;
  padding: 0 4px 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.lmg-reg-preview-list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(21, 112, 140, 0.12);
  min-width: 0;
}
.lmg-reg-preview-list > div.is-notes {
  grid-column: 1 / -1;
}
.lmg-reg-preview-list dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #026986;
}
.lmg-reg-preview-list dd {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: #15708c;
  word-break: break-word;
}
.lmg-reg-preview-list > div.is-notes dd {
  max-height: 5.8em;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  line-height: 1.45;
  -webkit-overflow-scrolling: touch;
}
.lmg-reg-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
  margin: 0 -20px 0;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(21, 112, 140, 0.14);
  background: #e8f4fa;
  position: relative;
  z-index: 2;
  border-radius: 0 0 20px 20px;
}
.lmg-reg-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: Exo, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
}
.lmg-reg-modal__btn.is-ghost {
  background: #fff;
  color: #0179c1;
  border: 1.5px solid rgba(1, 121, 193, 0.55);
  box-shadow: 0 4px 14px rgba(1, 50, 90, 0.12);
}
.lmg-reg-modal__btn.is-ghost:hover {
  background: #f3f9fc;
  border-color: #0179c1;
}
.lmg-reg-modal__btn.is-primary {
  background: linear-gradient(135deg, #0179c1, #0a8fd0 45%, #56b5e3);
  color: #fff;
  box-shadow: 0 10px 24px rgba(1, 80, 130, 0.28);
}
body.lmg-reg-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .lmg-reg-modal {
    padding: 0;
    align-content: end;
    align-items: stretch;
  }
  .lmg-reg-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 12px);
    padding: 16px 14px 0;
    border-radius: 20px 20px 0 0;
  }
  .lmg-reg-modal__dialog > h2 {
    font-size: 20px;
  }
  .lmg-reg-preview-list {
    /* Keep 2-col on mobile; .is-notes still spans full width. */
    grid-template-columns: 1fr 1fr;
    padding-right: 2px;
    gap: 8px;
  }
  .lmg-reg-preview-list > div {
    padding: 8px 10px;
  }
  .lmg-reg-preview-list dt {
    font-size: 11px;
  }
  .lmg-reg-preview-list dd {
    font-size: 14px;
  }
  .lmg-reg-modal__actions {
    margin: 0 -14px 0;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    border-radius: 0;
  }
  .lmg-reg-modal__btn {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .lmg-register-page {
    padding: 120px 0 56px;
  }
  .lmg-register-card {
    padding: 26px 20px 22px;
  }
  .lmg-register-grid {
    grid-template-columns: 1fr;
  }
  .lmg-register-meta li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
