/* =========================
   RESET + VAR
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #215ba4;
  --primary-dark: #0052cc;
  --primary-light: #3385ff;
  --secondary-color: #215ba4;

  --text-dark: #1a1a1a;
  --text-light: #666666;
  --text-white: #ffffff;

  --background-light: #f8f9fa89;
  --background-white: #f8f9fa89;
  --border-color: #e5e5e5;

  --success-color: #10b981;
  --error-color: #ef4444;
  --overlay-dark: rgba(0, 0, 0, 0.6);

  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --container-max-width: 1200px;
  --header-height: 80px;
  --page-gutter: 24px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-dark);
  background: var(--background-light);
  overflow-x: hidden;
  padding: 0;
}

/* ✅ bloquear scroll quando menu mobile abre */
body.no-scroll {
  overflow: hidden;
}

/* =========================
   BG OVERLAY
========================= */
.background-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.05;
  z-index: -2;
  pointer-events: none;
}

.background-overlay:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0, transparent 50%);
  z-index: -1;
}

/* =========================
   CONTAINERS
========================= */
.container,
.site-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);

  background: rgba(255, 255, 255);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  z-index: 1000;

  transition:
    background var(--transition-base),
    box-shadow var(--transition-base),
    backdrop-filter var(--transition-base);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.65);
}

.header-content {
  display: grid;
  grid-template-columns: auto 1fr auto auto; /* logo | nav | cta | burger */
  align-items: center;
  height: var(--header-height);
  gap: var(--spacing-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
}

/* NAV (desktop) */
.nav {
  justify-self: center;
}

/* Agrupador dos links (desktop) */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
}

