/*
 * Light Up Events & Marketing: enquiry form.
 * Hand-written. Ink on cream with the brand gold kept for focus, numbering and the send arrow.
 */

#lu-contact {
  --lf-ink: #17140f;
  --lf-muted: #6a655c;
  --lf-gold: #d5aa46;
  --lf-gold-text: #7b5a12;
  --lf-line: #d6cebf;
  --lf-line-strong: #a79f8f;
  --lf-field: #ffffff;
  --lf-error: #b42318;
  --lf-error-bg: #fff4f1;
  --lf-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  margin: 0;
  color: var(--lf-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

#lu-contact,
#lu-contact *,
#lu-contact *::before,
#lu-contact *::after {
  box-sizing: border-box;
}

#lu-contact [hidden] {
  display: none !important;
}

#lu-contact fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* The group legend ("Name") is kept for assistive technology; each input has its own visible label. */
#lu-contact legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Groups */

#lu-contact .lf-group + .lf-group {
  margin-top: 36px;
}

#lu-contact .lf-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--lf-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

#lu-contact .lf-group-title span {
  color: var(--lf-gold-text);
  font-variant-numeric: tabular-nums;
}

#lu-contact .lf-group-title span::after {
  margin-left: 12px;
  color: var(--lf-line-strong);
  content: "/";
}

#lu-contact .lf-group-title::after {
  height: 1px;
  flex: 1;
  background: var(--lf-line);
  content: "";
}

#lu-contact .lf-grid,
#lu-contact .lu-form-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 18px 16px;
}

#lu-contact .lu-form-field {
  min-width: 0;
  margin: 0;
  padding: 0;
}

#lu-contact .lu-form-field-name,
#lu-contact .lu-form-field-textarea {
  grid-column: 1 / -1;
}

#lu-contact .lu-form-field-row {
  width: auto;
  max-width: none;
  margin: 0;
}

#lu-contact .lu-form-field-row-block {
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
}

#lu-contact .lu-form-field-row-block > label {
  order: -1;
}

/* Labels */

#lu-contact .lu-form-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--lf-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

#lu-contact .lu-form-required-label {
  color: var(--lf-gold-text);
  font-weight: 700;
}

/* Controls */

#lu-contact .lu-form-field input,
#lu-contact .lu-form-field textarea {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 54px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--lf-line);
  border-radius: 14px;
  background: var(--lf-field);
  box-shadow: 0 1px 0 rgba(23, 20, 15, 0.03);
  color: var(--lf-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  appearance: none;
  transition:
    border-color 180ms ease,
    box-shadow 220ms var(--lf-ease),
    background-color 180ms ease;
}

#lu-contact .lu-form-field textarea {
  min-height: 148px;
  resize: vertical;
}

#lu-contact .lu-form-field :is(input, textarea):hover {
  border-color: var(--lf-line-strong);
}

#lu-contact .lu-form-field :is(input, textarea):focus {
  border-color: var(--lf-ink);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 4px rgba(213, 170, 70, 0.42);
}

#lu-contact .lu-form-field :is(input, textarea)[aria-invalid="true"] {
  border-color: var(--lf-error);
  background: var(--lf-error-bg);
}

#lu-contact .lu-form-field :is(input, textarea)[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.2);
}

#lu-contact .lf-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--lf-error);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  animation: lf-rise 260ms var(--lf-ease) both;
}

#lu-contact .lf-error svg {
  flex: 0 0 16px;
  margin-top: 1px;
}

/* Send failure banner */

#lu-contact #lu-contact-error {
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(180, 35, 24, 0.35);
  border-radius: 14px;
  background: var(--lf-error-bg);
  color: #7a1810;
  font-size: 14px;
  line-height: 1.5;
  animation: lf-rise 260ms var(--lf-ease) both;
}

#lu-contact #lu-contact-error a {
  color: inherit;
  font-weight: 700;
}

#lu-contact .cf-turnstile:not(:empty) {
  margin-top: 24px;
}

/* Submit */

#lu-contact .lu-form-submit-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin: 32px 0 0;
  padding: 0;
}

