.lc-event-form-wrap {
  width: min(760px, 100%);
  margin: clamp(48px, 6vw, 72px) auto 0;
  text-align: left;
}

.lc-book__chapter > .lc-book__signature + .lc-event-form-wrap {
  margin-top: 32px;
}

.lc-book__chapter > .lc-book__signature:has(+ .lc-event-form-wrap),
.lc-degu-book__chapter--final > .lc-book__signature {
  width: min(760px, 100%);
  margin: clamp(48px, 6vw, 72px) auto 0 !important;
  padding: 22px 0;
  border-top: 1px solid rgba(237, 207, 145, 0.5);
  border-bottom: 1px solid rgba(237, 207, 145, 0.5);
  color: #edcf91 !important;
  font: 400 clamp(24px, 2.4vw, 32px)/1.25 var(--lc-font-display) !important;
  text-align: center;
}

.lc-event-form {
  display: grid;
  gap: 18px;
}

.lc-event-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.lc-event-field {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lc-event-field > span,
.lc-event-field legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lc-event-field input,
.lc-event-field select,
.lc-event-field textarea,
.lc-product-picker summary {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(237, 207, 145, 0.9);
  border-radius: 0;
  background: rgba(29, 30, 34, 0.36);
  color: #f0eeef;
  font: 300 16px/1.5 var(--lc-font-body);
  outline: 0;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.lc-event-form .lc-event-field input[type="text"],
.lc-event-form .lc-event-field input[type="email"],
.lc-event-form .lc-event-field input[type="tel"],
.lc-event-field select {
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(237, 207, 145, 0.9);
  background: rgba(29, 30, 34, 0.36);
  color: #f0eeef;
}

.lc-event-field textarea {
  min-height: 144px;
  padding: 14px 16px;
  resize: vertical;
}

.lc-event-field select {
  padding-right: 44px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25 11 1.25' fill='none' stroke='%23EDCF91' stroke-width='1.2' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
}

.lc-event-field input::placeholder,
.lc-event-field textarea::placeholder {
  color: #f0eeefa3;
  opacity: 1;
}

.lc-event-form .lc-event-field select:required:invalid {
  color: #f0eeefa3 !important;
  -webkit-text-fill-color: #f0eeefa3;
}

.lc-product-picker__placeholder {
  color: #f0eeefa3;
}

.lc-product-picker:has(input:checked) .lc-product-picker__placeholder {
  color: #f0eeef;
}

.lc-event-form .lc-event-field input[type="text"],
.lc-event-form .lc-event-field input[type="email"],
.lc-event-form .lc-event-field input[type="tel"],
.lc-event-form .lc-event-field select,
.lc-event-form .lc-event-field textarea {
  color: #f0eeef !important;
  caret-color: #f0eeef;
}

.lc-event-form .lc-event-field input[type="text"]:not(:placeholder-shown),
.lc-event-form .lc-event-field input[type="email"]:not(:placeholder-shown),
.lc-event-form .lc-event-field input[type="tel"]:not(:placeholder-shown),
.lc-event-form .lc-event-field textarea:not(:placeholder-shown),
.lc-event-form .lc-event-field input[type="text"]:focus,
.lc-event-form .lc-event-field input[type="email"]:focus,
.lc-event-form .lc-event-field input[type="tel"]:focus,
.lc-event-form .lc-event-field textarea:focus {
  -webkit-text-fill-color: #f0eeef;
}

.lc-event-form .lc-event-field input[type="text"]:placeholder-shown,
.lc-event-form .lc-event-field input[type="email"]:placeholder-shown,
.lc-event-form .lc-event-field input[type="tel"]:placeholder-shown,
.lc-event-form .lc-event-field textarea:placeholder-shown {
  -webkit-text-fill-color: #f0eeefa3 !important;
}

.lc-event-form .lc-event-field input:-webkit-autofill,
.lc-event-form .lc-event-field input:-webkit-autofill:hover,
.lc-event-form .lc-event-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f0eeef;
  caret-color: #f0eeef;
  box-shadow: 0 0 0 1000px #1d1e22 inset;
}

.lc-event-field select option {
  background: #1d1e22;
  color: #f0eeef;
}

.lc-event-field input:focus,
.lc-event-field select:focus,
.lc-event-field textarea:focus,
.lc-product-picker[open] summary,
.lc-product-picker summary:focus-visible {
  border-color: #edcf91;
  background: rgba(22, 23, 26, 0.72);
}

.lc-product-picker {
  position: relative;
  width: 100%;
}

.lc-product-picker summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 6px 44px 6px 16px;
  cursor: pointer;
  list-style: none;
}

.lc-product-picker summary::-webkit-details-marker {
  display: none;
}

.lc-product-picker__placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lc-product-picker__placeholder img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.lc-product-picker__chevron {
  position: absolute;
  right: 18px;
  width: 9px;
  height: 9px;
  border-right: 1px solid #edcf91;
  border-bottom: 1px solid #edcf91;
  transform: rotate(45deg) translateY(-3px);
}

.lc-product-picker[open] .lc-product-picker__chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.lc-product-picker__options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(237, 207, 145, 0.38);
  background: #16171a;
  box-shadow: 0 18px 40px rgba(10, 10, 12, 0.34);
}