/* Links */
.nav-link {
  position: relative;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition-base);
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active:not(.nav-link-cta) {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* CTA à direita (desktop) */
.header-cta {
  justify-self: end;
}

/* CTA do menu (mobile) começa escondido em desktop */
.nav-link-cta {
  display: none;
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   HERO PARALLAX
========================= */
.hero-parallax {
  position: relative;

  height: 100vh;
  padding-top: var(--header-height);
  box-sizing: border-box;

  background-image: url("../content/images/hero.webp");
  background-size: cover;
  background-repeat: no-repeat;

  /* imagem um pouco mais para a direita */
  background-position: 60% 100%;

  /* parallax desktop */
  background-attachment: fixed;
}

/* overlay opcional para legibilidade do texto */
.hero-parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

/* conteúdo por cima do background */
.hero-parallax-content {
  position: relative;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  padding-left: clamp(16px, 6vw, 72px);
  padding-right: 16px;
}

.hero-parallax-text {
  max-width: 20ch;
  text-align: left;

  color: #fff;
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(28px, 3.2vw, 56px);

  text-shadow: 0 8px 26px rgba(0,0,0,0.45);
}

.hero-parallax-text .line-2 {
  word-spacing: 0.15em;
  display: inline-block;
}

/* =========================
   TABLET (iPad) — ajustar hero
========================= */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-parallax {
    background-position: 50% 58%;
    background-attachment: scroll;
  }

  .hero-parallax-content {
    align-items: flex-start;
    padding-top: clamp(110px, 16vh, 10px);
    padding-left: clamp(18px, 5vw, 60px);
  }

  .hero-parallax-text {
    font-size: clamp(45px, 4.2vw, 54px);
    line-height: 1.12;
    max-width: 26ch;
  }
}

@media (max-width: 768px) {
  .hero-parallax {
    background-image: url("../content/images/hero-mobile.webp");
    background-attachment: scroll;

    background-size: cover;
    background-position: 60% top;

    height: 100vh;
    padding-top: var(--header-height);
  }

  .hero-parallax-content {
    align-items: flex-start;
    justify-content: flex-start;

    padding-top: clamp(48px, 12vh, 110px);
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-parallax-text {
    text-align: left;

    font-size: clamp(25px, 9vw, 52px);
    line-height: 1.32;

    font-weight: 900;
    letter-spacing: 0.02em;

    max-width: none;

    color: #ffffff;
    text-shadow: 0 8px 28px rgba(0,0,0,0.55);
  }
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 0;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-family);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0, var(--primary-dark) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
  background: var(--background-white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* =========================
   SECTIONS
========================= */
section {
  padding: var(--spacing-3xl) 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================
   INSURANCE (CARDS) — ATUALIZADO
   - cards mais pequenos
   - tudo centrado
   - ícone sem fundo (só azul)
   - ícones e texto maiores
========================= */
.insurance-section {
  background: var(--background-white);
}

.insurance-grid {
  display: grid;

  /* cards mais compactos */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;

  /* centrado e com “limite” para não esticar demasiado */
  max-width: 920px;
  margin: 0 auto;

  /* garante alinhamento visual */
  justify-items: center;
  align-items: start;
}

.insurance-card {
  width: 100%;
  max-width: 260px;          /* card mais pequeno */
  min-height: 180px;

  background: rgba(255,255,255,0.92);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);

  padding: 22px 18px;
  text-align: center;

  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.insurance-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* ÍCONE: sem background */
.insurance-card-icon {
  width: auto;
  height: auto;
  background: transparent;     /* remove o quadrado atrás */
  border-radius: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 14px;

  /* lucide usa currentColor */
  color: var(--primary-color);
}

/* força o tamanho/espessura do lucide dentro dos cards */
.insurance-card-icon svg,
.insurance-card-icon i {
  width: 46px !important;
  height: 46px !important;
}

/* lucide real fica como svg, então afinamos aqui */
.insurance-card-icon svg {
  stroke: currentColor;
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.insurance-card-title {
  font-size: 28px;            /* texto maior */
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}

/* =========================
   BENEFITS
========================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.benefit-item {
  text-align: center;
  padding: var(--spacing-lg);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0, rgba(0, 82, 204, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: all var(--transition-base);
}

.benefit-item:hover .benefit-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--primary-color) 0, var(--primary-dark) 100%);
  color: var(--text-white);
}

.benefit-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.benefit-description {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* =========================
   FAQ
========================= */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--background-white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: none;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  font-family: var(--font-family);
  transition: all var(--transition-base);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--primary-color);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.7;
}

/* =========================
   CONTACT
========================= */
.contact-section {
  background: var(--background-white);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-2xl);
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
}

.contact-info-item {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  align-items: flex-start;
}

.info-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.info-value {
  color: var(--text-light);
  line-height: 1.6;
}

.contact-form-wrapper {
  background: var(--background-light);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-family);
  transition: all var(--transition-base);
  background: var(--background-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  color: var(--error-color);
  font-size: 14px;
  margin-top: 4px;
  display: none;
}

.error-message.show {
  display: block;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--error-color);
}

.success-message {
  text-align: center;
  padding: var(--spacing-xl);
}

.success-message h3 {
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.success-message p {
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--text-white);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

/* ✅ REMOVE BULLETS APENAS NO FOOTER */
.footer ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer li::marker {
  content: "";
}

/* ✅ BOTÃO "CONTACTO" SEM ESTILO DEFAULT / SEM SUBLINHADO */
.footer button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer button:hover,
.footer button:focus {
  text-decoration: none;
  outline: none;
}

/* Mantém o teu footer-bottom como está */
.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* =========================
   ANIMS
========================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   RESPONSIVE (NAVBAR FULLSCREEN)
========================= */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --spacing-3xl: 64px;
    --spacing-2xl: 48px;
  }

  .header-content {
    grid-template-columns: 1fr auto; /* logo ocupa o espaço, burger à direita */
    gap: 12px;
  }

  .header-cta {
    display: none;
  }

  /* ✅ MENU FULL SCREEN (sem overflow horizontal) */
  .nav {
    display: none; /* <- evita criar 2ª linha */
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;

    /* ✅ evita "100vw" (que causa scroll horizontal em mobile) */
    width: 100%;
    max-width: 100%;

    height: calc(100vh - var(--header-height));

    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    padding: var(--spacing-lg);
    padding-top: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* ✅ em vez de translateX(100%) */
    right: -100%;
    opacity: 0;
    pointer-events: none;

    transition: right var(--transition-base), opacity var(--transition-base);
    z-index: 999;
  }

  .nav.active {
    display: flex; /* <- só aparece quando abres o menu */
    right: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .nav-link {
    padding: 14px 0;
    text-align: center;
    font-size: 16px;
  }

  /* ✅ Simular vira botão no menu */
  .nav-link-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 10px;
    padding: 14px 18px;

    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0, var(--primary-dark) 100%);
    color: var(--text-white);

    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.35);
    font-weight: 700;
    text-decoration: none;
  }

  .nav-link-cta::after { content: none !important; }

  .nav-link-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 102, 255, 0.42);
  }

  .mobile-menu-toggle {
    display: flex;
    justify-self: end;
    z-index: 1000;
  }

  .logo-image { height: 32px; }

  .section-title { font-size: 32px; }
  .section-subtitle { font-size: 16px; }

  /* seguros mobile */
  .insurance-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}



