/* ===========================================================
   King Bentley Group Chat — shared stylesheet
   Royal navy + gold identity, used by all three pages
   =========================================================== */

:root {
  --navy-deep: #0b1220;
  --navy-card: #131e33;
  --navy-card-raised: #172742;
  --gold: #cda45e;
  --gold-bright: #e8c987;
  --ink-heading: #f6f3ec;
  --ink-body: #a9b3c7;
  --ink-body-dim: #7c8aa3;
  --hairline: rgba(205, 164, 94, 0.22);
  --focus-ring: #e8c987;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(205, 164, 94, 0.10), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0a0f1c 100%);
  color: var(--ink-body);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: "Cinzel", "Georgia", serif;
  color: var(--ink-heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

a {
  color: var(--gold-bright);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / hero ---------- */

.hero {
  padding: 72px 24px 48px;
  text-align: center;
}

.crown {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  letter-spacing: 0.02em;
}

.hero .subtitle {
  margin-top: 14px;
  color: var(--ink-body);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.divider {
  width: 100%;
  max-width: 220px;
  height: 1px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  position: relative;
}

.divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- Sections ---------- */

main {
  padding-bottom: 96px;
}

section {
  padding: 40px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
}

.section-lede {
  text-align: center;
  max-width: 56ch;
  margin: 14px auto 40px;
  color: var(--ink-body);
}

/* ---------- Rule cards ---------- */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.rule-card {
  background: var(--navy-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}

.rule-card.is-wide {
  grid-column: 1 / -1;
}

.rule-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--gold-bright);
}

.rule-card p {
  margin: 0;
  color: var(--ink-body);
}

.rule-card p + p {
  margin-top: 10px;
}

/* ---------- Agreement statement callout ---------- */

.statement {
  border: 1px solid var(--hairline);
  background: var(--navy-card-raised);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  text-align: center;
  font-family: "Cinzel", "Georgia", serif;
  color: var(--ink-heading);
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0 0 36px;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--navy-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}

.field {
  margin-bottom: 22px;
}

.field:last-of-type {
  margin-bottom: 0;
}

label {
  display: block;
  color: var(--ink-heading);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.hint {
  display: block;
  color: var(--ink-body-dim);
  font-size: 0.85rem;
  margin-top: 6px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: var(--navy-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--ink-heading);
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: var(--ink-body-dim);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 26px 0 28px;
}

.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.checkbox-field label {
  margin-bottom: 0;
  color: var(--ink-body);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button.btn {
  display: inline-block;
  width: 100%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1206;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 24px;
  font-family: "Cinzel", "Georgia", serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: filter 0.15s ease;
}

button.btn:hover {
  filter: brightness(1.08);
}

button.btn:active {
  filter: brightness(0.96);
}

.notice {
  max-width: 56ch;
  margin: 20px auto 0;
  text-align: center;
  color: var(--ink-body-dim);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--ink-body-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--hairline);
}

/* ---------- Confirmation pages ---------- */

.confirm-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.confirm-card {
  max-width: 520px;
  width: 100%;
  background: var(--navy-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

.confirm-card .crown {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
}

.confirm-card h1 {
  font-size: clamp(1.6rem, 5vw, 2rem);
  margin-bottom: 16px;
}

.confirm-card p {
  color: var(--ink-body);
  margin: 0 0 30px;
}

.btn-link {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1206;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  font-family: "Cinzel", "Georgia", serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.btn-link:hover {
  filter: brightness(1.08);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 20px 36px;
  }

  .form-card {
    padding: 24px 20px;
  }

  .statement {
    padding: 24px 20px;
    font-size: 1.05rem;
  }

  body {
    font-size: 16px;
  }
}
