/* Custom Product Enquiry Form — exact match to reference image */

#cpe-form-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #333;
}

/* ── Each row ──────────────────────────────────────────────────────────── */
.cpe-row {
  margin-bottom: 12px;
}

/* ── Two-column row ────────────────────────────────────────────────────── */
.cpe-two-col {
  display: flex;
  gap: 12px;
}
.cpe-col {
  flex: 1;
  min-width: 0;
}

/* ── All field styles — input / select / textarea ──────────────────────── */
.cpe-field {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  color: #444;
  background-color: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  outline: none;
  transition: border-color .15s, background .15s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.cpe-field::placeholder { color: #aaa; }

.cpe-field:focus {
  border-color: #f0a500;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(240,165,0,.10);
}

.cpe-field.error-field { border-color: #e53e3e !important; }

/* ── Textarea ──────────────────────────────────────────────────────────── */
.cpe-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

/* ── Select wrapper (for custom arrow) ────────────────────────────────── */
.cpe-sel-wrap { position: relative; }

.cpe-select { padding-right: 40px; cursor: pointer; }
.cpe-select:disabled { color: #bbb; cursor: not-allowed; background: #f5f5f5; }

.cpe-arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #aaa;
  pointer-events: none;
  line-height: 1;
}

/* ── Loading spinner inside select ────────────────────────────────────── */
.cpe-spin {
  display: none;
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px; height: 13px;
  border: 2px solid #ddd;
  border-top-color: #f0a500;
  border-radius: 50%;
  animation: cpe-spin .65s linear infinite;
}
.cpe-spin.on { display: block; }

@keyframes cpe-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ── Inline error ──────────────────────────────────────────────────────── */
.cpe-err {
  display: block;
  min-height: 14px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #e53e3e;
}

/* ── Submit button — ORANGE PILL ───────────────────────────────────────── */
.cpe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #fff;
  background: #f0a500;
  border: 2px solid #f0a500;
  border-radius: 50px;
  cursor: pointer;
  outline: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
  white-space: nowrap;
}

.cpe-btn:hover {
  background: #d49200;
  border-color: #d49200;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(240,165,0,.35);
}

.cpe-btn:active { transform: translateY(0); box-shadow: none; }
.cpe-btn:disabled { background: #ccc; border-color: #ccc; cursor: not-allowed; transform: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cpe-two-col { flex-direction: column; }
  .cpe-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .cpe-field, .cpe-select { font-size: 16px; } /* prevent iOS zoom */
}
