/* ============================================================
   style.css — Form Boilerplate Stylesheet
   CSS custom properties (colors, fonts) are injected inline
   by form.php from config.php, so they stay dynamic.
   ============================================================ */


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

/* ── Page ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Card ── */
.card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 920px;
  width: 100%;
  overflow: hidden;
}

/* ── Card Header ── */
.card-header {
  background: var(--header-bg);
  padding: 36px 40px 30px;
  transition: opacity 0.35s ease;
}
.card-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  margin-top: 14px;
  border-radius: 2px;
}
.card-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #fff;
  font-weight: 400;
  line-height: 1.2;
}
.card-header p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-top: 8px;
  font-weight: 300;
}

/* ── Card Body ── */
.card-body {
  padding: 36px 40px 40px;
}

/* ── Form Fade (on success) ── */
#registration-form {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#registration-form.fading {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* ── Form Layout ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-bottom: 20px;
}

/* ── Labels ── */
label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.optional-tag {
  font-size: 0.7rem;
  font-weight: 400;
  color: #b0a89e;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 6px;
}

/* ── Inputs & Textarea ── */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

/* ── Honeypot (hidden from real users) ── */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 4px 0 24px;
}

/* ── Checkbox Group ── */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.checkbox-item:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
}
.checkbox-item input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox-item span {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
}

/* ── Submit Button ── */
.submit-btn {
  width: 100%;
  max-width: 300px;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
	display: block;
	margin: 0 auto;
}
.submit-btn:hover    { background: var(--accent-hover); }
.submit-btn:active   { transform: scale(0.99); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Error Banner ── */
.error-msg {
  display: none;
  padding: 12px 16px;
  background: #fdf0ee;
  color: var(--accent-hover);
  border: 1.5px solid #f1bfb5;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.error-msg.visible { display: block; }

/* ── Thank-You Panel ── */
#thank-you {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease 0.05s, transform 0.45s ease 0.05s;
}
#thank-you.visible {
  opacity: 1;
  transform: translateY(0);
}
.checkmark-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}
.checkmark-circle svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  transition: stroke-dashoffset 0.55s ease 0.35s;
}
#thank-you.visible .checkmark-circle svg {
  stroke-dashoffset: 0;
}
#thank-you h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}
#thank-you p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 300px;
}


/* ── Responsive ── */
@media (max-width: 480px) {
  .card-header,
  .card-body            { padding-left: 24px; padding-right: 24px; }
  .form-row,
  .checkbox-group       { grid-template-columns: 1fr; }
  #thank-you            { padding: 44px 24px; }
}
