.frn-returns-form {
  margin-top: var(--section-gap);
  padding-top: var(--section-gap);
  border-top: 1px solid #e8e8e8;
}

.frn-returns-form__title {
  font-size: var(--fz-h2);
  margin-bottom: 8px;
}

.frn-returns-form__intro {
  font-size: var(--fz-body);
  color: var(--cTextLight);
  margin-bottom: 24px;
}

.frn-returns-form label {
  font-size: var(--fz-small);
  font-weight: 600;
}

/* Fields follow the registration form (48px, theme border and radius, ink
   focus) instead of the Bootstrap .form-control defaults the markup carries. */
.frn-returns-form .form-control {
  height: 48px;
  padding: 0 var(--spaceLeftS);
  border: 1px solid var(--bdcPrimary);
  border-radius: var(--bdrsPrimary);
  font-size: var(--fz-14);
  color: var(--cBlack);
  background-color: var(--cWhite);
}

.frn-returns-form .form-control::placeholder {
  color: var(--cTextLight);
}

.frn-returns-form .form-control:focus {
  border-color: var(--cBlack);
  box-shadow: 0 0 0 3px rgba(26, 27, 26, .08);
  outline: none;
}

.frn-returns-form select.form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  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 fill='%231a1b1a' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.frn-returns-form textarea.form-control {
  height: auto;
  min-height: 132px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

.frn-returns-form .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
}

.frn-returns-form .form-check-inline {
  display: inline-flex;
  margin-right: 24px;
}

.frn-returns-form .form-check-input {
  position: static;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--cBlack);
  cursor: pointer;
}

.frn-returns-form .form-check-label {
  margin: 0;
  cursor: pointer;
}

.frn-returns-form__required {
  color: var(--cDanger, #ee4719);
}

.frn-returns-form__hint {
  font-size: var(--fz-small);
  color: var(--cTextLight);
}

/* Honeypot: visually removed, still submittable by naive bots */
.frn-returns-form__website-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* Visually hidden but still focusable and natively validatable (no-JS). */
.frn-returns-form__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Scoped twice: the theme's .frn-button (width: 100%, display: flex !important)
   loads after module CSS; fit-content shrinks the block-level flex box. */
.frn-returns-form .frn-returns-form__file-button {
  width: fit-content;
  margin: 0 0 6px;
  font-size: var(--fz-body);
  font-weight: 500;
  cursor: pointer;
}

.frn-returns-form__file-input:focus-visible + .frn-returns-form__file-button {
  border-color: var(--cBlack);
  box-shadow: 0 0 0 3px rgba(26, 27, 26, .08);
}

.frn-returns-form__file-input.is-invalid + .frn-returns-form__file-button {
  border-color: var(--cError, #c4320a);
}

.frn-returns-form__file-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: var(--fz-small);
  color: var(--cTextLight);
}

.frn-returns-form__file-list li {
  padding: 2px 0;
}

.frn-returns-form__radio-group .frn-returns-form__radio-label {
  display: block;
  margin-bottom: 6px;
}

.frn-returns-form__radio-group .form-check-label {
  font-weight: 400;
}

/* The message itself is the theme's shared field-error component (classic_child
   custom.css, "Form Error Styling"), which lays it out with display:flex
   !important — hence !important here to keep a hidden message hidden. */
.frn-returns-form__field-error[hidden] {
  display: none !important;
}

/* Invalid fields look like every other storefront form's: red border and
   halo, no Bootstrap in-field icon, labels stay in the text colour. */
.frn-returns-form .form-control.is-invalid,
.frn-returns-form .form-control.is-invalid:focus {
  border-color: var(--cError, #c4320a);
  box-shadow: 0 0 0 2px rgba(196, 50, 10, 0.15);
  background-image: none;
}

.frn-returns-form .form-check-input.is-invalid ~ .form-check-label {
  color: inherit;
}

.frn-returns-form__privacy {
  margin-top: 16px;
}

.frn-returns-form__privacy label {
  font-weight: 400;
}

/* Multi-line consent text: keep the box on the first line; the JS-added error
   wraps onto its own line, aligned with the text. */
.frn-returns-form__privacy.form-check {
  align-items: flex-start;
  flex-wrap: wrap;
}

.frn-returns-form__privacy .frn-returns-form__field-error {
  flex-basis: 100%;
  padding-left: 26px;
}

.frn-returns-form__privacy .form-check-input {
  margin-top: 2px;
}

.frn-returns-form__privacy .form-check-label {
  flex: 1 1 0;
  min-width: 0;
}

.frn-returns-form__submit {
  min-width: 200px;
  font-size: var(--fz-button);
}

.frn-returns-form__alert[hidden],
.frn-returns-form__success[hidden] {
  display: none;
}

/* custom.css forces .form-error visible (!important), which exposes the
 * phone-lt.js error container while it's empty — hide it until it has text */
.frn-returns-form .phone-lt-error:empty {
  display: none !important;
}
