/*! Gierre Cars · Preventivo multi-step per Contact Form 7 · v1.0.0 */
.gc-quote-ui {
  --gc-red: #d32f2f;
  --gc-red-dark: #b71c1c;
  --gc-red-soft: #fdf1f1;
  --gc-ink: #1f2124;
  --gc-mute: #5f6368;
  --gc-faint: #9aa0a6;
  --gc-line: #d3d6da;
  --gc-bg-soft: #f5f6f8;
  --gc-ok: #2e7d32;
  --gc-wa: #1da851;
  --gc-r: 4px;
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: 30px 40px 26px;
  background: #fff;
  color: var(--gc-ink);
  border-top: 5px solid var(--gc-red);
  border-radius: var(--gc-r);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}
.gc-quote-ui *, .gc-quote-ui *::before, .gc-quote-ui *::after { box-sizing: border-box; }
.gc-quote-ui .is-hidden { display: none !important; }
.gc-quote-ui .gc-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Reset di base contro gli stili del tema e di CF7 */
.gc-quote-ui fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.gc-quote-ui p { margin: 0; }
.gc-quote-ui label { display: block; margin: 0; font-weight: inherit; }
.gc-quote-ui .wpcf7-form-control-wrap { display: block; position: relative; }
.gc-quote-ui .wpcf7-form-control .wpcf7-list-item { display: block; margin: 0; }
.gc-quote-ui .wpcf7-spinner { display: none; }
.gc-quote-ui .gc-ico { display: block; flex: none; width: 20px; height: 20px; }

/* ---------- Testata ---------- */
.gc-quote-head h2 {
  margin: 0 0 8px; padding: 0;
  font-family: inherit; font-size: 24px; font-weight: 800; line-height: 1.2;
  letter-spacing: -.01em; color: var(--gc-ink); text-transform: none;
}
.gc-quote-head p { font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--gc-mute); }

/* ---------- Avanzamento ---------- */
.gc-quote-ui .gc-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  list-style: none; margin: 20px 0 22px; padding: 0;
}
.gc-quote-ui .gc-steps li {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 0 0;
  border-top: 3px solid #e3e5e8;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gc-faint); transition: color .2s, border-color .2s;
}
.gc-quote-ui .gc-steps li::before { display: none; }
.gc-quote-ui .gc-steps li span {
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: #d5d8dc; color: #fff; font-size: 10px; letter-spacing: 0;
}
.gc-quote-ui .gc-steps li.is-active { color: var(--gc-ink); border-color: var(--gc-red); }
.gc-quote-ui .gc-steps li.is-done { color: var(--gc-mute); border-color: var(--gc-red); }
.gc-quote-ui .gc-steps li.is-active span,
.gc-quote-ui .gc-steps li.is-done span { background: var(--gc-red); }

/* ---------- Step ---------- */
.gc-quote-ui.gc-js .gc-step:not(.is-active) { display: none; }
.gc-quote-ui:not(.gc-js) .gc-steps,
.gc-quote-ui:not(.gc-js) .gc-next,
.gc-quote-ui:not(.gc-js) .gc-prev,
.gc-quote-ui:not(.gc-js) .gc-alt-send { display: none; }
.gc-quote-ui:not(.gc-js) .gc-step + .gc-step { margin-top: 24px; }
.gc-quote-ui.gc-js .gc-step.is-active { animation: gc-in .25s ease; }
@keyframes gc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.gc-quote-ui .gc-group { margin: 0 0 18px; }
.gc-quote-ui .gc-label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 9px;
  font-size: 14px; font-weight: 700; color: var(--gc-ink);
}
.gc-quote-ui .gc-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gc-red);
}
.gc-quote-ui .gc-dot-o::before { background: transparent; box-shadow: inset 0 0 0 2px var(--gc-red); }
.gc-quote-ui .gc-field-label { margin: 0 0 7px; font-size: 14px; font-weight: 700; color: var(--gc-ink); }
.gc-quote-ui .gc-field-label em { font-style: normal; font-weight: 400; color: var(--gc-mute); }

