/* =========================================================
   PÁGINA: CONTACTOS
   ========================================================= */
.page-contactos {
  background-color: #FAFAFA;
  width: 100%;
}

.container {
  margin: 0 10%;
}

.contato-section {
  padding: 40px 0 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 26px 22px;
  border: 1px solid #E5E7EB;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
  background: #FFFFFF;
}

/* ==========================================
   LADO ESQUERDO: O FORMULÁRIO
   ========================================== */
.form-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid #E5E7EB;
  overflow: hidden;
}

/* Header Azul Escuro */
.form-head {
  background-color: #1A1060;
  padding: 32px;
  color: #FFFFFF;
}

.fh-text h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #FFFFFF;
}

.fh-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px 0;
}

.fh-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-outline {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
}

/* Body e Customização do WPForms */
.form-body {
  padding: 32px;
}

.form-nota {
  margin-top: 32px;
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
  border-top: 1px solid #E5E7EB;
  padding-top: 24px;
}

/* --- OVERRIDES DO WPFORMS (Ajuste Fino Figma) --- */
.wpforms-container {
  margin: 0 !important;
}

/* 1. Reduzir o gap exagerado entre as linhas */
.wpforms-form .wpforms-field {
  margin-bottom: 20px !important;
  padding: 0 !important;
  /* Remove paddings extra que o plugin injeta nas colunas */
}

/* 2. Colar mais a Label ao Input e ajustar a cor do asterisco */
.wpforms-form .wpforms-field-label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #374151 !important;
  margin-bottom: 6px !important;
  /* Distância menor */
  display: block !important;
  line-height: 1.2 !important;
}

.wpforms-form .wpforms-required-label {
  color: #EF4444 !important;
  /* Um vermelho mais suave/moderno para o asterisco */
  font-weight: 700 !important;
}

/* 3. Aumentar a altura (padding) dos Inputs para ficarem robustos */
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form select,
.wpforms-form textarea {
  width: 100% !important;
  padding: 14px 16px !important;
  /* Aumentado de 12px para 14px na vertical */
  border: 1px solid #D1D5DB !important;
  /* Borda cinzenta exata do Figma */
  border-radius: 8px !important;
  background-color: #FFFFFF !important;
  font-size: 14px !important;
  color: #111827 !important;
  box-shadow: none !important;
  /* Flat, sem sombras indesejadas */
  height: auto !important;
  /* Impede o WPForms de forçar alturas fixas */
  box-sizing: border-box !important;
  line-height: 1.5 !important;
  max-width: 100% !important;
}

/* Setinha customizada do Select */
.wpforms-form select {
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 16px !important;
}

.wpforms-form textarea {
  min-height: 110px !important;
  resize: vertical !important;
}

/* Estado de Foco (Ciano) */
.wpforms-form input:focus,
.wpforms-form select:focus,
.wpforms-form textarea:focus {
  outline: none !important;
  border-color: #24DBFF !important;
  box-shadow: 0 0 0 3px rgba(36, 219, 255, 0.1) !important;
}

/* Checkbox do Consentimento */
.wpforms-form .wpforms-field-checkbox {
  margin-top: 12px !important;
}

.wpforms-form .wpforms-field-checkbox ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wpforms-form .wpforms-field-checkbox li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.wpforms-form .wpforms-field-checkbox input[type="checkbox"] {
  margin-top: 4px !important;
  width: 16px !important;
  height: 16px !important;
  accent-color: #24DBFF !important;
}

.wpforms-form .wpforms-field-checkbox label {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #4B5563 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
  display: inline !important;
}

/* Container do Botão Enviar */
.wpforms-submit-container {
  margin-top: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.wpforms-submit {
  background-color: #24DBFF !important;
  color: #111827 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 14px 28px !important;
  border: none !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
  display: inline-block !important;
}

.wpforms-submit:hover {
  opacity: 0.9 !important;
}

/* ==========================================
   LADO DIREITO: SIDEBAR
   ========================================== */
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.side-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  border: 1px solid #E5E7EB;
}

.side-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px 0;
}

.sc-sub {
  font-size: 14px;
  color: #4B5563;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* Botões Sidebar */
.sc-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-cyan {
  background: #24DBFF;
  color: #111827;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.btn-outline-dark {
  background: transparent;
  color: #111827;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #D1D5DB;
  text-decoration: none;
}

/* Blocos de Passos Cinzentos */
.sc-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-block {
  background: #F3F4F6;
  border-radius: 12px;
  padding: 20px;
}

.step-block h4 {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 6px 0;
}

.step-block p {
  font-size: 13px;
  color: #4B5563;
  margin: 0;
  line-height: 1.5;
}

/* Grid de Dados */
.sc-dados-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}

.sc-dados-grid strong {
  color: #111827;
  font-weight: 700;
}

.sc-dados-grid span,
.sc-dados-grid a {
  color: #4B5563;
  text-decoration: none;
}

.sc-dados-grid a:hover {
  text-decoration: underline;
  color: #24DBFF;
}

/* Pills Cinzentas (Fundo Sidebar) */
.sc-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-grey {
  background: #E5E7EB;
  color: #374151;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* ==========================================
   RESPONSIVIDADE E CORREÇÕES MOBILE
   ========================================== */
@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  /* Força TODAS as colunas do WPForms a ocupar 100% no mobile */
  .wpforms-form .wpforms-field {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    clear: both !important;
    display: block !important;
    margin-bottom: 24px !important;
    /* Mais respiro entre campos no telemóvel */
  }

  /* Campos maiores para melhor UX (Toque) e evita Zoom no iOS */
  .wpforms-form input[type="text"],
  .wpforms-form input[type="email"],
  .wpforms-form input[type="tel"],
  .wpforms-form select,
  .wpforms-form textarea {
    padding: 16px 18px !important;
    /* Aumenta a altura */
    font-size: 16px !important;
    /* 16px evita que o iPhone faça zoom in ao clicar */
  }
}