:root {
  --lf-primary: #6264a7;
  --lf-primary-dark: #4f5092;
  --lf-purple-light: #ede9f5;
  --lf-bg: #f3f2f1;
  --lf-surface: #ffffff;
  --lf-border: #e1dfdd;
  --lf-text: #242424;
  --lf-text-secondary: #605e5c;
  --lf-muted: #a19f9d;
  --lf-radius: 8px;
  --lf-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --lf-font: inherit;
}

/* Fullscreen mode only */
.localform-fullscreen {
  background: var(--lf-bg);
}

.localform-fullscreen #page,
.localform-fullscreen .site-content,
.localform-fullscreen .entry-content,
.localform-fullscreen .hentry,
.localform-fullscreen .post-thumbnail,
.localform-fullscreen .entry-header,
.localform-fullscreen .entry-footer,
.localform-fullscreen .post-navigation,
.localform-fullscreen .comments-area,
.localform-fullscreen .site-header,
.localform-fullscreen .site-footer {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.localform-fullscreen .entry-header,
.localform-fullscreen .post-navigation,
.localform-fullscreen .comments-area,
.localform-fullscreen .entry-footer,
.localform-fullscreen .site-header,
.localform-fullscreen .site-footer {
  display: none !important;
}

.localform-fullscreen .localform-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 16px 80px;
  box-sizing: border-box;
}

/* Theme mode */
.localform-page:not(.localform-fullscreen) .localform-wrapper {
  padding: 24px 0;
}

.localform-wrapper {
  width: 100%;
  background-color: var(--lf-bg);
  font-family: var(--lf-font, inherit);
  /* Breathing room for embeds (block, shortcode, Elementor), which sit
     directly against the surrounding content. The form page's own rules above
     are more specific, so they keep their own spacing. */
  padding: 48px 16px;
  box-sizing: border-box;
}

.localform-logo {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}

.localform-logo img {
  max-height: 60px;
  width: auto;
  border: none;
  box-shadow: none;
  outline: none;
}

.localform-form {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 16px;
  background: var(--lf-surface);
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow);
  position: relative;
  overflow: hidden;
  color: var(--lf-text);
}

/* Title header inside the form card, below the accent bar. */
.localform-form-header {
  padding: 34px 32px 22px;
  border-bottom: 1px solid var(--lf-border);
}

.localform-form-title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--lf-text);
}

.localform-form-description {
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--lf-text);
  opacity: 0.75;
  white-space: pre-line;
}

/* Event facts: a quiet band inside the form card, above the first question -
   not a card of its own competing with the form for attention. */
.localform-event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 1.5rem;
  padding: 10px 14px;
  border: 1px solid var(--lf-border);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.02);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--lf-text-secondary);
}

.localform-event-meta strong {
  font-weight: 600;
  color: var(--lf-text);
}

.localform-event-meta-item + .localform-event-meta-item::before {
  content: "|";
  margin-right: 12px;
  color: var(--lf-border);
}

/* Several amounts inside the price fact read as one list. */
.localform-event-meta-price + .localform-event-meta-price::before {
  content: "\00b7";
  margin: 0 6px;
  color: var(--lf-muted);
}

.localform-event-meta-price strong {
  font-variant-numeric: tabular-nums;
}

/* "+2 dates": a count, not a heading - the form's own question lists them. */
.localform-event-meta-more {
  color: var(--lf-muted);
}

.localform-form {
  padding: 0;
}

.localform-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--lf-primary);
}

.localform-form-inner {
  padding: 28px 32px 32px;
}

.localform-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.localform-field {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--lf-border);
}

.localform-field:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.localform-field > label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--lf-text);
  line-height: 1.4;
}

.localform-field > label .required {
  color: #d13438;
  margin-left: 0.25rem;
}

.localform-text-block-heading {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--lf-text);
  line-height: 1.4;
}

.localform-text-block-content {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lf-text-secondary);
}

.localform-text-block-content p {
  margin: 0 0 1em;
}