/* ---------- Campi ---------- */
.gc-quote-ui input[type="text"],
.gc-quote-ui input[type="tel"],
.gc-quote-ui input[type="email"],
.gc-quote-ui input[type="date"],
.gc-quote-ui select,
.gc-quote-ui textarea {
  display: block; width: 100%; height: 46px; margin: 0; padding: 0 12px;
  background: #fff; color: var(--gc-ink);
  border: 1px solid var(--gc-line); border-radius: var(--gc-r); box-shadow: none; outline: 0;
  font: inherit; font-size: 15px; line-height: 1.3;
  transition: border-color .15s, box-shadow .15s;
}
.gc-quote-ui textarea { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; }
.gc-quote-ui select {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f2124' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
}
.gc-quote-ui input[type="date"] { padding-right: 10px; }
.gc-quote-ui input::placeholder, .gc-quote-ui textarea::placeholder { color: var(--gc-faint); opacity: 1; }
.gc-quote-ui input:focus, .gc-quote-ui select:focus, .gc-quote-ui textarea:focus {
  border-color: var(--gc-red); box-shadow: 0 0 0 3px rgba(211, 47, 47, .14);
}
.gc-quote-ui .gc-invalid,
.gc-quote-ui .wpcf7-not-valid { border-color: var(--gc-red) !important; background-color: #fffafa; }
.gc-quote-ui .wpcf7-not-valid-tip { margin-top: 5px; font-size: 13px; font-weight: 600; color: var(--gc-red); }
.gc-quote-ui .gc-choice .wpcf7-not-valid-tip { grid-column: 1 / -1; }

.gc-quote-ui .gc-row2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; }

/* ---------- Scelte a card (radio CF7) ---------- */
.gc-quote-ui .gc-choice label { position: relative; cursor: pointer; }
.gc-quote-ui .gc-choice input[type="radio"] {
  position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0;
}
.gc-quote-ui .gc-choice .wpcf7-list-item-label {
  display: flex; align-items: center; gap: 12px; margin: 0; height: 100%;
  background: #fff; color: var(--gc-ink);
  border: 1px solid var(--gc-line); border-radius: var(--gc-r);
  font-weight: 700; line-height: 1.2;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.gc-quote-ui .gc-choice .wpcf7-list-item-label::before,
.gc-quote-ui .gc-choice .wpcf7-list-item-label::after { display: none; }
.gc-quote-ui .gc-choice .gc-ico { color: var(--gc-mute); transition: color .15s; }
.gc-quote-ui .gc-choice label:hover .wpcf7-list-item-label { border-color: #aeb3b9; }
.gc-quote-ui .gc-choice input:checked + .wpcf7-list-item-label {
  border-color: var(--gc-red); background: var(--gc-red-soft); box-shadow: inset 0 0 0 1px var(--gc-red);
}
.gc-quote-ui .gc-choice input:checked + .wpcf7-list-item-label .gc-ico { color: var(--gc-red); }
.gc-quote-ui .gc-choice input:focus-visible + .wpcf7-list-item-label { outline: 2px solid var(--gc-red); outline-offset: 2px; }
.gc-quote-ui .gc-choice small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--gc-mute); }

/* Luogo: 2 card affiancate */
.gc-quote-ui .gc-seg .wpcf7-radio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gc-quote-ui .gc-seg .wpcf7-list-item-label { min-height: 52px; padding: 9px 14px; font-size: 15px; }
.gc-quote-ui .gc-seg .gc-ico { width: 22px; height: 22px; }

/* Veicolo: griglia 3×2 */
.gc-quote-ui .gc-cats .wpcf7-radio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gc-quote-ui .gc-cats .wpcf7-list-item-label {
  flex-direction: column; justify-content: center; gap: 6px;
  min-height: 86px; padding: 12px 6px; text-align: center; font-size: 14px;
}
.gc-quote-ui .gc-cats .gc-ico { width: 46px; height: 28px; stroke-width: 1.6; }
.gc-quote-ui .gc-scooter-link { margin: 10px 2px 0; font-size: 13px; color: var(--gc-mute); }
.gc-quote-ui .gc-scooter-link a { color: var(--gc-red); font-weight: 600; text-decoration: underline; }

