/* contact:013-secure-form */
.contact-intro {
  position: relative;
  overflow: hidden;
  margin: 0 0 24px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid #d8e0e8;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgba(209, 168, 65, 0.2), transparent 34%),
    linear-gradient(145deg, #f4f7fa 0%, #fff 68%);
  box-shadow: 0 18px 44px rgba(16, 38, 63, 0.08);
}

.contact-intro h1,
.contact-intro h2,
.contact-server-form h1,
.contact-complete h1,
.contact-error h1 {
  margin: 4px 0 14px;
  color: #10263f;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.contact-intro__eyebrow {
  margin: 0 !important;
  color: #866914;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.contact-recipient {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 24px 0 0;
  border: 1px solid #d8e0e8;
  border-radius: 12px;
  background: #d8e0e8;
}

.contact-recipient div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
}

.contact-recipient dt {
  margin-bottom: 4px;
  color: #6b7a8c;
  font-size: 11px;
  font-weight: 700;
}

.contact-recipient dd {
  margin: 0;
  color: #10263f;
  font-size: 13px;
  font-weight: 700;
}

.contact-security-note {
  margin: 0 0 24px;
  padding: 20px 22px;
  border-left: 4px solid #d1a841;
  border-radius: 4px 12px 12px 4px;
  background: #fffaf0;
  color: #4d4a3d;
}

.contact-security-note h2 {
  margin: 0 0 9px;
  color: #4d3e17;
  font-size: 16px;
}

.contact-security-note ul {
  margin: 0;
  padding-left: 1.25em;
}

.contact-security-note li + li {
  margin-top: 5px;
}

.secure-contact-form {
  position: relative;
  margin: 0;
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid #ccd7e1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(16, 38, 63, 0.08);
  text-align: left;
}

.secure-contact-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.secure-contact-form legend {
  width: 100%;
  margin: 0 0 4px;
  padding: 0 0 16px;
  border-bottom: 1px solid #e0e6ec;
  color: #10263f;
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 800;
}

.contact-required-note {
  margin: 12px 0 0 !important;
  color: #68788a;
  font-size: 12px;
}

.contact-field {
  margin-top: 22px;
}

.contact-field label,
.contact-consent label {
  color: #22384f;
  font-weight: 700;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #afbdca;
  border-radius: 10px;
  background: #fff;
  color: #152b42;
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.contact-field input,
.contact-field select {
  min-height: 48px;
  padding: 10px 13px;
}

.contact-field textarea {
  min-height: 190px;
  padding: 13px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 3px solid rgba(41, 110, 164, 0.18);
  outline-offset: 1px;
  border-color: #296ea4;
  box-shadow: 0 0 0 1px #296ea4;
}

.contact-field input:invalid:not(:placeholder-shown),
.contact-field textarea:invalid:not(:placeholder-shown) {
  border-color: #a84040;
}

.contact-field__help {
  margin: 7px 0 0 !important;
  color: #68788a;
  font-size: 12px;
  line-height: 1.65;
}

.contact-required,
.contact-optional {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  vertical-align: 0.12em;
}

.contact-required {
  background: #8f2f2f;
  color: #fff;
}

.contact-optional {
  background: #edf1f5;
  color: #526579;
}

.contact-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 26px;
  padding: 17px;
  border-radius: 10px;
  background: #f3f6f8;
}

.contact-consent input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: #173d60;
}

.contact-consent label {
  font-size: 13px;
  line-height: 1.75;
}

.contact-actions {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 28px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 360px);
  min-height: 52px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #173d60, #235f8c);
  box-shadow: 0 10px 24px rgba(23, 61, 96, 0.22);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.contact-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(23, 61, 96, 0.28);
}

.contact-submit:focus-visible {
  outline: 3px solid rgba(209, 168, 65, 0.55);
  outline-offset: 3px;
}

.contact-submit:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.56;
}

.contact-form-status {
  margin: 0 !important;
  color: #68788a;
  font-size: 12px;
  text-align: center;
}

.contact-form-status[data-state="ready"] {
  color: #1e6a46;
}

.contact-form-status[data-state="error"] {
  color: #8f2f2f;
}

.contact-honeypot {
  position: absolute !important;
  top: 0 !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-noscript,
.contact-fallback {
  margin-top: 18px !important;
  padding: 15px 18px;
  border: 1px solid #d8e0e8;
  border-radius: 10px;
  background: #f7f9fb;
  color: #526579;
}

.contact-server-form,
.contact-complete,
.contact-error {
  width: min(760px, calc(100% - 32px));
  margin: clamp(24px, 7vw, 72px) auto;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid #d8e0e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(16, 38, 63, 0.1);
  text-align: left;
}

.contact-server-form .secure-contact-form {
  margin-top: 26px;
  box-shadow: none;
}

.contact-complete__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px !important;
}

.contact-complete__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid #afbdca;
  border-radius: 999px;
  text-decoration: none;
}

@media (max-width: 720px) {
  .contact-recipient {
    grid-template-columns: 1fr;
  }

  .contact-intro,
  .secure-contact-form,
  .contact-server-form,
  .contact-complete,
  .contact-error {
    border-radius: 14px;
  }

  .contact-server-form,
  .contact-complete,
  .contact-error {
    width: calc(100% - 20px);
  }

  .contact-complete__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-complete__actions a,
  .contact-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-field input,
  .contact-field select,
  .contact-field textarea,
  .contact-submit {
    transition: none;
  }
}
