/* Registration and waiting-list forms: invoice e-mail field, preview note, summary step */

.form-preview-note {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px dashed #b07a00;
  border-radius: 8px;
  background: #fff8e6;
  color: #5c4100;
  font-size: 0.92em;
}

.form-preview-note i { margin-right: 6px; }

/* Registration form: e-mail for invoices, rule and clickable hint */
.re-email-rule {
  margin-top: 6px;
  font-size: 0.85em;
  color: #555;
}

.re-hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 12px;
  border: 1px solid #3d6b10;
  border-radius: 999px;
  background: #fff;
  color: #3d6b10;
  font: inherit;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.re-hint-btn:hover,
.re-hint-btn[aria-expanded="true"] {
  background: #f1f6e8;
}

.re-hint-btn:focus-visible {
  outline: 2px solid #3d6b10;
  outline-offset: 2px;
}

.re-hint-text {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--color-1);
  border-radius: 6px;
  background: #f6f8f2;
  font-size: 0.9em;
  line-height: 1.5;
  color: #333;
}

/* Registration form: summary step before sending */
.review-panel {
  margin: 0 0 2rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid #e3e7dc;
  border-radius: 14px;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);
  scroll-margin-top: 110px;
}

.review-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.review-title:focus { outline: none; }

.review-intro {
  margin: 0 0 1.5rem;
  color: #444;
}

.review-group {
  padding: 1rem 0;
  border-top: 1px solid #eef0ea;
}

.review-group-title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #3d6b10;
}

.review-list {
  display: grid;
  grid-template-columns: minmax(150px, 32%) 1fr;
  gap: 0.4rem 1.25rem;
  margin: 0;
}

.review-list dt {
  font-weight: 500;
  color: #555;
}

.review-list dd {
  margin: 0;
  color: #222;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.review-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-checks li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.6rem;
  color: #333;
}

.review-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3d6b10;
  font-weight: 700;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef0ea;
}

.review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.review-btn-back {
  background: #fff;
  color: #3d6b10;
  border: 2px solid #3d6b10;
}

.review-btn-back:hover { background: #f1f6e8; }

.review-btn-send {
  background: #FFA500;
  color: #222;
  border: 2px solid #FFA500;
}

.review-btn-send:hover { background: #FF8C00; border-color: #FF8C00; }
.review-btn-send:disabled { opacity: 0.7; cursor: wait; }

.review-btn:focus-visible {
  outline: 3px solid #3d6b10;
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .review-panel { padding: 1.1rem; }
  .review-list { grid-template-columns: 1fr; gap: 0.1rem; }
  .review-list dd { margin-bottom: 0.6rem; }
  .review-btn { width: 100%; }
  .review-btn-send { order: -1; }
}

/* Confirmation after sending */
.success-card {
  /* Same width as the event details and the form cards above */
  margin: 0 0 3rem;
  padding: 2.5rem 2.25rem 2rem;
  background: #fff;
  border: 1px solid #e3e7dc;
  border-radius: 18px;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.07);
  text-align: center;
  scroll-margin-top: 120px;
}

.success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--color-1);
  color: #fff;
  font-size: 2.4rem;
  box-shadow: 0 0 0 10px #eef5e2;
  animation: successPop 0.5s cubic-bezier(.2, .9, .3, 1.3) both;
}

@keyframes successPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.success-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 600;
  color: #222;
}

.success-title:focus { outline: none; }

.success-lead {
  max-width: 34em;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #444;
  overflow-wrap: anywhere;
}

.success-next {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.4rem;
  background: #f6f8f2;
  border-radius: 14px;
  text-align: left;
}

.success-next-title {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  color: #3d6b10;
}

.success-steps {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.success-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  line-height: 1.5;
  color: #333;
}

