/* ─── LB Clearances Booking Form ──────────────────────────────────────────
   Lives inside .lbc-contact__form (navy panel). Fields match the CF7
   form styling established in the theme's style.css.
   ─────────────────────────────────────────────────────────────────────── */

.lbc-bf {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Rows ────────────────────────────────────────────────────────────────── */

.lbc-bf__row {
  margin-bottom: 0.875rem;
}

.lbc-bf__row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem 1rem;
}

/* ── Labels ──────────────────────────────────────────────────────────────── */

.lbc-bf label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.65);
  margin-bottom: 0.4rem;
}

.lbc-bf__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
  font-size: 11px;
}

.lbc-bf label span[aria-hidden] {
  color: #ffc700;
}

/* ── Text inputs and textarea ─────────────────────────────────────────────── */

.lbc-bf input[type="text"],
.lbc-bf input[type="email"],
.lbc-bf input[type="tel"],
.lbc-bf input[type="date"],
.lbc-bf textarea {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  color: #333333;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lbc-bf input:focus,
.lbc-bf textarea:focus {
  border-color: #ffc700;
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.2);
}

.lbc-bf textarea {
  resize: vertical;
  min-height: 110px;
}

.lbc-bf input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.45;
  cursor: pointer;
}
.lbc-bf input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ── Slot picker ─────────────────────────────────────────────────────────── */

.lbc-bf__slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.lbc-bf__slots-hint,
.lbc-bf__slots-loading {
  grid-column: 1 / -1;
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: rgba(245, 245, 245, 0.5);
  font-style: italic;
}

.lbc-bf__slot {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.lbc-bf__slot:hover {
  background: rgba(255, 199, 0, 0.15);
  border-color: rgba(255, 199, 0, 0.6);
  color: #ffffff;
}

.lbc-bf__slot.is-selected {
  background: #ffc700;
  border-color: #ffc700;
  color: #002b5b;
  font-weight: 700;
}

/* ── Notices ─────────────────────────────────────────────────────────────── */

.lbc-bf__notice {
  padding: 0.75rem 1rem;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.lbc-bf__notice--error {
  background: rgba(204, 51, 51, 0.15);
  border: 1px solid rgba(204, 51, 51, 0.4);
  color: #ff9a9a;
}

.lbc-bf__notice--success {
  background: rgba(255, 199, 0, 0.1);
  border: 1px solid rgba(255, 199, 0, 0.4);
  color: #ffc700;
}

/* ── Submit button ─────────────────────────────────────────────────────────── */

.lbc-bf__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 2rem;
  background-color: #ffc700;
  color: #002b5b;
  border: 2px solid #ffc700;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.lbc-bf__submit:hover:not(:disabled) {
  background-color: transparent;
  color: #ffc700;
}

.lbc-bf__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner — CSS-only rotating ring */
.lbc-bf__submit-spinner[hidden] {
  display: none;
}

.lbc-bf__submit-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: lbc-bf-spin 0.7s linear infinite;
}

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

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .lbc-bf__row--2col {
    grid-template-columns: 1fr;
  }

  .lbc-bf__slots {
    grid-template-columns: 1fr;
  }
}
