/* ============================================================
   BOOK-YOUR-STALL.CSS  —  Automation Expo North 2026
   White form card sitting on a dark band, floating labels.
   ============================================================ */

:root {
  --stall-navy: #07091A;
  --stall-gold: #FFD700;
  --stall-red: #E63B2E;
  --stall-ink: #0a2540;
  --stall-line: #d9e2ec;
  --stall-muted: #6b7a90;
  --stall-radius: 10px;
}

/* ---------- Dark band behind the card --------------------- */
.stall-section {
  background: #01253f;
  padding: 70px 20px;
}

.stall-container {
  max-width: 880px;
  margin: 0 auto;
}

/* ---------- The white card -------------------------------- */
.stall-card {
  background: #fff;
  border-radius: var(--stall-radius);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  padding: 45px 40px 40px;
}

.stall-title {
  font-family: 'Roboto', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--stall-navy);
  text-align: center;
  margin: 0 0 10px;
}

.stall-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--stall-gold);
  margin: 14px auto 0;
  border-radius: 2px;
}

.stall-subtitle {
  font-size: 14px;
  color: var(--stall-muted);
  text-align: center;
  margin: 16px 0 28px;
}

/* ---------- Layout ---------------------------------------- */
.stall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stall-field-full {
  grid-column: 1 / -1;
}

/* ---------- Floating label field -------------------------- */
.stall-field {
  position: relative;
}

.stall-field input,
.stall-field textarea {
  width: 100%;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: var(--stall-ink);
  background: #fff;
  border: 1px solid var(--stall-line);
  border-radius: 8px;
  padding: 26px 14px 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.stall-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.stall-field label {
  position: absolute;
  left: 15px;
  top: 17px;
  font-size: 15px;
  color: var(--stall-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .18s ease, color .18s ease;
  background: transparent;
}

/* label floats up when the field has content or is focused */
.stall-field input:focus + label,
.stall-field textarea:focus + label,
.stall-field input:not(:placeholder-shown) + label,
.stall-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(.78);
  color: var(--stall-navy);
}

.stall-field input:focus,
.stall-field textarea:focus {
  border-color: var(--stall-navy);
  box-shadow: 0 0 0 3px rgba(7, 9, 26, 0.08);
}

/* autofill should not repaint the box blue */
.stall-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--stall-ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

.req {
  color: var(--stall-red);
}

/* red border only after the user has actually typed something wrong */
.stall-field input:not(:placeholder-shown):invalid {
  border-color: var(--stall-red);
}

/* ---------- Consent checkbox ------------------------------ */
.stall-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--stall-muted);
  cursor: pointer;
}

.stall-consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--stall-red);
  cursor: pointer;
}

/* ---------- Submit ---------------------------------------- */
.stall-submit-btn {
  width: 100%;
  margin-top: 22px;
  padding: 16px 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to right, #63005d, #01316f);
  border: 0;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}

.stall-submit-btn:hover {
  background: linear-gradient(to left, #63005d, #01316f);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.stall-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Status message from enquiry.js ---------------- */
.enquiry-msg {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.enquiry-msg.is-ok {
  background: #e8f6ec;
  border: 1px solid #b7e0c3;
  color: #1c6b34;
}

.enquiry-msg.is-error {
  background: #fdecea;
  border: 1px solid #f5c2bd;
  color: #a52318;
}

/* ---------- Honeypot: must stay invisible ----------------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- Mobile ---------------------------------------- */
@media (max-width: 767px) {
  .stall-section {
    padding: 45px 15px;
  }

  .stall-card {
    padding: 32px 20px 30px;
  }

  .stall-title {
    font-size: 22px;
  }

  .stall-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}