/* =======================================================================
   SEGURO AUTO (FORM PROFISSIONAL) — (SIMULAÇÃO)
   ======================================================================= */

/* ✅ Mini hero do seguro-auto */
.quote-hero {
  padding-top: calc(var(--header-height) + var(--spacing-xl));
  padding-bottom: var(--spacing-lg);
}

.quote-hero__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.quote-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;
  border-radius: 999px;

  border: 1px solid rgba(0, 102, 255, 0.18);
  background: rgba(0, 102, 255, 0.08);

  color: var(--primary-dark);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.quote-hero__title {
  margin-top: 12px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  color: var(--text-dark);
}

.quote-hero__subtitle {
  margin-top: 10px;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  font-size: 16px;
}

/* Página do form */
.quote-form-page {
  padding: 0 0 var(--spacing-3xl);
}

.form-card {
  max-width: 980px;
  margin: 0 auto;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(229, 229, 229, 0.9);
  border-radius: 18px;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
  padding: clamp(18px, 3vw, 36px);
}

.form-card__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--spacing-lg);
}

.form-card__header h2 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.form-card__header p { color: var(--text-light); }

/* Secções */
.form-section {
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  border-top: 1px solid rgba(229, 229, 229, 0.9);
}

.form-section:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.form-section__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-section__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.form-section__desc {
  font-size: 13px;
  color: var(--text-light);
}

/* Grid */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.q-col-12 { grid-column: span 12; }
.q-col-8  { grid-column: span 8; }
.q-col-6  { grid-column: span 6; }
.q-col-4  { grid-column: span 4; }
.q-col-3  { grid-column: span 3; }

/* Campos */
.q-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.q-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.req {
  margin-left: 4px;
  color: var(--primary-color);
  font-weight: 800;
}

