/* ------------------------------------------------------------------
   AcQuote - richiesta di quotazione personalizzata
   Leonardo Network S.r.l.
------------------------------------------------------------------ */

.acquote,
.acquote__overlay {
  --acq-primary: #1e3a70;
  --acq-ink: #1c2434;
  --acq-muted: #6b7280;
  --acq-line: #cbd3e1;
  --acq-line-hover: #9aa8c2;
  --acq-line-soft: #e2e6ee;
  --acq-danger: #c0392b;
  --acq-radius: 10px;
}

.acquote { margin-top: 1rem; }

/* --- Pulsante -------------------------------------------------- */

.acquote__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: .95rem 1.25rem;
  background: #fff;
  color: var(--acq-primary);
  border: 2px solid var(--acq-primary);
  border-radius: var(--acq-radius);
  font: inherit;
  font-weight: 700;
  font-style: italic;
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.acquote__trigger:hover,
.acquote__trigger:focus-visible {
  background: var(--acq-primary);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5);
}

.acquote__trigger:focus-visible { outline: 3px solid rgba(30, 58, 112, .35); outline-offset: 2px; }

.acquote__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.acquote__hint {
  margin: .55rem 0 0;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--acq-muted);
  text-align: center;
}

/* --- Overlay + dialog ------------------------------------------- */

.acquote__overlay[hidden] { display: none; }

.acquote__overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
  background: rgba(16, 22, 36, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: acq-fade .18s ease-out;
}

.acquote__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: auto;
  padding: 2rem 2rem 1.75rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 70px -20px rgba(10, 16, 30, .55);
  animation: acq-rise .22s cubic-bezier(.22, 1, .36, 1);
  text-align: left;
}

@keyframes acq-fade { from { opacity: 0; } }
@keyframes acq-rise { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  .acquote__overlay, .acquote__dialog { animation: none; }
}

.acquote__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--acq-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.acquote__close:hover { background: #f2f4f8; color: var(--acq-ink); }
.acquote__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* --- Testata ---------------------------------------------------- */

.acquote__eyebrow {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acq-primary);
  opacity: .75;
}

.acquote__title {
  margin: .35rem 0 0;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
  font-style: italic;
  color: var(--acq-ink);
  text-transform: none;
}

.acquote__intro {
  margin: .6rem 0 0;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--acq-muted);
}

/* --- Riepilogo prodotto ------------------------------------------ */

.acquote__product {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .75rem;
  margin: 1.25rem 0 1.5rem;
  padding: .85rem 1rem;
  background: #f7f4ee;
  border-left: 3px solid var(--acq-primary);
  border-radius: 0 var(--acq-radius) var(--acq-radius) 0;
}

.acquote__product-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--acq-muted);
  width: 100%;
}

.acquote__product-name { font-size: .95rem; color: var(--acq-ink); font-style: italic; }
.acquote__product-ref { font-size: .8125rem; color: var(--acq-muted); }

/* --- Form -------------------------------------------------------- */

.acquote__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1rem;
}

.acquote__field { min-width: 0; }
.acquote__field--full { grid-column: 1 / -1; }

.acquote__field label {
  display: block;
  margin-bottom: .35rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--acq-ink);
}
.acquote__field label span { color: var(--acq-danger); }

/* Selettori con [type] espliciti: alzano la specificita' quanto basta
   per battere le regole su input/.form-control di theme.css. */
.acquote__overlay .acquote__field input[type="text"],
.acquote__overlay .acquote__field input[type="email"],
.acquote__overlay .acquote__field input[type="tel"],
.acquote__overlay .acquote__field input,
.acquote__overlay .acquote__field textarea {
  display: block;
  width: 100%;
  padding: .75rem .9rem;
  font: inherit;
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--acq-ink);
  background: #fff;
  border: 1px solid var(--acq-line);
  border-radius: 8px;
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
  max-width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.acquote__overlay .acquote__field textarea { resize: vertical; min-height: 120px; }