.localform-text-block-content p:last-child {
  margin-bottom: 0;
}

.localform-section {
  padding: 1.5rem 0 0.25rem;
  border-top: 2px solid var(--lf-primary);
  margin-top: 0.5rem;
}

.localform-fields > .localform-section:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.localform-section-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lf-text);
  line-height: 1.3;
}

.localform-section-description {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--lf-text-secondary);
}

.localform-section-description p {
  margin: 0 0 0.75em;
}

.localform-section-description p:last-child {
  margin-bottom: 0;
}

.localform-image-block-grid {
  display: grid;
  gap: 0.75rem;
}

.localform-image-block--single .localform-image-block-grid {
  grid-template-columns: 1fr;
}

.localform-image-block--gallery .localform-image-block-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.localform-image-block-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.localform-image-block--gallery .localform-image-block-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Default (fullscreen) input styling */
.localform-wrapper:not(.localform-use-theme) .localform-input,
.localform-wrapper:not(.localform-use-theme) input[type="text"],
.localform-wrapper:not(.localform-use-theme) input[type="email"],
.localform-wrapper:not(.localform-use-theme) input[type="tel"],
.localform-wrapper:not(.localform-use-theme) input[type="number"],
.localform-wrapper:not(.localform-use-theme) textarea,
.localform-wrapper:not(.localform-use-theme) select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid var(--lf-border);
  border-radius: 4px;
  background: #fff;
  color: var(--lf-text);
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.localform-wrapper:not(.localform-use-theme) .localform-input:focus,
.localform-wrapper:not(.localform-use-theme) input:focus,
.localform-wrapper:not(.localform-use-theme) textarea:focus,
.localform-wrapper:not(.localform-use-theme) select:focus {
  outline: none;
  border-color: var(--lf-primary);
  box-shadow: 0 0 0 3px rgba(98, 100, 167, 0.2);
}

/* Theme mode: inherit theme inputs, only add subtle borders/spacing */
.localform-use-theme .localform-input,
.localform-use-theme input[type="text"],
.localform-use-theme input[type="email"],
.localform-use-theme input[type="tel"],
.localform-use-theme input[type="number"],
.localform-use-theme textarea,
.localform-use-theme select {
  width: 100%;
  box-sizing: border-box;
}

.localform-input[aria-invalid="true"] {
  border-color: #d13438;
}

.localform-field-error {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: #d13438;
  min-height: 1.25rem;
}

.localform-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 0.625rem;
  cursor: pointer;
  color: var(--lf-text);
}

.localform-checkbox-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--lf-primary);
  cursor: pointer;
}

.localform-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.localform-rating-option {
  margin-bottom: 0;
  width: auto;
}

.localform-rating--stars .localform-rating-value {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--lf-primary);
}

.localform-date-range {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.localform-date-range .localform-input {
  width: auto;
  flex: 1 1 0;
}

.localform-date-range-sep {
  color: var(--lf-text);
  opacity: 0.6;
  flex: 0 0 auto;
}

.localform-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lf-border);
}

/* Multi-step: progress bar */
.localform-progress {
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.localform-progress-bar {
  height: 100%;
  background: var(--lf-primary);
  border-radius: 2px;
  width: 0%;
  transition: width 0.35s ease;
}

/* Multi-step: step counter */
.localform-step-counter {
  font-size: 0.8125rem;
  color: var(--lf-text-secondary);
  margin: 0 0 1.25rem;
}

/* Multi-step: step header (section title used as page title) */
.localform-step-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--lf-border);
}

/* Multi-step: step nav */
.localform-step-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lf-border);
}

.localform-wrapper:not(.localform-use-theme) .localform-btn-next {
  min-width: 120px;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--lf-primary);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.localform-wrapper:not(.localform-use-theme) .localform-btn-next:hover {
  background: var(--lf-primary-dark);
}

.localform-wrapper:not(.localform-use-theme) .localform-btn-next:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(98, 100, 167, 0.4);
}

