/* ══════════════════════════════════════════════════════════════
   ORDER SECTION
══════════════════════════════════════════════════════════════ */

/* Honeypot — visually hidden but not display:none so bots interact with it */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
#order {
  padding: var(--section-py) 0;
  background: var(--bg-alt);
}
.form-container {
  max-width: 780px;
}

/* ── Form steps ──────────────────────────────────────────────── */
.form-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.1rem;
}
.form-step-highlight {
  border-color: var(--accent);
  background: #fffaf5;
  box-shadow: 0 0 0 3px var(--accent-pale);
}
.step-legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
  /* Override browser default fieldset legend behavior */
  float: none;
  width: auto;
  padding: 0;
}
.step-legend-accent { color: #8a6030; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.step-num-accent {
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
}

/* ── Fields ──────────────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.form-field:last-child  { margin-bottom: 0; }
.form-row .form-field   { margin-bottom: 0; }

label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-pale);
}
input.invalid,
select.invalid,
textarea.invalid {
  border-color: #d94040;
  box-shadow: 0 0 0 3px rgba(217, 64, 64, 0.1);
}
textarea { resize: vertical; min-height: 80px; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239A8F85' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ── Color swatches (balloon shape) ─────────────────────────── */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.5rem 0 1rem;
}
.swatch {
  width: 2rem;
  height: 2.65rem;
  border-radius: 50%;          /* ellipse body */
  border: 2.5px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform var(--ease), box-shadow var(--ease);
  outline: none;
  flex-shrink: 0;
  margin-bottom: 0.5rem;       /* space for knot */
}
/* Balloon knot — small triangle at the bottom */
.swatch::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background-color: inherit;
  clip-path: polygon(20% 0%, 80% 0%, 50% 100%);
}
.swatch:hover { transform: scale(1.12); }
.swatch:focus-visible {
  box-shadow: 0 0 0 3px var(--accent);
}
.swatch.selected {
  box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--accent);
  transform: scale(1.08);
}
/* Tooltip */
.swatch-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.65rem;
  white-space: nowrap;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}
.swatch:hover .swatch-tooltip,
.swatch.selected .swatch-tooltip {
  opacity: 1;
}

/* ── Occasion buttons ────────────────────────────────────────── */
.occasion-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.occasion-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  color: var(--text);
  background: transparent;
  transition: all var(--ease);
  letter-spacing: 0.02em;
}
.occasion-btn:hover { border-color: var(--accent); color: var(--accent); }
.occasion-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Inspired by ─────────────────────────────────────────────── */
.inspired-field { margin-bottom: 1.25rem; }
.inspired-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.inspired-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.inspired-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inspired-thumb .remove-ref {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.inspired-thumb .remove-ref:hover { background: rgba(200,30,30,0.85); }

/* ── Upload zone ─────────────────────────────────────────────── */
.viz-pitch {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}
.viz-pitch strong { color: #8a6030; }

.upload-zone {
  border: 2px dashed var(--accent);
  border-radius: var(--r-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(196, 150, 90, 0.04);
  transition: background var(--ease), border-color var(--ease);
  cursor: pointer;
}
.upload-zone.drag-over {
  background: rgba(196, 150, 90, 0.12);
}
#f-room-photos { display: none; }
.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.upload-icon  { font-size: 2.2rem; line-height: 1; }
.upload-text  { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.upload-hint  { font-size: 0.73rem; color: var(--muted); }

.upload-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  justify-content: center;
}
.preview-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-thumb .remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.62);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.preview-thumb .remove-btn:hover { background: rgba(200, 30, 30, 0.85); }

/* Upload zone highlight (from viz CTA scroll) */
.upload-zone.highlight {
  animation: zone-flash 0.7s ease 2;
}
@keyframes zone-flash {
  0%,100% { background: rgba(196, 150, 90, 0.04); }
  50%      { background: rgba(196, 150, 90, 0.18); border-color: var(--accent-dark); }
}

/* ── Submit ──────────────────────────────────────────────────── */
.form-submit {
  text-align: center;
  padding-top: 0.75rem;
}
.form-submit .btn-primary {
  min-width: 210px;
  gap: 0.6rem;
}
.btn-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-note {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Result messages ─────────────────────────────────────────── */
.form-result {
  margin-top: 1.75rem;
  text-align: center;
  background: #fff;
  border: 1.5px solid #5aaa5a;
  border-radius: var(--r-lg);
  padding: 2.25rem 1.5rem;
}
.form-result-error { border-color: #d94040; }
.result-icon { font-size: 2.75rem; margin-bottom: 0.75rem; line-height: 1; }
.form-result h3 { margin-bottom: 0.5rem; }
.form-result p  { color: var(--muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1rem; }