.acquote__overlay .acquote__field input:hover,
.acquote__overlay .acquote__field textarea:hover {
  border-color: var(--acq-line-hover);
}

.acquote__overlay .acquote__field input:focus,
.acquote__overlay .acquote__field textarea:focus {
  outline: none;
  border-color: var(--acq-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 112, .14);
}

.acquote__overlay .acquote__field input::placeholder,
.acquote__overlay .acquote__field textarea::placeholder {
  color: #9aa2b1;
  opacity: 1;
  font-style: italic;
}

.acquote__overlay .acquote__field.is-invalid input,
.acquote__overlay .acquote__field.is-invalid textarea {
  border-color: var(--acq-danger);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .10);
}

.acquote__error {
  display: none;
  margin-top: .3rem;
  font-size: .75rem;
  color: var(--acq-danger);
}
.acquote__error.is-visible { display: block; }

/* honeypot */
.acquote__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Consenso ---------------------------------------------------- */

.acquote__consent { margin-top: 1.25rem; }

.acquote__checkbox {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--acq-muted);
  cursor: pointer;
  margin: 0;
}
.acquote__overlay .acquote__checkbox input[type="checkbox"] {
  margin-top: .15rem;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  accent-color: var(--acq-primary);
  cursor: pointer;
}
.acquote__checkbox a { color: var(--acq-primary); text-decoration: underline; }

/* --- Turnstile ---------------------------------------------------- */

.acquote__turnstile {
  margin-top: 1.25rem;
  min-height: 65px;
}
.acquote__turnstile iframe { max-width: 100%; }

/* --- Messaggi globali -------------------------------------------- */

.acquote__feedback {
  display: none;
  margin-top: 1rem;
  padding: .7rem .9rem;
  font-size: .8125rem;
  color: var(--acq-danger);
  background: #fdecea;
  border-radius: 8px;
}
.acquote__feedback.is-visible { display: block; }

/* --- Azioni ------------------------------------------------------ */

.acquote__actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--acq-line-soft);
}

.acquote__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 150px;
  padding: .8rem 1.4rem;
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .15s ease, background .15s ease;
}

.acquote__btn--primary { background: var(--acq-primary); color: #fff; }
.acquote__btn--primary:hover { opacity: .9; color: #fff; }
.acquote__btn--ghost { background: transparent; color: var(--acq-ink); border-color: var(--acq-line); }
.acquote__btn--ghost:hover { background: #f2f4f8; color: var(--acq-ink); border-color: var(--acq-line-hover); }
.acquote__btn[disabled] { opacity: .6; cursor: progress; }

.acquote__spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: acq-spin .7s linear infinite; }
.acquote__btn.is-loading .acquote__spinner { display: inline-block; }
@keyframes acq-spin { to { transform: rotate(360deg); } }

/* --- Successo ----------------------------------------------------- */

.acquote__success[hidden] { display: none; }
.acquote__success { text-align: center; padding: 1.5rem 0 .5rem; }
.acquote__success-icon {
  width: 56px; height: 56px; margin-bottom: 1rem;
  padding: 14px; border-radius: 50%;
  background: #e8f6ee; color: #1e7d4f;
  fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.acquote__success h3 { margin: 0 0 .5rem; font-size: 1.25rem; font-style: italic; color: var(--acq-ink); }
.acquote__success p { margin: 0 0 1.5rem; color: var(--acq-muted); font-size: .9375rem; }

/* --- Mobile -------------------------------------------------------- */

@media (max-width: 575px) {
  .acquote__overlay { padding: 0; }
  .acquote__dialog { border-radius: 0; min-height: 100%; padding: 1.75rem 1.25rem 1.25rem; }
  .acquote__grid { grid-template-columns: 1fr; }
  .acquote__actions { flex-direction: column-reverse; }
  .acquote__btn { width: 100%; }
  .acquote__title { font-size: 1.25rem; }
}

/* blocca lo scroll di fondo quando la finestra è aperta */
body.acquote-open { overflow: hidden; }