/*
 * Public surf-spot contribution flow.
 * Keep every rule scoped to the contribution page so the legacy IASE theme
 * cannot leak into this form, and this form cannot affect other pages.
 */

.iase-spot-contribution-page,
#spot-contribution-app {
  --spot-ink: #143b39;
  --spot-ink-strong: #082f2c;
  --spot-muted: #526965;
  --spot-green: #08766b;
  --spot-green-dark: #075e56;
  --spot-green-soft: #e3f4ef;
  --spot-ocean: #096f8c;
  --spot-ocean-soft: #e5f5f8;
  --spot-sand: #f7f4eb;
  --spot-surface: #ffffff;
  --spot-page: #eef7f4;
  --spot-border: #bed5cf;
  --spot-border-strong: #779c93;
  --spot-focus: #f2b84b;
  --spot-danger: #a12828;
  --spot-danger-soft: #fff0f0;
  --spot-success: #17663d;
  --spot-success-soft: #e8f6ed;
  --spot-shadow: 0 16px 42px rgba(8, 47, 44, 0.11);
  margin: 0;
  overflow-x: hidden;
  color: var(--spot-ink);
  background: var(--spot-page);
}

.iase-spot-contribution-page .main-content-area {
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(9, 111, 140, 0.1), transparent 36rem),
    linear-gradient(180deg, #f7fbfa 0%, var(--spot-page) 100%);
}

.spot-contribution-hero > .container,
.spot-contribution-section > .container,
.spot-success-section > .container {
  width: min(100%, 860px);
  max-width: 860px;
  min-width: 0;
  margin-inline: auto;
  padding-inline: clamp(10px, 4vw, 24px);
}

.spot-contribution-section,
.spot-success-section {
  min-width: 0;
  padding-block: clamp(18px, 4vw, 36px) 52px;
}

#spot-contribution-app,
#spot-contribution-app *,
#spot-contribution-app *::before,
#spot-contribution-app *::after {
  box-sizing: border-box;
}

#spot-contribution-app {
  width: min(100%, 800px);
  min-width: 0;
  margin-inline: auto;
  padding: clamp(16px, 4vw, 32px) clamp(12px, 4vw, 24px) 48px;
  color: var(--spot-ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#spot-contribution-app img,
#spot-contribution-app video,
#spot-contribution-app iframe,
#spot-contribution-app svg,
#spot-contribution-app canvas {
  max-width: 100%;
}

#spot-contribution-app h1,
#spot-contribution-app h2,
#spot-contribution-app h3,
#spot-contribution-app p {
  overflow-wrap: anywhere;
}

#spot-contribution-app h1,
#spot-contribution-app h2,
#spot-contribution-app h3 {
  margin-block: 0;
  color: var(--spot-ink-strong);
  font-weight: 700;
  letter-spacing: -0.015em;
}

#spot-contribution-app h1 {
  font-size: clamp(1.65rem, 7vw, 2.4rem);
  line-height: 1.16;
}

#spot-contribution-app h2 {
  font-size: clamp(1.3rem, 5vw, 1.75rem);
  line-height: 1.25;
}

#spot-contribution-app h3 {
  font-size: 1.05rem;
  line-height: 1.35;
}

#spot-contribution-app p {
  margin-block: 0 1rem;
}

#spot-contribution-app a {
  color: var(--spot-ocean);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

#spot-contribution-app a:hover {
  color: var(--spot-green-dark);
}