/* Inputs */
.q-field input,
.q-field select,
.q-field textarea {
  width: 100%;
  padding: 12px 14px;

  border: 2px solid rgba(229, 229, 229, 0.95);
  border-radius: 12px;

  background: #fff;
  font-size: 15px;
  font-family: var(--font-family);

  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.q-field input::placeholder,
.q-field textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.q-field input:focus,
.q-field select:focus,
.q-field textarea:focus {
  outline: none;
  border-color: rgba(0, 102, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.14);
}

.q-field input:focus {
  transform: translateY(-1px);
}

/* Hint/Erro */
.q-hint {
  margin-top: -2px;
  font-size: 12px;
  color: var(--text-light);
}

.q-error {
  display: none;
  font-size: 13px;
  color: var(--error-color);
}

.q-error.show { display: block; }

.q-field input.error,
.q-field select.error,
.q-field textarea.error {
  border-color: rgba(239, 68, 68, 0.85);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

/* Ações */
.form-actions {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;

  border-top: 1px solid rgba(229, 229, 229, 0.9);
}

.form-status {
  font-size: 14px;
  color: var(--text-light);
}

.form-status.success {
  color: var(--success-color);
  font-weight: 700;
}

.form-status.error {
  color: var(--error-color);
  font-weight: 700;
}

.quote-submit { min-width: 220px; }

/* Painéis por categoria */
.category-panel { display: none; }
.category-panel.active { display: block; }

/* ===== CATEGORIAS (SEM ÍCONES) — BARRA SHRINK-TO-FIT ===== */
.quote-categories {
  display: inline-flex;
  width: max-content;
  max-width: 100%;

  align-items: center;
  gap: 12px;

  padding: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);

  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.quote-cat {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;
  width: max-content;

  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 14px;

  background: transparent;
  color: var(--text-dark);

  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;

  cursor: pointer;

  transition:
    transform var(--transition-base),
    background var(--transition-base),
    border-color var(--transition-base);

  white-space: nowrap;
}

.quote-cat:hover {
  background: rgba(0, 102, 255, 0.06);
  border-color: rgba(0, 102, 255, 0.12);
}

.quote-cat.active,
.quote-cat[aria-selected="true"] {
  background: rgba(0, 102, 255, 0.10);
  border-color: rgba(0, 102, 255, 0.18);
}

.quote-cat::after { content: none !important; }

@media (max-width: 768px) {
  .quote-hero {
    padding-top: calc(var(--header-height) + var(--spacing-lg));
    padding-bottom: var(--spacing-md);
  }

  .form-card { border-radius: 16px; }

  .q-col-8,
  .q-col-6,
  .q-col-4,
  .q-col-3 { grid-column: span 12; }

  .quote-submit { width: 100%; }

  .form-actions { align-items: stretch; }

  .quote-categories {
    gap: 10px;
    padding: 12px;
  }

  .quote-cat {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* =========================
   CONTACT ICONS — sem fundo + ícone azul
========================= */
.contact-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;

  position: relative;
}

/* acento discreto */
.contact-icon::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);

  width: 28px;
  height: 3px;
  border-radius: 999px;

  background: linear-gradient(135deg, var(--primary-color) 20%, #000 100%);
  opacity: 0.9;
}

.contact-icon svg,
.contact-icon .lucide-icon {
  width: 30px;
  height: 30px;
  display: block;

  color: var(--primary-color);
}

.contact-icon svg {
  stroke: currentColor;
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* =========================
   PRIVACY CHECKBOX (CONTACT FORM)
========================= */
.form-check { gap: 8px; }

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  color: var(--text-light);
  line-height: 1.4;
}

.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary-color);
}

.check-label a {
  color: var(--primary-color);
  text-decoration: underline;
}

.check-label a:hover { opacity: 0.9; }

#privacy.error {
  outline: 2px solid rgba(239, 68, 68, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}


/* =========================
   CONTACT FORM HEADER — apenas mobile
========================= */
.contact-form-mobile-header {
  display: none;
}

@media (max-width: 768px) {
  /* remover o texto por baixo de "Contactos" no mobile */
  #contact .section-header .section-subtitle {
    display: none;
  }

  /* mostrar + centrar o header por cima do form */
  .contact-form-mobile-header {
    display: block;           /* ✅ faltava isto */
    text-align: center;
    margin: 18px 0 14px;      /* espaço antes do form */
  }

  .contact-form-mobile-header h3 {
    text-align: center;
    margin-bottom: 6px;
    font-size: 26px;
  }

  .contact-form-mobile-header p {
    text-align: center;
    margin: 0 auto;
    max-width: 34ch;
    color: var(--text-light);
  }
}