.lc-product-option {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 6px 14px;
  color: rgba(240, 238, 239, 0.82);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.lc-product-option + .lc-product-option {
  border-top: 1px solid rgba(237, 207, 145, 0.16);
}

.lc-product-option:hover,
.lc-product-option:has(input:checked) {
  background: rgba(237, 207, 145, 0.07);
  color: #edcf91;
}

.lc-product-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lc-product-option img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.lc-product-option span {
  font: 300 14px/1.35 var(--lc-font-body);
  letter-spacing: 0.04em;
}

.lc-event-form__submit {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 18px;
  padding: 15px clamp(20px, 3vw, 34px);
  border: 0;
  border-top: 1px solid rgba(237, 207, 145, 0.55);
  border-bottom: 1px solid rgba(237, 207, 145, 0.55);
  background: transparent;
  color: #f0eeef;
  font: 300 15px/1.3 var(--lc-font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.lc-event-form__submit:hover,
.lc-event-form__submit:focus-visible {
  border-color: #edcf91;
  color: #edcf91;
}

.lc-event-form__privacy {
  max-width: 620px;
  margin: -8px auto 0 !important;
  color: rgba(240, 238, 239, 0.56) !important;
  font-size: 12px !important;
  text-align: center;
}

.lc-event-form__notice {
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(237, 207, 145, 0.42);
  color: #f0eeef;
  text-align: center;
}

.lc-event-form__notice--error {
  border-color: rgba(240, 238, 239, 0.35);
}

.lc-event-form__trap {
  position: absolute;
  left: -9999px;
}

@media (max-width: 640px) {
  .lc-book__chapter > .lc-book__signature:has(+ .lc-event-form-wrap),
  .lc-degu-book__chapter--final > .lc-book__signature {
    padding: 18px 0;
  }

  .lc-event-form__row {
    grid-template-columns: 1fr;
  }

  .lc-event-form {
    gap: 16px;
  }

  .lc-event-field input,
  .lc-event-field select,
  .lc-product-picker summary {
    min-height: 52px;
    padding-right: 16px;
    padding-left: 16px;
  }
}

.lc-event-form .lc-event-field input::placeholder,
.lc-event-form .lc-event-field textarea::placeholder {
  color: #f0eeefa3 !important;
  opacity: 1 !important;
}

.lc-event-form .lc-event-field select:required:invalid {
  color: #f0eeefa3 !important;
  -webkit-text-fill-color: #f0eeefa3 !important;
}

.lc-product-picker:not(:has(input:checked)) .lc-product-picker__placeholder {
  color: #f0eeefa3 !important;
}


/* Shared branded native select treatment */
.lc-event-field select {
  color-scheme: dark;
  font-family: var(--lc-font-body);
  font-weight: 300;
  background-color: #1d1e22;
  border-color: #edcf91;
}

.lc-event-field select option {
  background: #2a2932 !important;
  color: #f0eeef !important;
  font-family: var(--lc-font-body);
}

.lc-event-field select option:checked {
  background: #4b4a52 !important;
  color: #ffffff !important;
}

.lc-event-field select:focus-visible {
  border-color: #edcf91;
  box-shadow: 0 0 0 1px rgba(237, 207, 145, 0.22);
}

@media (max-width: 640px) {
  .lc-event-field select {
    padding-right: 44px !important;
  }
}


/* Visible multi-select caviar grid */
.lc-event-field--product {
  gap: 16px;
}

.lc-event-field--product > legend {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 12px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: #edcf91;
  font: 300 14px/1.4 var(--lc-font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lc-product-picker__options--visible {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: none;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.lc-product-picker__options--visible .lc-product-option {
  display: grid;
  grid-template-columns: 20px 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(237, 207, 145, 0.28);
  background: rgba(22, 23, 26, 0.66);
  color: rgba(240, 238, 239, 0.82);
}

.lc-product-picker__options--visible .lc-product-option + .lc-product-option {
  border-top: 1px solid rgba(237, 207, 145, 0.28);
}

.lc-product-picker__options--visible .lc-product-option:hover,
.lc-product-picker__options--visible .lc-product-option:has(input:checked) {
  border-color: rgba(237, 207, 145, 0.72);
  background: rgba(237, 207, 145, 0.07);
  color: #edcf91;
}

.lc-product-picker__options--visible .lc-product-option input[type="checkbox"] {
  position: static;
  width: 18px !important;
  min-width: 18px;
  height: 18px;
  min-height: 18px !important;
  margin: 0;
  padding: 0 !important;
  border: 1px solid rgba(237, 207, 145, 0.72);
  border-radius: 0;
  background: #16171a;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.lc-product-picker__options--visible .lc-product-option input[type="checkbox"]:checked {
  border-color: #edcf91;
  background: #edcf91;
  box-shadow: inset 0 0 0 4px #16171a;
}

.lc-product-picker__options--visible .lc-product-option input[type="checkbox"]:focus-visible {
  outline: 1px solid #edcf91;
  outline-offset: 3px;
}

.lc-product-picker__options--visible .lc-product-option img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.lc-product-picker__options--visible .lc-product-option span {
  font: 300 14px/1.35 var(--lc-font-body);
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .lc-product-picker__options--visible {
    gap: 8px;
  }

  .lc-product-picker__options--visible .lc-product-option {
    grid-template-columns: 18px 36px minmax(0, 1fr);
    gap: 8px;
    min-height: 64px;
    padding: 8px;
  }

  .lc-product-picker__options--visible .lc-product-option img {
    width: 36px;
    height: 36px;
  }

  .lc-product-picker__options--visible .lc-product-option span {
    font-size: 12.5px;
  }
}
