/* ==========================================================================
   Contact Us — SMS opt-in form (A2P 10DLC compliant).
   Scoped to .dd-optin so it cannot affect any other section.
   Matches the dark popup form language in digidesire-form.css.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

.dd-optin {
  font-family: "Manrope", system-ui, sans-serif;
  padding: clamp(56px, 7vw, 110px) 0;
  background: #0b0c0f;
  color: #fff;
  scroll-margin-top: 110px;
}
.dd-optin * { box-sizing: border-box; }
.dd-optin__row { align-items: flex-start; row-gap: 36px; }

/* ---- left column ---- */
.dd-optin .genericHead__subTitle {
  color: #a1a1a1; font-weight: 600; font-size: 12px;
  letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 14px;
}
.dd-optin .genericHead__title {
  color: #fff; font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.1;
}
.dd-optin .content p { color: rgba(255,255,255,0.62); font-size: 15px; line-height: 1.75; margin-top: 16px; }
.dd-optin .content a, .dd-optin__meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dd-optin__meta { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.dd-optin__meta li {
  display: grid; gap: 4px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.78);
  border-top: 1px solid rgba(255,255,255,0.09); padding-top: 14px;
}
.dd-optin__meta span {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 600;
}

/* ---- form shell ---- */
.dd-optin__form {
  background: linear-gradient(159deg, rgb(24,26,31) 4%, rgb(16,17,21) 52%, rgb(11,12,15) 96%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 50px 130px -40px rgba(0,0,0,0.9);
}
.dd-optin__form .custom-row { row-gap: 0; }

/* ---- fields ---- */
.dd-field { margin-bottom: 18px; display: block; }
.dd-field label {
  display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.72);
}
.dd-field label i { color: #ff6b6b; font-style: normal; }
.dd-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 12px;
  font-family: "Manrope", sans-serif; font-size: 14px;
  padding: 14px 16px;
  transition: border-color .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.dd-input::placeholder { color: rgba(255,255,255,0.4); opacity: 1; }
.dd-input:focus { outline: none; border-color: rgba(255,255,255,0.42); background: rgba(255,255,255,0.055); }
.dd-input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s ease-in-out 0s; }
.dd-textarea { min-height: 120px; resize: vertical; }
.dd-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 42px; cursor: pointer;
}
.dd-select option { color: #111; background: #fff; }
.dd-input.is-invalid { border-color: rgba(255,107,107,0.65); }
.dd-error { display: none; margin-top: 6px; font-size: 12px; color: #ff6b6b; }
.dd-error.is-visible { display: block; }
.dd-hint { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.6; color: rgba(255,255,255,0.42); }

/* ---- consent block ---- */
.dd-consent {
  margin-top: 6px; padding: 20px; border-radius: 16px;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.09);
}
.dd-consent__title {
  margin: 0 0 14px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.dd-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-bottom: 14px; }
.dd-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.dd-check__box {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.32); background: rgba(255,255,255,0.04);
  transition: background-color .18s, border-color .18s;
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}
.dd-check input:checked + .dd-check__box {
  background-color: #fff; border-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b0c0f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.dd-check input:focus-visible + .dd-check__box { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }
.dd-check__text { font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,0.72); }
.dd-consent__note { margin: 4px 0 0; font-size: 11.5px; line-height: 1.7; color: rgba(255,255,255,0.45); }
.dd-consent__note a { color: rgba(255,255,255,0.8); text-decoration: underline; text-underline-offset: 3px; }

/* ---- honeypot ---- */
.dd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- submit + status ---- */
.dd-optin__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.dd-submit {
  background: #fff; color: #0a0a0a; border: 0; border-radius: 999px;
  padding: 15px 36px; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: transform .3s cubic-bezier(.22,1,.36,1), background-color .3s, opacity .3s;
}
.dd-submit:hover { transform: translateY(-2px); background: #ececec; }
.dd-submit[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.dd-status { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.6); }
.dd-status.is-success { color: #6ee7a8; }
.dd-status.is-error { color: #ff6b6b; }

/* light-mode page shells (no-home pages render on white in places) */
.no-home .dd-optin { background: #0b0c0f; }

@media (max-width: 767px) {
  .dd-optin__form { border-radius: 18px; }
  .dd-optin__actions { gap: 12px; }
  .dd-submit { width: 100%; }
}

/* ==========================================================================
   Consent block inside the legacy "Get a Quote" popup (home + all service pages).
   The .dd-consent / .dd-check rules above are unscoped, so they apply as-is;
   these only handle placement and popup-specific spacing.
   ========================================================================== */
.formPopup .dd-consent--popup {
  margin: 8px 0 18px;
  font-family: "Manrope", system-ui, sans-serif;
}
.formPopup .dd-consent--popup .dd-check { margin-bottom: 12px; }
.formPopup .dd-consent--popup .dd-check__text { font-size: 12px; }
.formPopup .form-global-message { font-family: "Manrope", system-ui, sans-serif; }
.formPopup .error-msg { display: block; }

/* Popups rendered on light inner pages still sit on the dark panel — keep contrast. */
.formPopup .dd-consent {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.09);
}