.spot-contribution-hero,
.spot-form-intro,
.spot-intro {
  position: relative;
  margin-bottom: 18px;
  padding: clamp(20px, 5vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(8, 118, 107, 0.2);
  border-radius: 22px;
  color: var(--spot-ink);
  background:
    linear-gradient(135deg, rgba(227, 244, 239, 0.96), rgba(229, 245, 248, 0.94)),
    var(--spot-surface);
  box-shadow: var(--spot-shadow);
}

.spot-contribution-hero::after,
.spot-form-intro::after,
.spot-intro::after {
  position: absolute;
  right: -46px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border: 24px solid rgba(9, 111, 140, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.spot-eyebrow,
.spot-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--spot-green-dark);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.spot-subtitle,
.spot-lead,
.spot-step-description,
.spot-field-hint,
.help-text,
.form-text {
  color: var(--spot-muted);
}

.spot-subtitle,
.spot-lead {
  max-width: 62ch;
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 1rem;
}

.spot-language-switcher,
.spot-locale-switcher,
.spot-languages,
.language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.spot-language-switcher a,
.spot-language-switcher button,
.spot-locale-switcher a,
.spot-locale-switcher button,
.spot-languages a,
.spot-languages button,
.language-links a,
.language-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--spot-border-strong);
  border-radius: 999px;
  color: var(--spot-ink-strong);
  background: var(--spot-surface);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.spot-language-switcher [aria-current="true"],
.spot-language-switcher .is-active,
.spot-locale-switcher [aria-current="true"],
.spot-locale-switcher .is-active,
.spot-languages [aria-current="true"],
.spot-languages .is-active,
.language-links [aria-current="page"],
.language-links .is-active {
  border-color: var(--spot-green-dark);
  color: #ffffff;
  background: var(--spot-green-dark);
}

.spot-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-items: end;
  min-width: 0;
}

.language-switcher {
  min-width: 0;
  color: var(--spot-muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.language-switcher > span {
  display: block;
  margin-bottom: 7px;
}

.spot-privacy-summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 70ch;
  margin: 18px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid rgba(7, 94, 86, 0.22);
  color: var(--spot-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.spot-privacy-summary i {
  flex: 0 0 auto;
  margin-top: 0.25em;
  color: var(--spot-green-dark);
}

#spot-contribution-form,
.spot-form-card {
  min-width: 0;
}

#spot-contribution-form {
  margin: 0;
}

.spot-progress,
.spot-stepper,
.spot-progress-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(44px, 1fr));
  gap: clamp(4px, 1.5vw, 9px);
  width: 100%;
  min-width: 0;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid var(--spot-border);
  border-radius: 18px;
  list-style: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(8, 47, 44, 0.07);
}

.spot-progress li,
.spot-stepper li,
.spot-progress-list li {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.spot-progress-item[data-step] {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-width: 44px;
  min-height: 48px;
  margin: 0;
  padding: 5px 3px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--spot-muted);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease,
    transform 160ms ease;
}

.spot-progress-item[data-step]:hover {
  border-color: var(--spot-border);
  color: var(--spot-ink-strong);
  background: var(--spot-green-soft);
}

.spot-progress-item[data-step][aria-current="step"],
.spot-progress-item[data-step].is-active,
.spot-progress-item[data-step].active {
  border-color: var(--spot-green-dark);
  color: #ffffff;
  background: var(--spot-green-dark);
  box-shadow: 0 5px 14px rgba(7, 94, 86, 0.2);
}

.spot-progress-item[data-step].is-complete,
.spot-progress-item[data-step].completed,
.spot-progress-item[data-step][data-complete="true"] {
  border-color: #78ac9d;
  color: var(--spot-green-dark);
  background: var(--spot-green-soft);
}

