@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0");

:root {
  --deep: #07160f;
  --deep-soft: #12261c;
  --fairway: #268a20;
  --fairway-deep: #1e6f1a;
  --fairway-soft: rgba(38, 138, 32, 0.12);
  --fairway-mist: rgba(38, 138, 32, 0.06);
  --cream: #f7f4ec;
  --cream-muted: #efebe0;
  --cream-warm: #fbf8f1;
  --white: #ffffff;
  --ink: #0e1a13;
  --ink-muted: rgba(14, 26, 19, 0.58);
  --ink-faint: rgba(14, 26, 19, 0.34);
  --ink-light: #f4f7f2;
  --border: rgba(7, 22, 15, 0.07);
  --border-strong: rgba(7, 22, 15, 0.12);
  --danger: #a33b3b;
  --radius: 4px;
  --font: "Open Sans", system-ui, sans-serif;
  --shadow-card: 0 6px 18px rgba(7, 22, 15, 0.06);
  --shadow-lifted: 0 14px 36px rgba(7, 22, 15, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.page-apply {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
}

body.page-apply {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Keep club header readable on cream intake pages */
body.page-apply .site-header::before {
  height: 7.5rem;
  background: linear-gradient(
    180deg,
    rgba(7, 16, 12, 0.92) 0%,
    rgba(7, 16, 12, 0.62) 48%,
    rgba(7, 16, 12, 0.2) 78%,
    rgba(7, 16, 12, 0) 100%
  );
}

body.page-apply .nav-toggle {
  color: var(--color-ink, #f4f7f2);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 24px;
  line-height: 1;
  color: var(--fairway);
  user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230E1A13' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding: 10px 40px 10px 12px;
  min-height: 44px;
  line-height: 1.25;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink);
  width: 100%;
}

select::-ms-expand {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.15px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  background: transparent;
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:hover:not(:disabled) {
  opacity: 0.92;
}

.btn-primary {
  background: var(--fairway);
  color: #ffffff;
}

.btn-primary .material-symbols-outlined {
  color: #ffffff;
}

.btn-secondary {
  background: var(--white);
  color: var(--deep);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--deep);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-sm {
  min-height: 36px;
  padding: 0 8px;
  font-size: 12px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field label .req {
  color: var(--danger);
}

.field input,
.field textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}

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

.page-title {
  font-size: 23px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.45px;
  margin: 0;
}

.muted {
  color: var(--ink-muted);
}

.apply-page {
  flex: 1 0 auto;
  background: var(--cream);
  padding: 8.75rem 16px 16px;
}

@media (min-width: 640px) {
  .apply-page {
    padding: 9.5rem 24px 24px;
  }
}

@media (max-width: 640px) {
  .apply-page {
    padding-top: 7.5rem;
  }
}

.apply-shell {
  max-width: 64rem;
  margin: 0 auto;
}

.apply-shell--simple {
  max-width: 40rem;
}

.apply-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.apply-back:hover {
  color: var(--fairway);
}

.apply-header {
  margin-bottom: 20px;
}

.apply-header .page-title {
  margin-top: 12px;
}

.apply-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 21px;
}

.apply-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .apply-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

.step-nav {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 1024px) {
  .step-nav {
    position: sticky;
    top: 7.5rem;
  }
}

.step-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.step-nav-item {
  position: relative;
  display: flex;
  gap: 12px;
}

.step-nav-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: var(--cream-muted);
  color: var(--ink-muted);
  cursor: default;
  padding: 0;
}

.step-dot.is-active,
.step-dot.is-done {
  background: var(--fairway);
  border-color: var(--fairway);
  color: #fff;
}

.step-dot.is-done {
  cursor: pointer;
}

.step-connector {
  width: 1px;
  flex: 1;
  min-height: 16px;
  margin: 4px 0;
  background: var(--border-strong);
}

.step-connector.is-done {
  background: var(--fairway);
}

.step-label {
  text-align: left;
  padding: 2px 0 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  background: transparent;
  border: 0;
  color: var(--ink-muted);
  cursor: default;
}

.step-label.is-active {
  color: var(--fairway-deep);
}

.step-label.is-done {
  color: var(--ink);
  cursor: pointer;
}

.step-label.is-done:hover {
  color: var(--fairway);
}

.apply-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.step-panel {
  padding: 20px;
}

@media (min-width: 640px) {
  .step-panel {
    padding: 24px;
  }
}

.step-panel h2 {
  margin: 0 0 1.25rem;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.step-panel-hint {
  margin: 4px 0 16px;
  font-size: 13px;
  line-height: 21px;
}

.step-panel-body {
  display: grid;
  gap: 16px;
}

.grid-2 {
  display: grid;
  gap: 16px;
}

.grid-3 {
  display: grid;
  gap: 16px;
}

.grid-salutation {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .grid-salutation {
    grid-template-columns: 100px 1fr 1fr;
  }
}

.interest-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.interest-hint {
  margin: 0 0 12px;
  font-size: 13px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.chip.is-selected {
  background: var(--fairway);
  border-color: var(--fairway);
  color: #fff;
}

.chip:hover:not(.is-selected) {
  background: var(--fairway-mist);
}

.suffix-row {
  display: flex;
  width: 100%;
  gap: 1%;
}

.suffix-row .suffix-main {
  width: 100%;
}

.suffix-row.has-other .suffix-main,
.suffix-row.has-other .suffix-other {
  width: 49%;
}

.suffix-other {
  display: none;
}

.suffix-row.has-other .suffix-other {
  display: block;
}

.address-box {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  display: grid;
  gap: 16px;
}

.address-box-title {
  font-size: 13px;
  font-weight: 600;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.empty-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--cream-warm);
  padding: 32px 20px;
  text-align: center;
}

@media (min-width: 640px) {
  .empty-card {
    padding: 40px 20px;
  }
}

.orbit {
  position: relative;
  margin: 0 auto 20px;
  height: 148px;
  width: 148px;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
}

.orbit-ring--2 {
  inset: 18px;
  border-color: var(--border);
}

.orbit-ring--3 {
  inset: 36px;
  border-color: rgba(7, 22, 15, 0.05);
}

.orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  height: 56px;
  width: 56px;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--ink-light);
  box-shadow: var(--shadow-card);
}

.orbit-center .material-symbols-outlined {
  color: var(--ink-light);
  font-size: 26px;
}

.orbit-center.is-success {
  background: var(--fairway);
}

.orbit-center.is-success .material-symbols-outlined {
  color: #fff;
  font-size: 28px;
}

.orbit-node {
  position: absolute;
  z-index: 0;
  display: flex;
  height: 28px;
  width: 28px;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-faint);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.orbit-node .material-symbols-outlined {
  font-size: 14px;
  color: var(--ink-faint);
}

.orbit-node.is-success .material-symbols-outlined {
  color: var(--fairway);
}

.orbit.is-success .orbit-ring {
  border-color: rgba(38, 138, 32, 0.28);
}

.orbit.is-success .orbit-ring--2 {
  border-color: rgba(38, 138, 32, 0.18);
}

.orbit.is-success .orbit-ring--3 {
  border-color: rgba(38, 138, 32, 0.1);
}

.empty-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.empty-card p {
  margin: 8px auto 0;
  max-width: 24rem;
  font-size: 13px;
  line-height: 21px;
}

.empty-card .btn {
  margin-top: 20px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  min-width: 480px;
}

table.data-table thead tr {
  background: var(--cream-muted);
}

table.data-table th {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-muted);
}