.localform-wrapper:not(.localform-use-theme) .localform-btn-back {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  color: var(--lf-text-secondary);
  background: transparent;
  border: 1px solid var(--lf-border);
  border-radius: 4px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
  margin-right: auto;
}

.localform-wrapper:not(.localform-use-theme) .localform-btn-back:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--lf-text-secondary);
}

/* Default (fullscreen) button styling */
.localform-wrapper:not(.localform-use-theme) .localform-submit {
  width: auto;
  min-width: 140px;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--lf-primary);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

.localform-wrapper:not(.localform-use-theme) .localform-submit:hover {
  background: var(--lf-primary-dark);
}

.localform-wrapper:not(.localform-use-theme) .localform-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(98, 100, 167, 0.4);
}

.localform-wrapper:not(.localform-use-theme) .localform-submit:disabled {
  background: #a7aaad;
  cursor: not-allowed;
}

/* Theme mode: submit button uses theme styling, but keep a class hook */
.localform-use-theme .localform-submit {
  cursor: pointer;
}

.localform-messages {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  font-weight: 500;
  display: none;
}

.localform-messages.localform-success,
.localform-messages.localform-error {
  display: block;
}

.localform-messages.localform-success {
  background: #f0f9f1;
  color: #0f5132;
  border: 1px solid #9fd89f;
}

.localform-messages.localform-error {
  background: #fdf3f3;
  color: #8a2424;
  border: 1px solid #ffb3b3;
}

.localform-messages.localform-processing {
  display: block;
  background: #f3f2f1;
  color: var(--lf-text-secondary);
  border: 1px solid var(--lf-border);
}

.localform-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

@media (max-width: 720px) {
  .localform-fullscreen .localform-wrapper {
    padding: 24px 12px 60px;
  }

  .localform-form-inner {
    padding: 20px 20px 24px;
  }
}

.localform-checkbox-label input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--lf-primary);
  cursor: pointer;
}

/* Shown instead of the form when registration is closed, full, or not yet open. */
.localform-closed-notice {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 16px;
  padding: 2rem;
  background: var(--lf-surface);
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow);
  color: var(--lf-text);
  text-align: center;
}

.localform-closed-notice .localform-form-title {
  margin: 0 0 0.75rem;
}

.localform-footer {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 0 4px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--lf-text);
  opacity: 0.55;
}

.localform-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.localform-footer a:hover {
  opacity: 1;
}

/* ── Font size modifiers ─────────────────────────────────────────────────── */

/* Small */
.localform-font-sm .localform-form-title {
  font-size: 1.375rem;
}
.localform-font-sm .localform-form-description {
  font-size: 0.8125rem;
}
.localform-font-sm .localform-field > label {
  font-size: 0.9375rem;
}
.localform-font-sm .localform-text-block-heading {
  font-size: 1rem;
}
.localform-font-sm .localform-text-block-content {
  font-size: 0.875rem;
}
.localform-font-sm .localform-event-meta {
  font-size: 0.8125rem;
}
.localform-font-sm:not(.localform-use-theme) input,
.localform-font-sm:not(.localform-use-theme) textarea,
.localform-font-sm:not(.localform-use-theme) select {
  font-size: 0.875rem;
}

/* Large */
.localform-font-lg .localform-form-title {
  font-size: 2.25rem;
}
.localform-font-lg .localform-form-description {
  font-size: 1.0625rem;
}
.localform-font-lg .localform-field > label {
  font-size: 1.25rem;
}
.localform-font-lg .localform-text-block-heading {
  font-size: 1.5rem;
}
.localform-font-lg .localform-text-block-content {
  font-size: 1.125rem;
}
.localform-font-lg .localform-event-meta {
  font-size: 0.9375rem;
}
.localform-font-lg:not(.localform-use-theme) input,
.localform-font-lg:not(.localform-use-theme) textarea,
.localform-font-lg:not(.localform-use-theme) select {
  font-size: 1.125rem;
}