.spot-progress-number,
.spot-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.spot-progress-item[data-step] > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.spot-progress-item[data-step] > strong {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  font: inherit;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot-progress-label {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot-step[data-step] {
  min-width: 0;
  padding: clamp(18px, 5vw, 34px);
  border: 1px solid var(--spot-border);
  border-radius: 20px;
  background: var(--spot-surface);
  box-shadow: var(--spot-shadow);
  animation: spot-step-enter 220ms ease-out both;
}

.spot-step[data-step][hidden],
#existing-spot-fields[hidden],
#new-spot-fields[hidden],
#spot-finder[hidden],
#spot-selected-card[hidden],
#spot-add-new[hidden],
#spot-search-retry[hidden],
#spot-details-panel[hidden],
#spot-prev[hidden],
#spot-next[hidden],
#spot-submit[hidden],
#draft-status[hidden] {
  display: none !important;
}

.spot-finder {
  min-width: 0;
  margin-top: 14px;
  padding: clamp(14px, 4vw, 20px);
  border: 1px solid var(--spot-border);
  border-radius: 15px;
  background: #f8fcfb;
}

.spot-search-feedback {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  margin: -4px 0 8px;
}

.spot-search-status {
  flex: 1 1 auto;
  min-height: 22px;
  margin: 0 !important;
  color: var(--spot-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.spot-search-retry {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--spot-danger);
  border-radius: 999px;
  color: var(--spot-danger);
  background: var(--spot-surface);
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.spot-search-retry:hover,
.spot-search-retry:focus-visible {
  color: #fff;
  background: var(--spot-danger);
}

.spot-search-status[data-state="loading"] {
  color: var(--spot-ocean);
}

.spot-search-status[data-state="error"] {
  color: var(--spot-danger);
}

.spot-search-results {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.spot-search-result {
  display: grid;
  gap: 3px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--spot-border);
  border-radius: 11px;
  color: var(--spot-ink-strong);
  text-align: left;
  background: var(--spot-surface);
  cursor: pointer;
}

.spot-search-result:hover:not(:disabled) {
  border-color: var(--spot-green-dark);
  background: var(--spot-green-soft);
}

.spot-search-result strong,
.spot-search-result small,
.spot-result-closed {
  min-width: 0;
  overflow-wrap: anywhere;
}

.spot-search-result strong {
  font-size: 0.94rem;
}

.spot-search-result small {
  color: var(--spot-muted);
  font-size: 0.8rem;
}

.spot-search-result:disabled {
  border-color: #d9c5c5;
  background: #f8f2f2;
  cursor: not-allowed;
}

.spot-result-closed {
  color: var(--spot-danger);
  font-size: 0.78rem;
  font-weight: 700;
}

.spot-add-new {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--spot-ocean);
  border-radius: 11px;
  color: var(--spot-ocean);
  background: var(--spot-ocean-soft);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.spot-selected-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  margin-top: 14px;
  padding: clamp(14px, 4vw, 20px);
  border: 1px solid var(--spot-green-dark);
  border-radius: 15px;
  background: var(--spot-green-soft);
}

.spot-selected-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.spot-selected-card span {
  color: var(--spot-green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spot-selected-card strong,
.spot-selected-card small {
  overflow-wrap: anywhere;
}

.spot-selected-card strong {
  color: var(--spot-ink-strong);
  font-size: 1.03rem;
}

.spot-selected-card small {
  color: var(--spot-muted);
}

.spot-selection-errors:empty {
  display: none;
}

.spot-details-disclosure {
  min-width: 0;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--spot-border);
}

.spot-details-disclosure > .spot-field > label,
.spot-details-disclosure > [class*="field-spotcontributionform-contribute_spot_data"] > label {
  display: flex !important;
  align-items: flex-start;
  gap: 11px;
  min-height: 54px;
  margin: 0 !important;
  padding: 13px 14px;
  border: 1px solid var(--spot-border-strong);
  border-radius: 13px;
  color: var(--spot-ink-strong) !important;
  background: #f8fcfb;
  font-size: 0.96rem !important;
  font-weight: 750 !important;
  cursor: pointer;
}

#spot-details-panel {
  min-width: 0;
  margin-top: 16px;
  padding: clamp(14px, 4vw, 22px);
  border: 1px solid var(--spot-border);
  border-radius: 16px;
  background: #f8fcfb;
}

.spot-optional-section + .spot-optional-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--spot-border);
}

.spot-optional-section > h3 {
  margin-bottom: 16px !important;
}

@keyframes spot-step-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spot-step-header {
  display: grid;
  gap: 7px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--spot-border);
}

.spot-step[data-step] > legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--spot-border);
  color: var(--spot-ink-strong);
  font-size: clamp(1.22rem, 4.8vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
}

.spot-step[data-step] > legend > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--spot-green-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.spot-step-description {
  max-width: 64ch;
  margin: 0;
  font-size: 0.94rem;
}

.spot-step-help {
  margin: -6px 0 18px !important;
  color: var(--spot-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.spot-section,
.spot-fieldset,
#existing-spot-fields,
#new-spot-fields {
  min-width: 0;
}

.spot-section + .spot-section,
.spot-fieldset + .spot-fieldset {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--spot-border);
}

