/* ============================================================
   DD&SA — Form components (contact + subscribe)
   Matches the approved reference mockups: a single glowing
   blue-white border around a dark card, solid light input
   fields, and a solid blue call-to-action button. Colours
   below were sampled directly from those mockups.
   ============================================================ */

.ddsa-form-frame {
  --ddsa-form-glow: rgba(104,164,224,0.5);
  --ddsa-form-border: rgba(148,196,236,0.6);
  --ddsa-input-bg: #e8f0f9;
  --ddsa-input-text: #172233;
  --ddsa-input-placeholder: #6b7686;
  --ddsa-btn-blue: #3276b2;
  --ddsa-btn-blue-hover: #3d84c4;

  position: relative;
  max-width: 460px;
  margin: 28px auto;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(13,23,38,0.98), rgba(6,10,20,0.98));
  border: 1px solid var(--ddsa-form-border);
  box-shadow:
    0 0 0 1px rgba(148,196,236,0.12),
    0 0 34px var(--ddsa-form-glow),
    0 0 80px rgba(70,120,180,0.22),
    0 24px 60px rgba(0,0,0,0.55);
  padding: clamp(28px, 5vw, 44px) clamp(22px, 5vw, 38px) 30px;
}

.ddsa-form-heading {
  font-family: var(--display);
  font-weight: 700;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  letter-spacing: .01em;
  color: var(--text);
  margin: 0 0 12px;
}
.ddsa-form-sub {
  text-align: center;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 auto 26px;
}

.ddsa-field { margin: 0 0 16px; }
.ddsa-field .sr-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ddsa-field input,
.ddsa-field textarea,
.ddsa-field select {
  width: 100%;
  padding: 15px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ddsa-input-text);
  background: var(--ddsa-input-bg);
  border: 1px solid transparent;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ddsa-field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.ddsa-field input::placeholder,
.ddsa-field textarea::placeholder { color: var(--ddsa-input-placeholder); }
.ddsa-field input:focus,
.ddsa-field textarea:focus,
.ddsa-field select:focus {
  border-color: var(--ddsa-btn-blue);
  box-shadow: 0 0 0 3px rgba(50,118,178,0.28);
}
.ddsa-field .hint {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  color: var(--muted);
}
.ddsa-field.error input,
.ddsa-field.error textarea { box-shadow: 0 0 0 2px #d9756b inset; }
.ddsa-field .err-msg {
  display: none;
  margin-top: 6px;
  font-size: .8rem;
  color: #ff9d8f;
}
.ddsa-field.error .err-msg { display: block; }

/* honeypot — hidden from real users, visible to bots */
.ddsa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ddsa-submit {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ddsa-btn-blue);
  padding: 16px 20px;
  margin-top: 6px;
  transition: background .2s ease, transform .2s ease;
}
.ddsa-submit:hover { background: var(--ddsa-btn-blue-hover); }
.ddsa-submit:active { transform: translateY(1px); }
.ddsa-submit .spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  display: none;
  animation: ddsa-spin .7s linear infinite;
}
.ddsa-submit.loading .spinner { display: inline-block; }
.ddsa-submit.loading .label-text { opacity: .85; }
.ddsa-submit:disabled { cursor: default; opacity: .85; }
@keyframes ddsa-spin { to { transform: rotate(360deg); } }

.ddsa-fineprint {
  text-align: center;
  margin-top: 16px;
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(238,242,252,0.5);
}

.ddsa-status {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: .92rem;
  display: none;
  align-items: flex-start;
  gap: 10px;
}
.ddsa-status.show { display: flex; }
.ddsa-status.ok {
  background: rgba(90,168,120,0.14);
  border: 1px solid rgba(90,168,120,0.4);
  color: #b7e6c6;
}
.ddsa-status.fail {
  background: rgba(217,117,107,0.14);
  border: 1px solid rgba(217,117,107,0.4);
  color: #ffc2b8;
}
.ddsa-status svg { flex: 0 0 auto; margin-top: 2px; }

.ddsa-alt-contact {
  max-width: 460px;
  margin: 20px auto 0;
  text-align: center;
  font-size: .92rem;
  color: var(--muted);
}
.ddsa-email-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--gold-hot);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255,217,107,0.4);
}
.ddsa-email-copy:hover { text-decoration-color: var(--gold-hot); }
.ddsa-email-copy svg { flex: 0 0 auto; opacity: .8; }
.ddsa-email-copy.copied { color: #b7e6c6; text-decoration-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .ddsa-submit .spinner { animation: none; }
}
