/* ============================================================================
   contact.css  —  Stili della pagina Contatti (Falkem Swiss)
   Coerenti con la palette del sito: arancione #ff7900, blu #407be3,
   grigio testo #787878, scuro #3c3c3c. Layout responsive con flexbox.
   ============================================================================ */

.cf-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 6px 0 24px;
}
.cf-info { flex: 1 1 280px; min-width: 260px; }
.cf-form { flex: 2 1 420px; min-width: 280px; }

.cf-h {
  font-family: 'calibribold', Arial, sans-serif;
  color: #ff7900;
  font-size: 24px;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d9d9d9;
}

/* --- Colonna informazioni --- */
.cf-item { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.cf-info p, .cf-info a {
  font-family: 'ubunturegular', Arial, sans-serif;
  color: #787878; font-size: 15px; line-height: 1.6; margin: 0;
}
.cf-info a { color: #407be3; text-decoration: none; }
.cf-info a:hover { color: #ff7900; }
.cf-label { font-weight: bold; color: #3c3c3c; display: block; margin-bottom: 2px; }

/* --- Form --- */
.cf-field { margin-bottom: 16px; }
.cf-field label {
  display: block;
  font-family: 'ubunturegular', Arial, sans-serif;
  color: #787878; font-size: 14px; margin-bottom: 6px;
}
.cf-field .req { color: #ff7900; }
.cf-field input,
.cf-field textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: 'ubunturegular', Arial, sans-serif;
  font-size: 15px; color: #333;
  background: #f3f3f3;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  padding: 11px 12px;
  transition: border-color .2s, background .2s;
}
.cf-field input:focus,
.cf-field textarea:focus { outline: none; border-color: #407be3; background: #fff; }
.cf-field textarea { min-height: 140px; resize: vertical; }

.cf-field.cf-invalid input,
.cf-field.cf-invalid textarea { border-color: #d33; background: #fff6f6; }
.cf-err { display: none; color: #d33; font-size: 13px; margin-top: 5px; }
.cf-field.cf-invalid .cf-err { display: block; }

.cf-two { display: flex; gap: 16px; flex-wrap: wrap; }
.cf-two .cf-field { flex: 1 1 200px; }

/* Honeypot anti-spam: nascosto agli umani, visibile ai bot */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-submit {
  font-family: 'Inter', 'ubunturegular', Arial, sans-serif;
  font-weight: 600; font-size: 15px; color: #fff;
  background: var(--orange, #e2823f);
  border: none; border-radius: 8px;
  padding: 13px 30px; cursor: pointer;
  transition: all .2s ease;
}
.cf-submit:hover {
  background: var(--orange-d, #c96e2c);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(226,130,63,.34);
}

.cf-privacy {
  margin: 14px 0 0;
  max-width: 560px;
  color: #6d7480;
  font-family: 'Inter', 'ubunturegular', Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
}
.cf-privacy a {
  color: var(--blue, #407be3);
  font-weight: 600;
  text-decoration: none;
}
.cf-privacy a:hover { color: var(--orange, #ff7900); }

.cf-status {
  margin-top: 16px; padding: 12px 14px; border-radius: 4px;
  font-family: 'ubunturegular', Arial, sans-serif; font-size: 14px;
  display: none;
}
.cf-status.ok  { display: block; background: #eaf6ea; color: #2e7d32; border: 1px solid #b6dab6; }
.cf-status.err { display: block; background: #fff1f1; color: #c62828; border: 1px solid #f0bcbc; }

/* select fields (category / request type) — match input styling */
.cf-field select {
  width: 100%;
  box-sizing: border-box;
  font-family: 'ubunturegular', Arial, sans-serif;
  font-size: 15px; color: #333;
  background: #f3f3f3;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  padding: 11px 12px;
  transition: border-color .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237b8493' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.cf-field select:focus { outline: none; border-color: #407be3; background-color: #fff; }
.cf-field.cf-invalid select { border-color: #d33; background-color: #fff6f6; }

/* contact info icons rendered as inline SVG */
.cf-ico { color: var(--orange, #e2823f); display: inline-flex; align-items: center; flex: 0 0 auto; }
.cf-ico .ico-svg { width: 20px; height: 20px; }

/* context prefill note */
.cf-prefill-note { margin: 0 0 16px; padding: 11px 14px; border-radius: 8px;
  background: #fff7ed; border: 1px solid var(--orange-soft, #f2cba6); color: var(--orange-d, #c96e2c);
  font-family: 'Inter', 'ubunturegular', Arial, sans-serif; font-size: 13.5px; line-height: 1.55; }
.cf-prefill-note[hidden] { display: none; }

/* neutral status (e.g. "Sending…") */
.cf-status.info { display: block; background: #eef4fb; color: #2d4a68; border: 1px solid #cdddee; }

@media (max-width: 768px) {
  .cf-wrap { gap: 26px; }
  .cf-h { font-size: 22px; }
}