#existing-spot-fields,
#new-spot-fields {
  margin-top: 14px;
  padding: clamp(14px, 4vw, 20px);
  border: 1px solid var(--spot-border);
  border-radius: 15px;
  background: #f8fcfb;
}

#new-spot-fields {
  border-color: #acd2d8;
  background: #f5fbfc;
}

#spot-contribution-app fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#spot-contribution-app legend,
.spot-fieldset-title {
  width: auto;
  margin: 0 0 10px;
  padding: 0;
  color: var(--spot-ink-strong);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.4;
}

.spot-field-grid,
.spot-grid,
.spot-grid-2,
.spot-two-column,
.spot-three-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
  min-width: 0;
}

.spot-field,
#spot-contribution-app .form-group,
#spot-contribution-app [class*="field-spotcontributionform-"] {
  min-width: 0;
  margin-bottom: 16px;
}

.spot-field:last-child,
#spot-contribution-app .form-group:last-child,
#spot-contribution-app [class*="field-spotcontributionform-"]:last-child {
  margin-bottom: 0;
}

#spot-contribution-form label:not(.spot-choice):not(.spot-option):not(.spot-check-card):not(.spot-radio-card),
.spot-label {
  display: block;
  margin-bottom: 7px;
  color: var(--spot-ink-strong);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
}

.spot-required,
#spot-contribution-app .required > label::after {
  color: var(--spot-danger);
}

#spot-contribution-app .required > label::after {
  margin-left: 0.25em;
  content: "*";
}

.spot-field-hint,
.help-text,
#spot-contribution-app .form-text {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.45;
}

#spot-contribution-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
#spot-contribution-form select,
#spot-contribution-form textarea,
#spot-contribution-form .form-control {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--spot-border-strong);
  border-radius: 10px;
  color: var(--spot-ink-strong);
  background-color: var(--spot-surface);
  background-clip: padding-box;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

#spot-contribution-form input[type="date"],
#spot-contribution-form input[type="time"],
#spot-contribution-form input[type="number"] {
  min-width: 0;
}

#spot-contribution-form input[type="file"] {
  overflow: hidden;
  padding-block: 8px;
}

#spot-contribution-form textarea,
#spot-contribution-form textarea.form-control {
  min-height: 118px;
  resize: vertical;
}

#spot-contribution-form select,
#spot-contribution-form select.form-control {
  padding-right: 38px;
  cursor: pointer;
}

#spot-contribution-form input::placeholder,
#spot-contribution-form textarea::placeholder {
  color: #6d7e7a;
  opacity: 1;
}

#spot-contribution-form input:disabled,
#spot-contribution-form select:disabled,
#spot-contribution-form textarea:disabled {
  color: #5d6b68;
  background: #edf1f0;
  cursor: not-allowed;
  opacity: 1;
}

#spot-contribution-form input[readonly],
#spot-contribution-form textarea[readonly] {
  background: #f3f7f6;
}

.spot-choice-grid,
.spot-options,
.spot-mode-options,
.spot-checkbox-grid,
.spot-radio-grid,
.spot-check-grid,
.spot-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 138px), 1fr));
  gap: 10px;
  min-width: 0;
}

.spot-month-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 72px), 1fr));
}

.spot-check-grid > div,
.spot-month-grid > div,
.spot-choice-grid > div,
.spot-mode-options > div {
  min-width: 0;
}

.spot-choice,
.spot-option,
.spot-check-card,
.spot-radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--spot-border);
  border-radius: 11px;
  color: var(--spot-ink-strong);
  background: var(--spot-surface);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.spot-choice-grid > div > label,
