/* ── Campos de dados pessoais partilhados (donativos + apoiantes) ──
   Um único visual para os dois formulários. Prefixo `.fd-`. */

.fd { display: flex; flex-direction: column; gap: 16px; }

/* Toggle segmentado Particular / Empresa */
.fd-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #f0ecf0; border-radius: 14px; }
.fd-seg__opt { border: 0; background: transparent; font-family: inherit; font-weight: 600; font-size: 14px; color: #6b5a6a; padding: 11px 10px; border-radius: 10px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
.fd-seg__opt[data-active="true"] { background: #fff; color: #80207e; box-shadow: 0 2px 6px rgba(90, 21, 89, 0.14); }
.fd-seg__opt:hover:not([data-active="true"]) { color: #80207e; }

.fd-field { display: block; }
.fd-field__lab { display: block; font-size: 14px; font-weight: 700; color: #2a1229; margin-bottom: 8px; }
.fd-field__lab .req { color: #f89521; }
.fd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.fd-input { width: 100%; box-sizing: border-box; min-height: 52px; padding: 12px 16px; border: 2px solid #e5e5e5; border-radius: 14px; background: #fff; font-family: inherit; font-size: 16px; color: #2a1229; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.fd-input::placeholder { color: #999; }
.fd-input:focus { border-color: #80207e; box-shadow: 0 0 0 3px rgba(128, 32, 126, 0.14); }
.fd-input[aria-invalid="true"] { border-color: #d64545; }
.fd-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.14); }

/* Linha país+NIF / indicativo+telemóvel */
.fd-row { display: flex; align-items: flex-start; gap: 8px; }
.fd-row > .fd-input { flex: 1 1 auto; min-width: 0; }
.fd-select { flex: 0 0 auto; min-height: 52px; padding: 12px 14px; border: 2px solid #e5e5e5; border-radius: 14px; background: #fff; font-family: inherit; font-weight: 600; font-size: 16px; color: #2a1229; cursor: pointer; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.fd-select:focus { border-color: #80207e; box-shadow: 0 0 0 3px rgba(128, 32, 126, 0.14); }

/* Selector de país: <select> nativo com sigla ISO sobreposta (fechado) */
.fd-select-wrap { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; width: 84px; }
.fd-select-native { appearance: none; -webkit-appearance: none; -moz-appearance: none; width: 100%; min-height: 52px; padding: 12px 30px 12px 16px; border: 2px solid #e5e5e5; border-radius: 14px; background: #fff; font-family: inherit; font-weight: 600; font-size: 16px; color: transparent; cursor: pointer; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.fd-select-native:focus { border-color: #80207e; box-shadow: 0 0 0 3px rgba(128, 32, 126, 0.14); }
.fd-select-native option { color: #111; }
.fd-select-sigla { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; font-weight: 600; color: #2a1229; background: #fff; pointer-events: none; }
.fd-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 #555; pointer-events: none; }

.fd-hint { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: #6b5a6a; }
.fd-hint--erro { color: #d64545; }
.fd-hint a { color: inherit; font-weight: 600; text-decoration: underline; }

@media (max-width: 520px) {
  .fd-grid2 { grid-template-columns: 1fr; }
}