.success-steps a { color: #3d6b10; font-weight: 600; }

.success-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #3d6b10;
  border: 1px solid #dfe6d3;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 2px solid #3d6b10;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.success-btn-primary { background: #3d6b10; color: #fff; }
.success-btn-primary:hover { background: #2c4f0b; border-color: #2c4f0b; color: #fff; }
.success-btn-outline { background: #fff; color: #3d6b10; }
.success-btn-outline:hover { background: #f1f6e8; color: #3d6b10; }

.success-btn:focus-visible,
.success-steps a:focus-visible { outline: 3px solid #3d6b10; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .success-check { animation: none; }
}

@media (max-width: 575.98px) {
  .success-card { padding: 1.75rem 1.1rem 1.4rem; border-radius: 14px; }
  .success-check { width: 70px; height: 70px; font-size: 2rem; }
  .success-btn { width: 100%; }
}


/* ---------- Event preview above the form (open layout, no box) ---------- */
.event-head {
  margin: 0.5rem 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e3e7dc;
}

/* The site's usual green heading label, only the spacing is adjusted */
h1.event-head-kicker { margin: 0 0 0.9rem; }

.event-head-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  color: #222;
  text-wrap: balance;
}

.event-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.05rem;
  color: #444;
}

.event-head-meta li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.event-head-meta i {
  font-size: 0.9em;
  color: #6EA01D;
}

/* ---------- Form sections as cards ---------- */
.form-card {
  margin: 0 0 1.5rem;
  padding: 1.75rem 1.75rem 1rem;
  background: #fff;
  border: 1px solid #e6e9e1;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 6px 18px rgba(0, 0, 0, 0.04);
}

.form-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f2ec;
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
}

/* Plain green icon, no background */
.form-card-icon {
  flex: 0 0 auto;
  width: 1.25em;
  font-size: 0.95em;
  color: var(--color-1);
  text-align: center;
}

.form-card > .row:first-of-type { margin-top: 0 !important; }
.form-card > .row:last-child { margin-bottom: 1rem !important; }

/* ---------- Submit ---------- */
.form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 1.5rem 0 2rem;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0.8rem 1.9rem;
  border: 0;
  border-radius: 999px;
  background: #FFA500;
  color: #222;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(255, 165, 0, 0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.form-submit-btn i { transition: transform 0.2s ease; }

.form-submit-btn:hover {
  background: #FF8C00;
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.35);
}

.form-submit-btn:hover i { transform: translateX(3px); }

.form-submit-btn:focus-visible {
  outline: 3px solid #3d6b10;
  outline-offset: 3px;
}

.form-submit-btn:disabled { opacity: 0.7; cursor: wait; }