.spot-choice-grid > label,
.spot-mode-options > div > label,
.spot-mode-options > label,
.spot-check-grid > div > label,
.spot-check-grid > label,
.spot-month-grid > div > label,
.spot-month-grid > label {
  position: relative;
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0 !important;
  padding: 11px 10px;
  border: 1px solid var(--spot-border);
  border-radius: 10px;
  color: var(--spot-ink-strong) !important;
  background: var(--spot-surface);
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.spot-choice-grid > div > label:hover,
.spot-choice-grid > label:hover,
.spot-mode-options > div > label:hover,
.spot-mode-options > label:hover,
.spot-check-grid > div > label:hover,
.spot-check-grid > label:hover,
.spot-month-grid > div > label:hover,
.spot-month-grid > label:hover {
  border-color: var(--spot-green);
  background: #f5fbf9;
}

.spot-choice-grid > div > label:has(input:checked),
.spot-choice-grid > label:has(input:checked),
.spot-mode-options > div > label:has(input:checked),
.spot-mode-options > label:has(input:checked),
.spot-check-grid > div > label:has(input:checked),
.spot-check-grid > label:has(input:checked),
.spot-month-grid > div > label:has(input:checked),
.spot-month-grid > label:has(input:checked) {
  border-color: var(--spot-green-dark);
  color: var(--spot-green-dark) !important;
  background: var(--spot-green-soft);
  box-shadow: inset 0 0 0 1px var(--spot-green-dark);
}

.spot-choice:hover,
.spot-option:hover,
.spot-check-card:hover,
.spot-radio-card:hover {
  border-color: var(--spot-green);
  background: #f5fbf9;
}

.spot-choice:has(input:checked),
.spot-option:has(input:checked),
.spot-check-card:has(input:checked),
.spot-radio-card:has(input:checked) {
  border-color: var(--spot-green-dark);
  color: var(--spot-green-dark);
  background: var(--spot-green-soft);
  box-shadow: inset 0 0 0 1px var(--spot-green-dark);
}

#spot-contribution-form input[type="checkbox"],
#spot-contribution-form input[type="radio"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--spot-green-dark);
}

.spot-consent-list,
.spot-confirmations {
  display: grid;
  gap: 10px;
}

.spot-consent-card {
  min-width: 0;
  margin-top: 18px;
  padding: clamp(14px, 4vw, 20px);
  border: 1px solid var(--spot-border);
  border-radius: 14px;
  background: var(--spot-green-soft);
}

.spot-consent-card > p {
  color: var(--spot-muted);
  font-size: 0.88rem;
}

.spot-consent-card .spot-field > label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  margin: 0 !important;
  padding: 11px 12px;
  border: 1px solid var(--spot-border);
  border-radius: 10px;
  background: var(--spot-surface);
  font-size: 0.88rem !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  cursor: pointer;
}

.spot-consent-list label,
.spot-confirmations label {
  display: flex !important;
  align-items: flex-start;
  gap: 11px;
  min-height: 48px;
  margin: 0 !important;
  padding: 11px 12px;
  border: 1px solid var(--spot-border);
  border-radius: 11px;
  background: #fbfdfc;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  cursor: pointer;
}

#schedule-rows,
#coach-cards {
  display: grid;
  gap: 13px;
  min-width: 0;
  margin-top: 12px;
}

.spot-repeat-section {
  min-width: 0;
  margin-block: 18px 22px;
  padding: clamp(13px, 3vw, 18px);
  border: 1px solid var(--spot-border);
  border-radius: 15px;
  background: #fbfdfc;
}

.spot-repeat-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.spot-repeat-header h3 {
  min-width: 0;
}

#schedule-rows:empty::before,
#coach-cards:empty::before {
  display: block;
  padding: 16px;
  border: 1px dashed var(--spot-border-strong);
  border-radius: 12px;
  color: var(--spot-muted);
  background: #f8fbfa;
  content: attr(data-empty-message);
  font-size: 0.88rem;
  text-align: center;
}

#schedule-rows > *,
#coach-cards > *,
.schedule-row,
.schedule-card,
.coach-card,
.spot-dynamic-card {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--spot-border);
  border-radius: 14px;
  background: #f8fcfb;
  box-shadow: 0 4px 14px rgba(8, 47, 44, 0.05);
}

#schedule-rows > *,
.schedule-row,
.schedule-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

#schedule-rows > * > *,
#coach-cards > * > *,
.schedule-row > *,
.schedule-card > *,
.coach-card > *,
.spot-dynamic-card > * {
  min-width: 0;
}

#coach-cards > *,
.coach-card {
  display: grid;
  gap: 13px;
}