/* Chip */
.gc-quote-ui .gc-chips .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-quote-ui .gc-chips .wpcf7-list-item-label {
  gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.gc-quote-ui .gc-chips .gc-ico { width: 17px; height: 17px; }

/* ---------- Durata, errori, riepilogo ---------- */
.gc-quote-ui .gc-days {
  display: flex; align-items: center; gap: 8px; margin: -4px 0 16px; padding: 9px 12px;
  background: var(--gc-bg-soft); border-radius: var(--gc-r); font-size: 14px; color: var(--gc-mute);
}
.gc-quote-ui .gc-days b { color: var(--gc-ink); }
.gc-quote-ui .gc-days .gc-ico { width: 17px; height: 17px; color: var(--gc-red); }
.gc-quote-ui .gc-days-note { margin: -10px 2px 16px; font-size: 11px; line-height: 1.35; color: var(--gc-mute); }

.gc-quote-ui .gc-err {
  margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--gc-red);
  background: var(--gc-red-soft); border-radius: var(--gc-r);
  font-size: 14px; font-weight: 600; color: var(--gc-red-dark);
}

.gc-quote-ui .gc-recap {
  margin: 0 0 18px; padding: 4px 14px; background: var(--gc-bg-soft); border-radius: var(--gc-r); font-size: 14px;
}
.gc-quote-ui .gc-recap:empty { display: none; }
.gc-quote-ui .gc-recap-row {
  display: grid; grid-template-columns: 92px 1fr auto; align-items: baseline; gap: 10px; padding: 8px 0;
}
.gc-quote-ui .gc-recap-row + .gc-recap-row { border-top: 1px solid #e4e6e9; }
.gc-quote-ui .gc-recap-row span { color: var(--gc-mute); }
.gc-quote-ui .gc-recap-row b { font-weight: 700; }
.gc-quote-ui .gc-edit {
  padding: 0; background: none; border: 0; box-shadow: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--gc-red); text-decoration: underline;
}

