/* ═══════════════════════════════════════════════════════
   FORMULÁRIO DE CONTACTO PREMIUM v1.0
   #083A41 · #D1C18B · Glassmorphism
   ═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --p:        #083A41;
  --p-mid:    #0d5560;
  --p-light:  #1a7a85;
  --p-deep:   #052830;
  --s:        #D1C18B;
  --s-light:  #e2d5a8;
  --s-dk:     #a89660;
  --s-muted:  rgba(209,193,139,.14);
  --white:    #ffffff;
  --glass:    rgba(255,255,255,.68);
  --glass-hv: rgba(255,255,255,.84);
  --glass-bd: rgba(255,255,255,.58);
  --blur:     blur(18px);
  --blur-sm:  blur(10px);
  --bg:       linear-gradient(135deg,#e8f2f3 0%,#f0ebe0 50%,#e4eef0 100%);
  --txt:      #111827;
  --txt-s:    #374151;
  --muted:    #6b7280;
  --muted-lt: #9ca3af;
  --sh:       0 4px 20px rgba(8,58,65,.08),0 2px 6px rgba(8,58,65,.04);
  --sh-hv:    0 16px 48px rgba(8,58,65,.16),0 4px 14px rgba(8,58,65,.08);
  --sh-teal:  0 8px 28px rgba(8,58,65,.22);
  --r:        18px;
  --r-lg:     22px;
  --pill:     100px;
  --ease:     cubic-bezier(.4,0,.2,1);
  --spring:   cubic-bezier(.34,1.56,.64,1);
}

/* ── Base ───────────────────────────────────────── */
.ctt-wrap {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  padding: 48px 0 72px;
  position: relative;
}
.ctt-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: -1;
  pointer-events: none;
}
.ctt-wrap::after {
  content: '';
  position: fixed;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(8,58,65,.07) 0%,transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ── Cabeçalho Hero ─────────────────────────────── */
.ctt-header {
  position: relative;
  background: var(--p);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 16px 48px rgba(8,58,65,.3), 0 4px 14px rgba(8,58,65,.14);
}
.ctt-header-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(209,193,139,.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 0%,   rgba(255,255,255,.06) 0%, transparent 55%);
  pointer-events: none;
}
.ctt-header::before {
  content: '';
  position: absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.2),rgba(209,193,139,.3),transparent);
}
.ctt-header::after {
  content: '';
  position: absolute; bottom:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg,transparent,rgba(209,193,139,.4),transparent);
}
.ctt-header-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 22px;
  padding: 30px 36px;
  flex-wrap: wrap;
}
.ctt-header-ico-box {
  width: 60px; height: 60px;
  border-radius: 17px; flex-shrink: 0;
  background: rgba(209,193,139,.15);
  border: 1.5px solid rgba(209,193,139,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--s);
  box-shadow: 0 6px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.15);
}
.ctt-header-txt { flex: 1; min-width: 200px; }
.ctt-header-txt h2 {
  font-size: 22px !important; font-weight: 800 !important;
  color: #fff !important; margin: 0 0 7px !important;
}
.ctt-header-txt p {
  font-size: 13.5px !important; color: rgba(255,255,255,.65) !important;
  margin: 0 !important; line-height: 1.55 !important;
}
.ctt-header-badges {
  display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap;
}
.ctt-hbadge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--pill);
  font-size: 12px; font-weight: 700; letter-spacing: .2px;
}
.ctt-hbadge-mail {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}
.ctt-hbadge-wa {
  background: rgba(22,163,74,.2);
  color: #86efac;
  border: 1px solid rgba(22,163,74,.3);
}

/* ── Secções ────────────────────────────────────── */
.ctt-section {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--sh);
  animation: fadeUp .35s var(--ease) both;
}
.ctt-section:nth-child(1) { animation-delay: .06s; }
.ctt-section:nth-child(2) { animation-delay: .12s; }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

.ctt-section-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 24px;
  background: linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,255,255,.2));
  border-bottom: 1px solid rgba(255,255,255,.5);
}
.ctt-sn {
  width: 28px; height: 28px;
  background: var(--p); color: var(--s);
  font-size: 11px; font-weight: 900;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: .3px;
  box-shadow: 0 3px 8px rgba(8,58,65,.25);
}
.ctt-sl {
  font-size: 12.5px; font-weight: 800; color: var(--p);
  text-transform: uppercase; letter-spacing: .8px;
}

/* ── Grid de campos ─────────────────────────────── */
.ctt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 22px 24px;
}
.ctt-g { display: flex; flex-direction: column; gap: 7px; }
.ctt-full { grid-column: 1/-1; }