.spot-card-heading,
.schedule-card-header,
.coach-card-header {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 2px;
}

.spot-card-title,
.schedule-card-title,
.coach-card-title {
  min-width: 0;
  margin: 0;
  color: var(--spot-ink-strong);
  font-size: 0.96rem;
  font-weight: 800;
}

.remove-schedule,
.remove-coach {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid #c86a6a;
  border-radius: 10px;
  color: var(--spot-danger);
  background: var(--spot-surface);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.remove-schedule:hover,
.remove-coach:hover {
  border-color: var(--spot-danger);
  color: #ffffff;
  background: var(--spot-danger);
}

.add-schedule,
.add-coach,
#add-schedule,
#add-coach,
#spot-add-schedule,
#spot-add-coach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 9px 14px;
  border: 1px dashed var(--spot-green-dark);
  border-radius: 10px;
  color: var(--spot-green-dark);
  background: var(--spot-green-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.25;
  cursor: pointer;
}

.add-schedule:hover,
.add-coach:hover,
#add-schedule:hover,
#add-coach:hover,
#spot-add-schedule:hover,
#spot-add-coach:hover {
  border-style: solid;
  color: #ffffff;
  background: var(--spot-green-dark);
}

.spot-notice,
.spot-info,
.spot-callout,
.spot-privacy-note {
  min-width: 0;
  margin-block: 14px;
  padding: 13px 14px;
  border-inline-start: 4px solid var(--spot-ocean);
  border-radius: 10px;
  color: var(--spot-ink);
  background: var(--spot-ocean-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.spot-safety-note,
.spot-warning {
  border-inline-start-color: #9b6a05;
  background: #fff6dc;
}

.spot-review,
.spot-review-card,
.spot-summary {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--spot-border);
  border-radius: 14px;
  background: #f8fcfb;
}

.spot-review-row,
.spot-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--spot-border);
}

.spot-review-row:last-child,
.spot-summary-row:last-child {
  border-bottom: 0;
}

.spot-review-label,
.spot-summary-label {
  color: var(--spot-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.spot-review-value,
.spot-summary-value {
  min-width: 0;
  color: var(--spot-ink-strong);
  font-weight: 650;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#draft-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  margin: 10px 0 4px;
  padding: 5px 10px;
  border: 1px solid var(--spot-border);
  border-radius: 999px;
  color: var(--spot-muted);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

#draft-status:empty {
  display: none;
}

#draft-status::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

#draft-status.is-saving,
#draft-status[data-state="saving"],
#draft-status[data-status="saving"] {
  color: var(--spot-ocean);
}

#draft-status.is-saved,
#draft-status[data-state="saved"],
#draft-status[data-status="saved"] {
  border-color: #9bc6aa;
  color: var(--spot-success);
  background: var(--spot-success-soft);
}

#draft-status.is-error,
#draft-status[data-state="error"],
#draft-status[data-status="error"] {
  border-color: #dc9c9c;
  color: var(--spot-danger);
  background: var(--spot-danger-soft);
}

.spot-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.spot-error-summary,
.spot-inline-alert {
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid #d68b8b;
  border-radius: 11px;
  color: var(--spot-danger);
  background: var(--spot-danger-soft);
  font-size: 0.88rem;
}

.spot-error-summary ul {
  margin: 7px 0 0;
  padding-left: 20px;
}

#spot-contribution-app .has-error label,
#spot-contribution-app .has-error .control-label,
#spot-contribution-app .has-error .help-block,
#spot-contribution-app .has-error .invalid-feedback,
#spot-contribution-app .has-error .error-message {
  color: var(--spot-danger);
}

#spot-contribution-app .has-error input:not([type="checkbox"]):not([type="radio"]),
#spot-contribution-app .has-error select,
#spot-contribution-app .has-error textarea,
#spot-contribution-app [aria-invalid="true"] {
  border-color: var(--spot-danger) !important;
  background-color: var(--spot-danger-soft) !important;
  box-shadow: 0 0 0 1px var(--spot-danger) !important;
}

