/* =========================================================
   Contact Form 7 — Movel Caminhões theme skin
   Overrides the default CF7 styles to match the design system
   ========================================================= */

/* ---------- Wrapper / layout ---------- */
.wpcf7{
  /* Ensure the form fills its container */
  width: 100%;
}

/* CF7 wraps each field group in a <p>; flatten the extra spacing */
.wpcf7 form > p{
  margin: 0;
}

/* Single column layout */
.wpcf7 form{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-items: start;
}

/* Full-width overrides via CF7 admin class names */
.wpcf7 form > p:has(textarea),
.wpcf7 form > p:has(.wpcf7-acceptance),
.wpcf7 form > p.full,
.wpcf7 form > .wpcf7-response-output,
.wpcf7 form > p:last-of-type{
  grid-column: 1 / -1;
}

/* Fallback for browsers without :has() */
@supports not selector(:has(a)){
  .wpcf7 form > p{ grid-column: 1 / -1; }
}

/* ---------- Labels ---------- */
.wpcf7 label{
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: .45rem;
  cursor: pointer;
}

/* ---------- Text inputs, email, tel, number, url, date ---------- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="url"],
.wpcf7 input[type="date"],
.wpcf7 input[type="search"]{
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--body);
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: .8em 1em;
  height: 48px;
  transition: border-color .15s, box-shadow .15s;
  line-height: 1;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 input[type="number"]::placeholder,
.wpcf7 input[type="url"]::placeholder,
.wpcf7 input[type="date"]::placeholder,
.wpcf7 input[type="search"]::placeholder{
  color: var(--slate-2);
}

/* ---------- Select ---------- */
.wpcf7 select{
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--body);
  font-size: .95rem;
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%235B6675' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right .9em center;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: .8em 2.4em .8em 1em;
  height: 48px;
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer;
}

/* ---------- Textarea ---------- */
.wpcf7 textarea{
  width: 100%;
  font-family: var(--body);
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: .8em 1em;
  min-height: 140px;
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}

/* ---------- Focus states ---------- */
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus{
  outline: none;
  border-color: var(--vw-blue);
  box-shadow: 0 0 0 3px rgba(10,79,196,.12);
}

/* ---------- Checkbox / Radio ---------- */
.wpcf7 .wpcf7-list-item{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin: 0 1em .5em 0;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"]{
  width: 18px;
  height: 18px;
  accent-color: var(--vw-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.wpcf7 .wpcf7-list-item-label{
  font-family: var(--body);
  font-size: .93rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Acceptance (consent) ---------- */
.wpcf7 .wpcf7-acceptance{
  display: flex;
  align-items: flex-start;
  gap: .6em;
  font-size: .88rem;
  color: var(--slate);
  line-height: 1.45;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"]{
  margin-top: .1em;
}

/* ---------- wpcf7-form-control-wrap (field slot) ---------- */
.wpcf7-form-control-wrap{
  display: block;
  width: 100%;
}

/* ---------- Submit button ---------- */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.01em;
  padding: .95em 2.2em;
  border-radius: 999px;
  border: none;
  background: var(--vw-blue);
  color: #fff;
  box-shadow: var(--sh-blue);
  cursor: pointer;
  transition: background .22s ease, transform .22s ease, box-shadow .22s ease;
  height: auto;
  width: auto;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover{
  background: #0944ab;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(10,79,196,.38);
}

.wpcf7 input[type="submit"]:active,
.wpcf7 .wpcf7-submit:active{
  transform: translateY(0);
  box-shadow: var(--sh-blue);
}

.wpcf7 .wpcf7-submit:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Spinner ---------- */
.wpcf7-spinner{
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(10,79,196,.18);
  border-top-color: var(--vw-blue);
  border-radius: 50%;
  margin-left: .8rem;
  animation: cf7-spin .7s linear infinite;
  vertical-align: middle;
  background: none;
  opacity: 1;
}

form.submitting .wpcf7-spinner{
  display: inline-block;
  visibility: visible;
}

@keyframes cf7-spin{
  to{ transform: rotate(360deg); }
}

/* ---------- Validation error tip ---------- */
.wpcf7-not-valid-tip{
  display: block;
  margin-top: .35rem;
  font-family: var(--body);
  font-size: .8rem;
  font-weight: 500;
  color: #c62f2f;
}

/* Invalid field highlight */
.wpcf7-not-valid{
  border-color: #d23b3b !important;
  box-shadow: 0 0 0 3px rgba(210,59,59,.12) !important;
}

/* ---------- Response output banner ---------- */
.wpcf7 form .wpcf7-response-output{
  grid-column: 1 / -1;
  margin: .5rem 0 0;
  padding: 1rem 1.4rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2);
  font-family: var(--body);
  font-size: .93rem;
  line-height: 1.5;
  background: var(--mist-2);
  color: var(--ink);
}

/* Success */
.wpcf7 form.sent .wpcf7-response-output{
  background: #f0faf5;
  border-color: #1F8A5B;
  color: #145c3c;
}

/* Generic failure / aborted */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output{
  background: #fff5f5;
  border-color: #d23b3b;
  color: #8b1a1a;
}

/* Validation errors (user-side) */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output{
  background: #fffbec;
  border-color: #c9900a;
  color: #6b4a00;
}

/* Spam */
.wpcf7 form.spam .wpcf7-response-output{
  background: #fff5ec;
  border-color: #c96b0a;
  color: #6b3000;
}

/* Hidden while idle / resetting / submitting */
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output{
  display: none;
}

/* ---------- entry-content wrapper (page.php generic) ---------- */
/* When a CF7 form is rendered inside the generic page template,
   wrap it in a card-like container */
.entry-content .wpcf7{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: clamp(1.5rem, 3vw, 2.6rem);
  max-width: 720px;
  margin-inline: auto;
}