table.data-table th.text-right,
table.data-table td.text-right {
  text-align: right;
}

table.data-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  color: var(--ink);
}

table.data-table td.strong {
  font-weight: 600;
}

.review-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.review-section-head:first-child {
  margin-top: 0;
}

.review-section-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.review-row {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.review-row:last-child {
  border-bottom: 0;
}

@media (min-width: 640px) {
  .review-row {
    grid-template-columns: 140px 1fr;
    gap: 12px;
  }
}

.review-row .label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-muted);
}

.review-row .value {
  font-size: 14px;
  color: var(--ink);
}

.form-error {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
}

.form-error--sm {
  font-size: 13px;
}

.apply-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 16px;
  margin-left: -16px;
  margin-right: -16px;
  padding: 12px 16px;
  background: rgba(247, 244, 236, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.apply-shell--simple .apply-actions {
  position: static;
  margin-top: 20px;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border-top: 0;
}

@media (min-width: 640px) {
  .apply-actions {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    border-top: 0;
    background: transparent;
    backdrop-filter: none;
  }
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 22, 15, 0.45);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow-lifted);
}

@media (min-width: 640px) {
  .modal-card {
    padding: 24px;
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head .page-title {
  font-size: 18px;
}

.modal-form {
  display: grid;
  gap: 16px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.confirm-body {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.hidden {
  display: none !important;
}

.success-wrap {
  flex: 1 0 auto;
  background: var(--cream);
  padding: 8.75rem 16px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

@media (min-width: 640px) {
  .success-wrap {
    padding: 9.5rem 24px 24px;
  }
}

@media (max-width: 640px) {
  .success-wrap {
    padding-top: 7.5rem;
  }
}

body.page-apply .site-footer {
  margin-top: auto;
}

.success-card {
  width: 100%;
  max-width: 36rem;
  padding: 32px;
  text-align: left;
}

.success-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fairway);
}

.success-card .page-title {
  margin: 8px 0;
}

.success-card p {
  margin: 0;
}

.success-card p + p {
  margin-top: 12px;
  font-size: 13px;
}

.success-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.is-hidden {
  display: none !important;
}
