/* ==========================================================
   Order form styles. Load AFTER styles.css:
   <link rel="stylesheet" href="styles.css">
   <link rel="stylesheet" href="form.css">
   Uses the same color and font variables as styles.css.
   ========================================================== */

.order-form fieldset {
  border: 1px solid rgba(31, 58, 95, 0.3);
  border-radius: var(--radius);
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem 1.25rem;
  min-width: 0;
}

.order-form legend {
  font-family: var(--font-heading);
  font-weight: bold;
  color: var(--color-primary);
  padding: 0 0.5rem;
}

/* Smaller question groups (Yes/No questions, sizes) inside a section */
.order-form fieldset.question {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

.order-form fieldset.question legend {
  padding: 0;
  color: var(--color-text);
}

.field,
.field-row {
  margin-bottom: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.field-row .field {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"] {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid #7a7a7a;
  border-radius: var(--radius);
}

.order-form input:focus-visible,
.order-form button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Radio buttons and checkboxes in a wrapping row, with big tap targets */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--font-heading);
}

.choices input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0;
}

.money {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.money input {
  max-width: 10rem;
}

/* Spam trap: moved off-screen, not display:none, so bots still fill it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.order-form button.button {
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}

/* Messages shown after the form is sent */
.notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

.notice[hidden] {
  display: none;
}

.notice-ok {
  background: #e3f4e6;
  border: 1px solid #2e7d32;
}

.notice-error {
  background: #fdeaea;
  border: 1px solid var(--color-accent);
}

.thanks {
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .field-row.two {
    grid-template-columns: 1fr 1fr;
  }
}
