:root {
  --dc-contact-purple: #3f3196;
  --dc-contact-purple-dark: #241968;
  --dc-contact-purple-mid: #5142a8;
  --dc-contact-ink: #2d2d35;
  --dc-contact-muted: #666672;
  --dc-contact-border: rgba(63, 49, 150, 0.18);
  --dc-contact-soft: #faf8ff;
}

.dc-contact-form-wrap {
  box-sizing: border-box;
  width: min(100%, 880px);
  margin: 0 auto;
  padding: clamp(14px, 2.4vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 12%, rgba(255,255,255,0.16), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(255,255,255,0.10), transparent 34%),
    rgba(255, 255, 255, 0.12);
  color: var(--dc-contact-ink);
  box-shadow: 0 18px 42px rgba(20, 14, 70, 0.16);
}

.dc-contact-form-heading {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.1;
}

.dc-contact-notice {
  margin: 0 0 16px;
  padding: 13px 16px;
  border: 1px solid rgba(63, 49, 150, 0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  color: var(--dc-contact-purple-dark);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 24px rgba(30, 24, 72, 0.08);
}

.dc-contact-notice--error {
  color: #8a1f1f;
}

.dc-contact-form {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  padding: clamp(24px, 3.6vw, 38px);
  border: 1px solid rgba(63, 49, 150, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--dc-contact-ink);
  box-shadow: 0 14px 32px rgba(20, 14, 70, 0.14);
  overflow: hidden;
}

/* Removed the extra inset border so the form does not feel like a box inside a box. */
.dc-contact-form::before {
  display: none;
}

.dc-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}

.dc-contact-grid p,
.dc-contact-grid fieldset {
  min-width: 0;
  margin: 0;
}

.dc-contact-full {
  grid-column: 1 / -1;
}

.dc-contact-form label,
.dc-contact-services legend,
.dc-contact-name legend {
  display: block;
  margin: 0 0 8px;
  color: var(--dc-contact-purple-dark);
  font-weight: 800;
  line-height: 1.2;
}

.dc-contact-form label span,
.dc-contact-services legend span,
.dc-contact-name legend span {
  color: #b10000;
}

.dc-contact-name,
.dc-contact-services {
  padding: 0;
  border: 0;
}

.dc-contact-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dc-contact-name-grid p label {
  margin: 6px 0 0;
  color: var(--dc-contact-muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.dc-contact-form input[type="text"],
.dc-contact-form input[type="email"],
.dc-contact-form input[type="tel"],
.dc-contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(63, 49, 150, 0.22);
  border-radius: 10px;
  padding: 12px 13px;
  background: #fff;
  color: var(--dc-contact-ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
}

.dc-contact-form textarea {
  resize: vertical;
  min-height: 138px;
}

.dc-contact-form input:focus,
.dc-contact-form textarea:focus {
  outline: 3px solid rgba(63, 49, 150, 0.13);
  border-color: var(--dc-contact-purple-mid);
  box-shadow: 0 0 0 1px rgba(63, 49, 150, 0.08);
}

.dc-contact-services {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dc-contact-services label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--dc-contact-ink);
  font-weight: 500;
}

.dc-contact-services input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--dc-contact-purple);
}

.dc-contact-turnstile {
  margin-top: -4px;
}

.dc-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border: 1px solid var(--dc-contact-purple);
  border-radius: 999px;
  padding: 12px 24px;
  background: var(--dc-contact-purple);
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(63, 49, 150, 0.22);
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dc-contact-submit:hover,
.dc-contact-submit:focus {
  border-color: var(--dc-contact-purple-dark);
  background: var(--dc-contact-purple-dark);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(20, 14, 70, 0.26);
}

.dc-contact-submit:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.38);
  outline-offset: 3px;
}

.dc-contact-submit:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.dc-contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .dc-contact-form-wrap {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 22px;
  }

  .dc-contact-form {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .dc-contact-grid,
  .dc-contact-name-grid {
    grid-template-columns: 1fr;
  }

  .dc-contact-grid {
    gap: 19px;
  }

  .dc-contact-submit {
    width: 100%;
    padding: 14px 18px;
  }
}


/* Submit + Turnstile alignment */
.dc-contact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.dc-contact-actions .dc-contact-submit {
  flex: 0 0 auto;
  margin-top: 0;
}

.dc-contact-actions .dc-contact-turnstile {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
}

@media (max-width: 760px) {
  .dc-contact-actions {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 14px;
  }

  .dc-contact-actions .dc-contact-turnstile {
    margin: 0;
    align-self: flex-start;
    max-width: 100%;
    transform-origin: left center;
  }

  .dc-contact-actions .dc-contact-submit {
    width: 100%;
  }
}