#spot-contribution-app .has-error .spot-choice,
#spot-contribution-app .has-error .spot-option,
#spot-contribution-app .has-error .spot-check-card,
#spot-contribution-app .has-error .spot-radio-card {
  border-color: var(--spot-danger);
  background: var(--spot-danger-soft);
}

#spot-contribution-app .help-block,
#spot-contribution-app .invalid-feedback,
#spot-contribution-app .error-message {
  display: block;
  margin: 6px 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
}

.spot-form-actions,
.spot-step-actions,
.spot-actions {
  position: sticky;
  z-index: 20;
  bottom: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  margin-top: 18px;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(238, 247, 244, 0), rgba(238, 247, 244, 0.96) 22%);
  backdrop-filter: blur(7px);
}

#spot-prev,
#spot-next,
#spot-submit,
#spot-contribution-app .spot-button,
#spot-contribution-app button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 48px;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease,
    box-shadow 150ms ease, transform 150ms ease;
}

#spot-prev {
  margin-right: auto;
  border-color: var(--spot-border-strong);
  color: var(--spot-ink-strong);
  background: var(--spot-surface);
}

#spot-prev:hover {
  border-color: var(--spot-green-dark);
  color: var(--spot-green-dark);
  background: var(--spot-green-soft);
}

#spot-next {
  border-color: var(--spot-ocean);
  color: #ffffff;
  background: var(--spot-ocean);
  box-shadow: 0 7px 16px rgba(9, 111, 140, 0.2);
}

#spot-next:hover {
  border-color: #075b74;
  background: #075b74;
}

#spot-submit,
#spot-contribution-app button[type="submit"] {
  border-color: var(--spot-green-dark);
  color: #ffffff;
  background: var(--spot-green-dark);
  box-shadow: 0 7px 16px rgba(7, 94, 86, 0.22);
}

#spot-submit:hover,
#spot-contribution-app button[type="submit"]:hover {
  border-color: #064c46;
  background: #064c46;
}

#spot-prev:active,
#spot-next:active,
#spot-submit:active,
#spot-contribution-app .spot-button:active {
  transform: translateY(1px);
}

#spot-contribution-app button:disabled,
#spot-contribution-app .spot-button[aria-disabled="true"] {
  border-color: #b8c5c2 !important;
  color: #5d6c69 !important;
  background: #e2e8e6 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1;
}

#spot-contribution-app :where(
    a,
    button,
    input,
    select,
    textarea,
    [tabindex]:not([tabindex="-1"])
  ):focus-visible {
  outline: 3px solid var(--spot-focus) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--spot-ink-strong) !important;
}

#spot-contribution-form input:focus,
#spot-contribution-form select:focus,
#spot-contribution-form textarea:focus {
  border-color: var(--spot-green-dark);
}

#spot-contribution-app .sr-only,
#spot-contribution-app .visually-hidden,
#spot-contribution-app .spot-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#spot-contribution-app .row {
  min-width: 0;
  margin-right: -6px;
  margin-left: -6px;
}

#spot-contribution-app .row > [class*="col-"] {
  min-width: 0;
  padding-right: 6px;
  padding-left: 6px;
}

@media (min-width: 560px) {
  .spot-field-grid,
  .spot-grid-2,
  .spot-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spot-three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #schedule-rows > *,
  .schedule-row,
  .schedule-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spot-progress-item[data-step] {
    min-height: 58px;
    padding-inline: 7px;
    font-size: 0.78rem;
  }
}

@media (max-width: 559.98px) {
  .spot-selected-card {
    align-items: stretch;
    flex-direction: column;
  }

  .spot-selected-card .spot-button {
    width: 100%;
  }

  .spot-progress-label {
    font-size: 0.65rem;
  }

  .spot-form-actions,
  .spot-step-actions,
  .spot-actions {
    margin-right: -4px;
    margin-left: -4px;
    padding-right: 4px;
    padding-left: 4px;
  }

  #spot-prev,
  #spot-next,
  #spot-submit {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 10px;
  }
}

