/* ── Honeypot field – visually hidden, not functional for humans ─────────────── */
.hp-field {
  display: none !important;
}

/* ── Smooth scroll ───────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #eaecf4;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.65;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
header {
  background: linear-gradient(135deg, #0d0d1f 0%, #1a1a2e 55%, #16213e 100%);
  color: #fff;
  padding: 52px 24px 48px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, .45);
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.chess-icon {
  font-size: 80px;
  color: #c9b037;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 10px rgba(201, 176, 55, .45));
}

h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.25;
}

h1 a {
  color: #fff !important;
  text-decoration: none;
}

.subtitle {
  color: #c9b037;
  font-size: 12px;
  margin-top: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: .9;
}

/* ── Main ────────────────────────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 52px auto;
  padding: 0 24px;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 18px;
  padding: 48px 52px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05), 0 10px 36px rgba(0, 0, 0, .09);
}

/* ── Tournament info section heading ─────────────────────────────────────── */
.section-heading {
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ebebeb;
}

/* ── Tournament info box ─────────────────────────────────────────────────── */
.tournament-info {
  background: #f4f6ff;
  border: 1px solid #dde3f5;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.tournament-info h2 {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 14px;
}

.info-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #f2f2f2;
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-item:first-child {
  padding-top: 0;
}

.info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  font-weight: 700;
  min-width: 110px;
  flex-shrink: 0;
}

.info-value {
  font-size: 16px;
  color: #1a1a2e;
  font-weight: 500;
  line-height: 1.5;
}

.info-value a {
  color: #1a1a2e;
  text-decoration: none;
  border-bottom: 1px solid #c9b037;
}

.info-value a:hover { color: #c9b037; }

/* ── CTA button (scroll to form) ─────────────────────────────────────────── */
.cta-wrapper {
  text-align: center;
  margin: 40px 0;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 44px;
  background: linear-gradient(135deg, #c9b037 0%, #e0c94a 100%);
  color: #1a1a2e;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 50px;
  letter-spacing: .3px;
  box-shadow: 0 4px 20px rgba(201, 176, 55, .4);
  transition: transform .2s, box-shadow .2s;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201, 176, 55, .55);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta-arrow {
  font-size: 20px;
  line-height: 1;
}

/* ── Section divider ─────────────────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 48px;
  font-size: 22px;
  color: #c9b037;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9b037 50%, transparent);
}

/* ── Form heading ────────────────────────────────────────────────────────── */
.form-heading {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.form-subheading {
  font-size: 15px;
  color: #999;
  margin-bottom: 36px;
}

/* ── Form elements ───────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.required { color: #e53e3e; }

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-size: 16px;
  color: #222;
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: #c9b037;
  box-shadow: 0 0 0 4px rgba(201, 176, 55, .15);
  background: #fff;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
  color: #bbb;
}

.required-note {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Submit button ───────────────────────────────────────────────────────── */
.btn-submit {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: .4px;
  transition: background .2s, transform .15s, box-shadow .15s, color .2s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #c9b037 0%, #a8932e 100%);
  color: #1a1a2e;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Error box ───────────────────────────────────────────────────────────── */
.error-box {
  background: #fff5f5;
  border: 2px solid #fc8181;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
  color: #c53030;
  font-size: 15px;
}

.error-box ul {
  list-style: none;
  padding: 0;
}

.error-box ul li + li { margin-top: 6px; }

.error-box ul li::before {
  content: '⚠ ';
}

/* ── Success / result box ────────────────────────────────────────────────── */
.success-box {
  background: #fff;
  border-radius: 18px;
  padding: 64px 52px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05), 0 10px 36px rgba(0, 0, 0, .09);
}

.success-icon {
  font-size: 72px;
  color: #c9b037;
  line-height: 1;
  margin-bottom: 20px;
  filter: drop-shadow(0 3px 10px rgba(201, 176, 55, .35));
}

.success-box h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 14px;
}

.success-box p {
  color: #666;
  font-size: 16px;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}

.success-box p a {
  color: #c9b037;
}

.btn-back {
  display: inline-block;
  margin-top: 32px;
  padding: 13px 32px;
  background: #1a1a2e;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s, transform .15s;
}

.btn-back:hover {
  background: #c9b037;
  color: #1a1a2e;
  transform: translateY(-2px);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: #0d0d1f;
  color: #666;
  text-align: center;
  padding: 22px 20px;
  font-size: 13px;
  margin-top: auto;
}

footer a {
  color: #c9b037;
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  header { padding: 36px 20px 32px; }

  .chess-icon { font-size: 52px; }

  h1 { font-size: 22px; }

  .card,
  .success-box { padding: 32px 24px; }

  .info-item { flex-direction: column; gap: 4px; }

  .info-label { min-width: unset; }

  .btn-cta { font-size: 15px; padding: 15px 32px; }

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