.form-submit-note {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

@media (prefers-reduced-motion: reduce) {
  .form-submit-btn, .form-submit-btn i { transition: none; }
  .form-submit-btn:hover i { transform: none; }
}

@media (max-width: 575.98px) {
  .form-card { padding: 1.15rem 1rem 0.5rem; border-radius: 12px; }
  .form-card-title { font-size: 1.1rem; margin-bottom: 1.1rem; }
  .event-head-meta { flex-direction: column; font-size: 1rem; }
  .form-submit-btn { width: 100%; padding: 0.8rem 1.1rem; font-size: 1rem; }
}

/* ---------- Friendly spam check (js/human-check.js) ---------- */
.hc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  max-width: 560px;
  margin: 0.5rem 0 1.25rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid #e6e9e1;
  border-radius: 14px;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.hc-badge {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.hc-svg { display: block; width: 48px; height: 48px; overflow: visible; }

.hc-track,
.hc-ring {
  fill: none;
  stroke-width: 3;
  transform-origin: 24px 24px;
  transform: rotate(-90deg);
}

.hc-track { stroke: #eef1ea; }

/* Circumference 2 × π × 21 ≈ 132 */
.hc-ring {
  stroke: #6EA01D;
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
  transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}

.hc-tick {
  fill: none;
  stroke: #3d6b10;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}

.hc-shield {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 1.1rem;
  color: #9aa58f;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.hc-text { flex: 1 1 220px; min-width: 0; }

.hc-title {
  margin: 0;
  font-weight: 600;
  color: #222;
}

.hc-status {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: #555;
}

/* Checking: an arc runs around the pulsing shield */
.hc[data-state="running"] .hc-ring {
  stroke-dashoffset: 92;
  animation: hc-spin 0.9s linear infinite;
}

.hc[data-state="running"] .hc-shield {
  color: #6EA01D;
  animation: hc-pulse 1.2s ease-in-out infinite;
}

/* Done: the ring closes, the shield gives way to a drawn check mark, the box turns light green */
.hc[data-state="done"] {
  background: #f4f9ec;
  border-color: #cfe3b0;
}

.hc[data-state="done"] .hc-ring { stroke-dashoffset: 0; }

.hc[data-state="done"] .hc-shield {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}

.hc[data-state="done"] .hc-tick {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.45s ease 0.45s;
}

.hc[data-state="done"] .hc-badge { animation: hc-pop 0.45s ease 0.85s; }
.hc[data-state="done"] .hc-title { color: #3d6b10; }

.hc[data-state="error"] { background: #fdf3f2; border-color: #f0c9c4; }
.hc[data-state="error"] .hc-ring { stroke: #b3261e; stroke-dashoffset: 0; }
.hc[data-state="error"] .hc-shield { color: #b3261e; }

.hc-retry {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid #3d6b10;
  border-radius: 999px;
  background: #fff;
  color: #3d6b10;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.hc-retry:hover { background: #f1f6e8; }
.hc-retry:focus-visible { outline: 3px solid #3d6b10; outline-offset: 2px; }
.hc-retry[hidden] { display: none; }

@keyframes hc-spin {
  from { transform: rotate(-90deg); }
  to   { transform: rotate(270deg); }
}

@keyframes hc-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(0.85); }
}

@keyframes hc-pop {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .hc, .hc-ring, .hc-shield { transition: none; }
  .hc[data-state="running"] .hc-ring,
  .hc[data-state="running"] .hc-shield,
  .hc[data-state="done"] .hc-badge { animation: none; }
  .hc[data-state="done"] .hc-tick { transition: none; }
}

/* ---------- Floating labels ---------- */
.form-card .form-floating > .form-control,
.form-card .form-floating > .form-select {
  border-color: #d9ded2;
  border-radius: 10px;
  background-color: #fff;
}

.form-card .form-floating > .form-control:focus,
.form-card .form-floating > .form-select:focus {
  border-color: #6EA01D;
  box-shadow: 0 0 0 0.2rem rgba(110, 160, 29, 0.2);
}

.form-card .form-floating > label {
  color: #5f6659;
}

/* The floated label sits on the field: give it the field's background */
.form-card .form-floating > .form-control:focus ~ label,
.form-card .form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-card .form-floating > .form-select ~ label {
  color: #4d5a40;
}

.form-card .form-floating > .form-control:focus ~ label::after,
.form-card .form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-card .form-floating > .form-select ~ label::after {
  background-color: transparent;
}

/* Long option texts must not run under the arrow */
.form-card .form-floating > .form-select { padding-right: 2.5rem; text-overflow: ellipsis; }

.form-card .form-floating > .form-floating-textarea { height: 120px; }

.form-hint {
  margin: 0.4rem 0 0 0.25rem;
  font-size: 0.85rem;
  color: #555;
}

/* Validation colours stay readable inside the cards */
.was-validated .form-floating > .form-control:valid,
.was-validated .form-floating > .form-select:valid { border-color: #6EA01D; }

.was-validated .form-card .form-floating > .form-control:invalid,
.was-validated .form-card .form-floating > .form-select:invalid { border-color: #b3261e; }

.was-validated .form-card .form-floating > .form-control:invalid:focus,
.was-validated .form-card .form-floating > .form-select:invalid:focus {
  border-color: #b3261e;
  box-shadow: 0 0 0 0.2rem rgba(179, 38, 30, 0.18);
}

.form-card .form-floating .invalid-feedback { margin-left: 0.25rem; }

/* Success card: centred contact block */
.success-help { text-align: center; }

.success-help-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: #222;
}

.success-help-title i { margin-right: 0.3rem; color: #3d6b10; }

.success-help-text {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

.success-help a { color: #3d6b10; font-weight: 600; }
.success-help a:focus-visible { outline: 3px solid #3d6b10; outline-offset: 3px; }