.ctt-g label {
  font-size: 12.5px; font-weight: 700;
  color: var(--p); letter-spacing: .15px;
}
.ctt-g label span { color: #ef4444; margin-left: 2px; }
.ctt-g label em {
  font-size: 11px; font-weight: 400;
  color: var(--muted-lt); font-style: normal; margin-left: 5px;
}

.ctt-g input,
.ctt-g textarea,
.ctt-g .ctt-select {
  padding: 13px 16px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--txt);
  outline: none;
  width: 100%; box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(8,58,65,.05), inset 0 1px 0 rgba(255,255,255,.95);
  transition: all .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.ctt-g input:hover, .ctt-g textarea:hover, .ctt-g .ctt-select:hover {
  background: rgba(255,255,255,.88); border-color: rgba(8,58,65,.12);
}
.ctt-g input:focus, .ctt-g textarea:focus, .ctt-g .ctt-select:focus {
  background: rgba(255,255,255,.96); border-color: var(--p);
  box-shadow: 0 0 0 4px rgba(8,58,65,.1), inset 0 1px 0 #fff;
}
.ctt-g input.er, .ctt-g textarea.er, .ctt-g .ctt-select.er {
  border-color: #f87171;
  box-shadow: 0 0 0 4px rgba(239,68,68,.09);
}
.ctt-g textarea { resize: vertical; min-height: 140px; line-height: 1.65; }

/* Select custom arrow */
.ctt-select-wrap { position: relative; }
.ctt-select-wrap::after {
  content: '';
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  pointer-events: none;
}
.ctt-g .ctt-select { padding-right: 38px; cursor: pointer; }

/* Campo telefone com prefixo */
.ctt-phone-wrap {
  display: flex; align-items: center; gap: 0;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(8,58,65,.05), inset 0 1px 0 rgba(255,255,255,.95);
  transition: all .2s;
}
.ctt-phone-wrap:focus-within {
  border-color: var(--p);
  background: rgba(255,255,255,.96);
  box-shadow: 0 0 0 4px rgba(8,58,65,.1), inset 0 1px 0 #fff;
}
.ctt-phone-prefix {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 14px;
  background: rgba(8,58,65,.06);
  border-right: 1px solid rgba(8,58,65,.1);
  font-size: 13px; font-weight: 700; color: var(--p);
  white-space: nowrap; flex-shrink: 0;
}
.ctt-phone-input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 13px 14px !important;
}
.ctt-phone-note {
  font-size: 11.5px; color: var(--muted-lt);
  display: flex; align-items: center; gap: 4px;
  margin-top: 2px;
}
.ctt-chars {
  font-size: 12px; color: var(--muted-lt);
  text-align: right; margin-top: 3px;
}

/* ── Sucesso ────────────────────────────────────── */
.ctt-ok {
  text-align: center;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(209,193,139,.4);
  border-radius: var(--r-lg);
  padding: 56px 36px;
  margin-bottom: 16px;
  box-shadow: 0 12px 40px rgba(209,193,139,.14);
  animation: fadeUp .4s var(--ease);
}
.ctt-ok-ring {
  width: 80px; height: 80px;
  background: rgba(22,163,74,.08);
  border: 2px solid rgba(22,163,74,.2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 38px; margin-bottom: 20px;
}
.ctt-ok h3 {
  font-size: 24px !important; font-weight: 800 !important;
  color: var(--p) !important; margin: 0 0 10px !important;
}
.ctt-ok > p {
  font-size: 15px !important; color: var(--muted) !important;
  margin: 0 0 22px !important; line-height: 1.65 !important;
}
.ctt-ok-badges {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.ctt-ok-badges span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--pill);
  background: rgba(8,58,65,.07);
  color: var(--p);
  border: 1px solid rgba(8,58,65,.1);
}

/* ── Erro ───────────────────────────────────────── */
.ctt-err {
  display: flex; align-items: center; gap: 12px;
  background: rgba(254,242,242,.88);
  backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(252,165,165,.55);
  border-radius: 14px;
  padding: 15px 20px;
  font-size: 14px; font-weight: 600; color: #b91c1c;
  margin-bottom: 16px;
  animation: slideIn .22s ease;
}
.ctt-err::before { content: '⚠️'; font-size: 16px; flex-shrink: 0; }
@keyframes slideIn {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── Rodapé ─────────────────────────────────────── */
.ctt-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 22px 0 4px;
  border-top: 1px solid rgba(8,58,65,.07);
  margin-top: 4px;
}
.ctt-priv {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted-lt);
  margin: 0 !important; flex: 1; line-height: 1.5;
}

#ctt-enviar {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--p); color: var(--s); border: none;
  padding: 16px 36px; border-radius: 14px;
  font-size: 15px; font-weight: 800; font-family: inherit;
  cursor: pointer; letter-spacing: .2px; white-space: nowrap;
  overflow: hidden; position: relative;
  transition: all .25s var(--spring);
  box-shadow: 0 6px 24px rgba(8,58,65,.28), inset 0 1px 0 rgba(255,255,255,.1);
}
#ctt-enviar::before {
  content: '';
  position: absolute; top:0; left:0; right:0; height:50%;
  background: linear-gradient(180deg,rgba(255,255,255,.1),transparent);
  pointer-events: none;
}
#ctt-enviar:hover:not(:disabled) {
  background: var(--p-deep);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 34px rgba(8,58,65,.38);
}
#ctt-enviar:active:not(:disabled) { transform: scale(.99) translateY(0); }
#ctt-enviar:disabled { opacity:.45; cursor:not-allowed; transform:none; }

.ctt-spin { animation: spin .8s linear infinite; }
@keyframes spin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 620px) {
  .ctt-header-inner { padding: 24px 22px; gap: 16px; }
  .ctt-header-ico-box { display: none; }
  .ctt-grid { grid-template-columns: 1fr; }
  .ctt-full { grid-column: 1; }
  .ctt-footer { flex-direction: column; align-items: stretch; }
  #ctt-enviar { width: 100%; justify-content: center; }
  .ctt-ok-badges { flex-direction: column; align-items: center; }
}