@media (max-width: 379.98px) {
  #spot-contribution-app {
    padding-inline: 10px;
  }

  .spot-contribution-hero,
  .spot-form-intro,
  .spot-intro,
  .spot-step[data-step] {
    border-radius: 16px;
  }

  .spot-progress,
  .spot-stepper,
  .spot-progress-list {
    gap: 3px;
    padding: 5px;
    border-radius: 14px;
  }

  .spot-progress-item[data-step] {
    min-width: 44px;
    min-height: 48px;
    padding-inline: 1px;
    border-radius: 9px;
  }

  .spot-progress-label {
    font-size: 0.6rem;
  }

  .spot-choice-grid,
  .spot-options,
  .spot-mode-options,
  .spot-checkbox-grid,
  .spot-radio-grid,
  #schedule-rows > *,
  .schedule-row,
  .schedule-card,
  .spot-review-row,
  .spot-summary-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .spot-review-label,
  .spot-summary-label {
    margin-bottom: -7px;
  }

  .remove-schedule,
  .remove-coach,
  .add-schedule,
  .add-coach,
  #add-schedule,
  #add-coach,
  #spot-add-schedule,
  #spot-add-coach {
    width: 100%;
    justify-self: stretch;
  }
}

@media (prefers-contrast: more) {
  .iase-spot-contribution-page,
  #spot-contribution-app {
    --spot-border: #52736c;
    --spot-border-strong: #315851;
    --spot-muted: #334c47;
    --spot-green: #045c53;
    --spot-ocean: #07566d;
  }

  .spot-step[data-step],
  .spot-progress,
  .spot-stepper,
  .spot-progress-list,
  #existing-spot-fields,
  #new-spot-fields,
  #schedule-rows > *,
  #coach-cards > * {
    border-width: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #spot-contribution-app *,
  #spot-contribution-app *::before,
  #spot-contribution-app *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  #spot-contribution-app,
  .spot-step[data-step],
  .spot-progress,
  .spot-stepper,
  .spot-progress-list,
  #existing-spot-fields,
  #new-spot-fields,
  #schedule-rows > *,
  #coach-cards > * {
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .spot-progress-item[data-step][aria-current="step"],
  .spot-progress-item[data-step].is-active,
  #spot-next,
  #spot-submit,
  #spot-contribution-app button[type="submit"] {
    color: HighlightText;
    background: Highlight;
  }

  #spot-contribution-app input[type="checkbox"],
  #spot-contribution-app input[type="radio"] {
    forced-color-adjust: auto;
  }
}

@media print {
  .iase-spot-contribution-page,
  .iase-spot-contribution-page .main-content-area {
    color: #000000;
    background: #ffffff;
  }

  .spot-progress,
  .spot-stepper,
  .spot-progress-list,
  .spot-form-actions,
  .spot-step-actions,
  .spot-actions,
  #draft-status {
    display: none !important;
  }

  .spot-step[data-step] {
    display: block !important;
    break-inside: avoid;
    margin-bottom: 14px;
    border: 1px solid #555555;
    box-shadow: none;
  }
}

/* Standalone paused and success states share the form visual language. */
.spot-paused,
.spot-success-card {
  width: min(100%, 720px);
  margin: 36px auto;
  padding: clamp(24px, 6vw, 48px);
  border: 1px solid var(--spot-border);
  border-radius: 22px;
  color: var(--spot-ink);
  text-align: center;
  background: var(--spot-surface);
  box-shadow: var(--spot-shadow);
}

.spot-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--spot-success);
  font-size: 28px;
}

.spot-reference {
  display: grid;
  gap: 5px;
  margin: 24px 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--spot-green-soft);
}

.spot-reference strong {
  color: var(--spot-green-dark);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.spot-success-card .spot-form-actions,
.spot-paused .spot-form-actions {
  position: static;
  justify-content: center;
  background: transparent;
  backdrop-filter: none;
}

.spot-success-card .spot-button,
.spot-paused .spot-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--spot-border-strong);
  border-radius: 11px;
  color: var(--spot-ink-strong);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  background: var(--spot-surface);
}

.spot-success-card .spot-button-primary,
.spot-paused .spot-button-primary {
  border-color: var(--spot-green-dark);
  color: #ffffff;
  background: var(--spot-green-dark);
}
