/* ============================================================
   MaidForYou Contact Form — mfy-contact-form.css
   Brand: orange #f97316, slate dark #0f172a
   ============================================================ */

/* ── Root & fonts ── */
.mfycf-wrap {
  --mfy-orange:   #f97316;
  --mfy-orange-h: #ea6a08;
  --mfy-orange-lt:#fff7ed;
  --mfy-dark:     #0f172a;
  --mfy-slate:    #334155;
  --mfy-muted:    #64748b;
  --mfy-border:   #e2e8f0;
  --mfy-bg:       #f8fafc;
  --mfy-radius:   12px;

  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--mfy-dark);
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 0 40px;
  -webkit-tap-highlight-color: transparent;
}

/* ── Category question heading ── */
.mfycf-question {
  font-size: 15px;
  font-weight: 700;
  color: var(--mfy-dark);
  margin: 0 0 12px;
}

/* ── Category grid ── */
.mfycf-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

@media (max-width: 520px) {
  .mfycf-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mfycf-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 14px;
  background: #fff;
  border: 1.5px solid var(--mfy-border);
  border-radius: var(--mfy-radius);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--mfy-slate);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
  line-height: 1.3;
  touch-action: manipulation;
}

.mfycf-cat-btn:hover {
  border-color: var(--mfy-orange);
  background: var(--mfy-orange-lt);
  color: var(--mfy-orange);
}

.mfycf-cat-btn.active {
  border-color: var(--mfy-orange);
  background: var(--mfy-orange-lt);
  color: #c2410c;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.mfycf-cat-btn:active { transform: scale(0.97); }

.mfycf-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(249,115,22,0.10);
  flex-shrink: 0;
}

.mfycf-cat-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--mfy-orange);
}

/* ── Form layout ── */
#mfycf-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mfycf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .mfycf-row-2 { grid-template-columns: 1fr; }
}

/* ── Fields ── */
.mfycf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mfycf-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mfy-dark);
}

.mfycf-req  { color: var(--mfy-orange); }
.mfycf-optional { font-size: 11px; font-weight: 400; color: var(--mfy-muted); }

.mfycf-field input[type="text"],
.mfycf-field input[type="email"],
.mfycf-field input[type="tel"],
.mfycf-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--mfy-border);
  border-radius: var(--mfy-radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--mfy-dark);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  outline: none;
}

.mfycf-field input:focus,
.mfycf-field textarea:focus {
  border-color: var(--mfy-orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.mfycf-field input.invalid,
.mfycf-field textarea.invalid,
.mfycf-field select.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
}

.mfycf-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* ── Select ── */
.mfycf-select-wrap {
  position: relative;
}

.mfycf-select-wrap select {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 1.5px solid var(--mfy-border);
  border-radius: var(--mfy-radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--mfy-dark);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.mfycf-select-wrap select:focus {
  border-color: var(--mfy-orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.mfycf-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  color: var(--mfy-muted);
}

/* ── Dropzone ── */
.mfycf-dropzone {
  border: 2px dashed var(--mfy-border);
  border-radius: var(--mfy-radius);
  background: var(--mfy-bg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.mfycf-dropzone:hover,
.mfycf-dropzone.drag-over {
  border-color: var(--mfy-orange);
  background: var(--mfy-orange-lt);
}

.mfycf-dropzone:focus { outline: none; box-shadow: 0 0 0 3px rgba(249,115,22,0.18); }

.mfycf-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.mfycf-upload-icon {
  width: 28px;
  height: 28px;
  color: var(--mfy-muted);
  margin: 0 auto 8px;
  display: block;
}

.mfycf-drop-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--mfy-slate);
  margin: 0 0 4px;
}

.mfycf-drop-hint {
  font-size: 12px;
  color: var(--mfy-muted);
  margin: 0;
}

.mfycf-file-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mfy-slate);
}

.mfycf-file-preview svg { color: var(--mfy-orange); flex-shrink: 0; }

.mfycf-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #ef4444;
  padding: 2px;
  margin-left: auto;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

/* ── Errors ── */
.mfycf-err {
  font-size: 12px;
  font-weight: 500;
  color: #ef4444;
  min-height: 16px;
}

/* ── Alerts ── */
.mfycf-alert {
  padding: 12px 16px;
  border-radius: var(--mfy-radius);
  font-size: 13px;
  font-weight: 500;
}
.mfycf-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* ── Submit button ── */
.mfycf-submit-btn {
  width: 100%;
  padding: 15px 24px;
  background: var(--mfy-orange);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(249,115,22,0.30);
  touch-action: manipulation;
  margin-top: 4px;
}

.mfycf-submit-btn:hover  { background: var(--mfy-orange-h); box-shadow: 0 6px 20px rgba(249,115,22,0.35); }
.mfycf-submit-btn:active { transform: scale(0.98); }
.mfycf-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ── Spinner ── */
.mfycf-spinner {
  width: 18px;
  height: 18px;
  animation: mfycf-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes mfycf-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Success state ── */
.mfycf-success {
  text-align: center;
  padding: 48px 24px;
  animation: mfycf-fade-up 0.4s ease-out both;
}

.mfycf-success svg {
  width: 56px;
  height: 56px;
  stroke: #16a34a;
  margin: 0 auto 16px;
  display: block;
}

.mfycf-success h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--mfy-dark);
  margin: 0 0 8px;
}

.mfycf-success p {
  font-size: 14px;
  color: var(--mfy-muted);
  margin: 0;
}

/* ── Honeypot — completely hidden ── */
.mfycf-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ── Animations ── */
@keyframes mfycf-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mfycf-wrap *, .mfycf-wrap *::before, .mfycf-wrap *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── File list (multi-upload) ── */
.mfycf-file-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mfycf-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--mfy-orange-lt);
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-size: 13px;
  color: var(--mfy-slate);
}

.mfycf-file-item svg { flex-shrink: 0; color: var(--mfy-orange); }

.mfycf-file-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.mfycf-file-item-size {
  font-size: 11px;
  color: var(--mfy-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.mfycf-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #ef4444;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background 0.1s;
}

.mfycf-file-remove:hover { background: #fee2e2; }

/* ── Attachment notice ── */
.mfycf-attachment-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--mfy-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}
