/* =========================================================
   BLOCO "FORMULÁRIO DE CONTACTO" — versão 2
   ========================================================= */

/* ---------- Cartões de acesso rápido ---------- */
.ct-quick { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.ct-quick.cols-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.ct-quick.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-quick.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-quick.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ct-quick-card { position: relative; display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 22px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0, 0, 0, .03); color: var(--text) !important; overflow: hidden; transition: transform .35s var(--ease, ease), box-shadow .35s, border-color .35s; transition-delay: var(--d, 0ms); }
.ct-quick-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease, ease); }
.ct-quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.ct-quick-card:hover::before { transform: scaleX(1); }
.ct-quick-ico { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); transition: background .3s, color .3s; }
.ct-quick-card:hover .ct-quick-ico { background: var(--accent); color: #fff; }
.ct-quick-body { display: flex; flex-direction: column; min-width: 0; }
.ct-quick-body small { font-family: var(--font-head); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ct-quick-body strong { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--heading); line-height: 1.4; margin-top: 4px; overflow-wrap: anywhere; }
.ct-quick-body em { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent-2); }

/* ---------- Formulário + informações ---------- */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(28px, 3.5vw, 44px); align-items: start; }
.ct-form-card { padding: clamp(26px, 3.4vw, 44px); border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 50px rgba(10, 30, 18, .07); }
.ct-form-head h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.25; text-transform: none; letter-spacing: -.01em; margin: 0 0 10px; }
.ct-form-head p { margin: 0; font-size: 15.5px; line-height: 1.8; }
.ct-form { margin-top: 28px; }
.ct-form .cf-field > span:first-child { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.ct-form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 4px; }
.ct-form-foot .btn { min-height: 50px; padding: 0 30px; }
.ct-privacy { flex: 1 1 240px; display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.ct-privacy svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.ct-privacy a { color: var(--accent) !important; text-decoration: underline; text-underline-offset: 2px; }

.ct-aside { display: grid; gap: 18px; position: sticky; top: 90px; }
.ct-aside-card { position: relative; overflow: hidden; padding: 30px 28px; border-radius: 18px; color: rgba(255, 255, 255, .86); background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000)); box-shadow: 0 24px 50px color-mix(in srgb, var(--accent) 28%, transparent); }
.ct-aside-card::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); pointer-events: none; }
.ct-aside-card h3 { color: #fff; font-size: 18px; margin: 0 0 22px; }
.ct-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.ct-list li { display: flex; gap: 14px; margin: 0; }
.ct-list .ct-ico { background: rgba(255, 255, 255, .12); color: #fff; }
.ct-ico { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.ct-list div { display: flex; flex-direction: column; min-width: 0; }
.ct-list small { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-bottom: 3px; }
.ct-list a, .ct-list span { color: #fff !important; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.ct-list a:hover { color: color-mix(in srgb, var(--accent-2) 60%, #fff) !important; }
.ct-social { position: relative; z-index: 1; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.ct-social small { display: block; font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-bottom: 10px; }
.ct-social div { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff !important; transition: background .2s, transform .2s; }
.ct-social a:hover { background: var(--accent-2); transform: translateY(-2px); }

.ct-wa { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--heading) !important; transition: border-color .25s, box-shadow .25s, transform .25s; }
.ct-wa:hover { border-color: #25d366; box-shadow: 0 14px 30px rgba(37, 211, 102, .18); transform: translateY(-2px); }
.ct-wa-ico { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; }
.ct-wa > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ct-wa strong { font-family: var(--font-head); font-size: 14.5px; line-height: 1.35; }
.ct-wa small { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ct-wa > svg { color: var(--muted); flex-shrink: 0; }

/* ---------- Mapa ---------- */
.ct-map { position: relative; margin-top: clamp(40px, 5vw, 64px); border-radius: 18px; overflow: hidden; border: 1px solid var(--border); line-height: 0; }
.ct-map iframe { display: block; width: 100%; height: 440px; border: 0; filter: grayscale(.15); }
html[data-theme="dark"] .ct-map iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.3); }
.ct-map-card { position: absolute; left: 24px; top: 24px; z-index: 1; display: flex; gap: 14px; max-width: 340px; padding: 18px 20px; border-radius: 14px; background: var(--surface); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); line-height: 1.5; }
.ct-map-card div { display: flex; flex-direction: column; min-width: 0; }
.ct-map-card strong { font-family: var(--font-head); font-size: 14.5px; color: var(--heading); }
.ct-map-card span:not(.ct-ico) { font-size: 13.5px; color: var(--text); margin-top: 2px; }
.ct-map-card a { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent-2) !important; }
html[data-theme="dark"] .ct-ico, html[data-theme="dark"] .ct-quick-ico { color: color-mix(in srgb, var(--accent) 45%, #9fe0b9); }
html[data-theme="dark"] .ct-list .ct-ico { color: #fff; }
html[data-theme="dark"] .ct-aside-card { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 80%, #000), color-mix(in srgb, var(--accent) 45%, #000)); box-shadow: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
    .ct-quick.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .ct-grid { grid-template-columns: minmax(0, 1fr); }
    .ct-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 720px) {
    .ct-quick.cols-2, .ct-quick.cols-3, .ct-quick.cols-4 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ct-quick-card { padding: 16px; align-items: center; }
    .ct-quick-body em { display: none; }
    .ct-aside { grid-template-columns: minmax(0, 1fr); }
    .ct-form-card { padding: 22px 18px; border-radius: 14px; }
    .ct-map iframe { height: 320px; }
    .ct-map-card { position: static; max-width: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--border); }
}
html[data-theme="dark"] .ct-privacy a, html[data-theme="dark"] .ct-privacy svg { color: color-mix(in srgb, var(--accent) 45%, #9fe0b9) !important; }
