/* Golf Plus LIFF member page - mobile first, large readable text. */
:root {
  --green: #1f6f43;
  --green-dark: #155232;
  --text: #1d1d1f;
  --muted: #5f6368;
  --error: #b3261e;
  --border: #c9cdd2;
  --bg: #f6f7f8;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", "Sarabun", sans-serif;
  line-height: 1.6;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

h1 { font-size: 1.5rem; color: var(--green-dark); margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }

[hidden] { display: none !important; }

label { display: block; font-weight: 600; margin-top: 1rem; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }

input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.75rem;
  margin-top: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
}

input:focus, button:focus, .consent-text:focus { outline: 3px solid #8ab4f8; outline-offset: 2px; }

.field-error { color: var(--error); font-size: 0.9rem; min-height: 1.2em; margin: 0.25rem 0 0; }

.consent {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.consent-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.consent-version { color: var(--muted); font-size: 0.85rem; margin: 0.5rem 0 0; }

.consent-agree { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 600; }
.consent-agree input { width: 1.6rem; height: 1.6rem; margin-top: 0.15rem; flex: none; }

button {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.9rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 0.75rem;
}
button:disabled { background: #9aa5a0; }

.message { padding: 0.9rem 1rem; border-radius: 0.75rem; margin: 0 0 1rem; }
.message:empty { display: none; }
.message.error { background: #fdecea; color: var(--error); }
.message.notice { background: #fff4e5; color: #7a4b00; }
.message.success { background: #e7f4ec; color: var(--green-dark); font-weight: 700; }

.member-card {
  margin: 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}
.member-card dt { color: var(--muted); font-size: 0.95rem; }
.member-card dd { margin: 0 0 1rem; font-size: 1.4rem; font-weight: 700; }