/* ---------- Pulsanti ---------- */
.gc-quote-ui .gc-btn,
.gc-quote-ui input.wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; margin: 0; padding: 0 24px;
  background: var(--gc-red); color: #fff;
  border: 0; border-radius: var(--gc-r);
  box-shadow: 0 8px 22px rgba(211, 47, 47, .32);
  font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  line-height: 1; text-decoration: none; cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: background-color .15s, transform .1s, box-shadow .15s;
}
.gc-quote-ui .gc-btn:hover, .gc-quote-ui input.wpcf7-submit:hover { background: var(--gc-red-dark); color: #fff; }
.gc-quote-ui .gc-btn:active, .gc-quote-ui input.wpcf7-submit:active { transform: translateY(1px); }
.gc-quote-ui .gc-btn:focus-visible, .gc-quote-ui input.wpcf7-submit:focus-visible { outline: 3px solid rgba(211, 47, 47, .35); outline-offset: 2px; }
.gc-quote-ui .gc-btn .gc-ico { width: 18px; height: 18px; stroke-width: 2.2; }
.gc-quote-ui .gc-btn-block { display: flex; width: 100%; }
.gc-quote-ui .gc-btn-wa { background: var(--gc-wa); box-shadow: 0 8px 22px rgba(29, 168, 81, .3); letter-spacing: .02em; text-transform: none; }
.gc-quote-ui .gc-btn-wa:hover { background: #168a42; }
form.submitting .gc-quote-ui input.wpcf7-submit,
form[data-status="submitting"] .gc-quote-ui input.wpcf7-submit { opacity: .65; cursor: progress; }

.gc-quote-ui .gc-nav { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.gc-quote-ui .gc-nav .gc-btn, .gc-quote-ui .gc-nav input.wpcf7-submit { flex: 1; }
.gc-quote-ui .gc-back, .gc-quote-ui .gc-link-btn {
  height: 52px; padding: 0 6px; background: none; border: 0; box-shadow: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--gc-mute); white-space: nowrap;
}
.gc-quote-ui .gc-back:hover, .gc-quote-ui .gc-link-btn:hover { color: var(--gc-ink); background: none; }

.gc-quote-ui .gc-micro {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 16px;
  font-size: 13px; font-weight: 600; color: var(--gc-mute);
}
.gc-quote-ui .gc-micro > span { display: inline-flex; align-items: center; gap: 6px; }
.gc-quote-ui .gc-micro .gc-ico { width: 14px; height: 14px; stroke-width: 2.6; color: var(--gc-ok); }

/* ---------- Privacy ---------- */
.gc-quote-ui .gc-check { margin: 0 0 18px; }
.gc-quote-ui .gc-check label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.gc-quote-ui .gc-check input[type="checkbox"] {
  flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gc-red); cursor: pointer;
}
.gc-quote-ui .gc-check .wpcf7-list-item-label { margin: 0; font-size: 13px; line-height: 1.5; color: var(--gc-mute); }
.gc-quote-ui .gc-check a { color: var(--gc-ink); text-decoration: underline; }

.gc-quote-ui .gc-alt-send { margin-top: 14px; text-align: center; font-size: 14px; color: var(--gc-mute); }
.gc-quote-ui .gc-alt-send a { font-weight: 700; color: var(--gc-wa); text-decoration: underline; }

/* ---------- Messaggio di CF7 (errori di invio) ---------- */
.wpcf7 form .gc-quote-ui .wpcf7-response-output {
  margin: 14px 0 0; padding: 10px 12px; border: 0; border-left: 3px solid var(--gc-red);
  background: var(--gc-red-soft); border-radius: var(--gc-r);
  font-size: 14px; font-weight: 600; color: var(--gc-red-dark);
}
.wpcf7 form.sent .gc-quote-ui .wpcf7-response-output,
.wpcf7 form.init .gc-quote-ui .wpcf7-response-output,
.wpcf7 form.resetting .gc-quote-ui .wpcf7-response-output,
.wpcf7 form.submitting .gc-quote-ui .wpcf7-response-output { display: none; }

/* ---------- Conferma ---------- */
.gc-quote-ui .gc-done { display: none; text-align: center; }
.gc-quote-ui.is-sent > :not(.gc-done) { display: none !important; }
.gc-quote-ui.is-sent .gc-done { display: block; animation: gc-in .3s ease; }
.gc-quote-ui .gc-done-ico {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 6px auto 14px;
  border-radius: 50%; background: #e8f5e9; color: var(--gc-ok);
}
.gc-quote-ui .gc-done-ico .gc-ico { width: 32px; height: 32px; stroke-width: 2.4; }
.gc-quote-ui .gc-done h3 { margin: 0 0 8px; font-family: inherit; font-size: 23px; font-weight: 800; color: var(--gc-ink); outline: 0; }
.gc-quote-ui .gc-done > p { margin: 0 0 18px; color: var(--gc-mute); line-height: 1.55; }
.gc-quote-ui .gc-done > p small { font-size: 13px; }
.gc-quote-ui .gc-done .gc-recap { text-align: left; }
.gc-quote-ui .gc-done .gc-recap-row { grid-template-columns: 92px 1fr; }
.gc-quote-ui .gc-link-btn { display: block; margin: 6px auto 0; height: 40px; text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .gc-quote-ui { padding: 24px 18px 20px; }
  .gc-quote-head h2 { font-size: 21px; }
  .gc-quote-head p { font-size: 14px; }
  .gc-quote-ui .gc-steps li { font-size: 11px; letter-spacing: .05em; gap: 6px; }
  .gc-quote-ui .gc-seg .wpcf7-list-item-label { gap: 9px; padding: 9px 10px; font-size: 14px; }
  .gc-quote-ui .gc-seg small { font-size: 12px; }
  .gc-quote-ui .gc-row2 { grid-template-columns: 1.3fr 1fr; gap: 8px; }
  .gc-quote-ui .gc-cats .wpcf7-radio { grid-template-columns: repeat(2, 1fr); }
  .gc-quote-ui .gc-btn, .gc-quote-ui input.wpcf7-submit { font-size: 14px; letter-spacing: .04em; padding: 0 16px; }
  .gc-quote-ui .gc-recap-row { grid-template-columns: 1fr auto; }
  .gc-quote-ui .gc-recap-row span { grid-column: 1 / -1; font-size: 12px; margin-bottom: -6px; }
  .gc-quote-ui .gc-done .gc-recap-row { grid-template-columns: 1fr; }
}