#lu-contact .lu-form-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  margin: 0;
  padding: 8px 8px 8px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--lf-ink);
  box-shadow: 0 10px 30px rgba(23, 20, 15, 0.18);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-align: left;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 260ms var(--lf-ease),
    box-shadow 260ms ease,
    background-color 200ms ease;
}

#lu-contact .lf-btn-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--lf-gold);
  color: var(--lf-ink);
  transition: transform 320ms var(--lf-ease), background-color 200ms ease;
}

#lu-contact .lu-form-submit:hover {
  background: #000000;
  box-shadow: 0 16px 40px rgba(23, 20, 15, 0.26);
  transform: translateY(-2px);
}

#lu-contact .lu-form-submit:hover .lf-btn-icon {
  background: #f2d780;
  transform: translateX(3px);
}

#lu-contact .lu-form-submit:active {
  transform: translateY(0) scale(0.985);
}

#lu-contact .lu-form-submit:focus-visible {
  outline: 3px solid var(--lf-gold);
  outline-offset: 4px;
}

#lu-contact .lu-form-submit[aria-busy="true"] {
  cursor: progress;
  transform: none;
}

#lu-contact .lu-form-submit[aria-busy="true"] .lf-btn-icon svg {
  display: none;
}

#lu-contact .lu-form-submit[aria-busy="true"] .lf-btn-icon::after {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(23, 20, 15, 0.25);
  border-top-color: var(--lf-ink);
  border-radius: 50%;
  animation: lf-spin 700ms linear infinite;
  content: "";
}

#lu-contact .lf-required-note {
  margin: 0;
  color: var(--lf-muted);
  font-size: 13px;
  line-height: 1.4;
}

#lu-contact .lf-required-note span {
  color: var(--lf-gold-text);
  font-weight: 700;
}

@media (max-width: 520px) {
  #lu-contact .lu-form-submit {
    width: 100%;
  }
}

/* Confirmation */

.lf-done {
  --lf-ink: #17140f;
  --lf-muted: #6a655c;
  --lf-gold: #d5aa46;
  --lf-gold-text: #7b5a12;
  --lf-line: #d6cebf;
  --lf-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--lf-ink);
  text-align: left;
  outline: none;
}

.lf-done * {
  box-sizing: border-box;
}

.lf-done-mark {
  display: block;
  width: 72px;
  height: 72px;
  animation: lf-pop 520ms var(--lf-ease) both;
}

.lf-done-mark circle {
  fill: var(--lf-ink);
}

.lf-done-mark path {
  fill: none;
  stroke: var(--lf-gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: lf-draw 520ms 320ms var(--lf-ease) forwards;
}

.lf-done-kicker {
  margin: 26px 0 10px !important;
  color: var(--lf-gold-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  animation: lf-rise 520ms 120ms var(--lf-ease) both;
}

.lf-done-title {
  margin: 0 !important;
  color: var(--lf-ink);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  animation: lf-rise 520ms 180ms var(--lf-ease) both;
}

.lf-done-steps {
  margin: 30px 0 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--lf-line);
  list-style: none !important;
  counter-reset: none;
}

.lf-done-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 0;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--lf-line);
  animation: lf-rise 520ms var(--lf-ease) both;
}

.lf-done-steps li:nth-child(1) { animation-delay: 300ms; }
.lf-done-steps li:nth-child(2) { animation-delay: 380ms; }
.lf-done-steps li:nth-child(3) { animation-delay: 460ms; }

.lf-done-steps .lf-n {
  grid-row: span 2;
  padding-top: 3px;
  color: var(--lf-gold-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.lf-done-steps strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.lf-done-steps .lf-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--lf-ink);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lf-done-steps .lf-d {
  color: var(--lf-muted);
  font-size: 14px;
  line-height: 1.55;
}

.lf-done-foot {
  margin: 20px 0 0 !important;
  color: var(--lf-muted);
  font-size: 13px;
  line-height: 1.5;
  animation: lf-rise 520ms 540ms var(--lf-ease) both;
}

.lf-done-foot a {
  color: var(--lf-ink);
  font-weight: 700;
  text-underline-offset: 0.22em;
}

@keyframes lf-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lf-pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes lf-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes lf-spin {
  to { transform: rotate(360deg); }
}
