/* TADApix quote form modal (redesign of the legacy Elementor popup) */
#tdx-quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(8, 10, 12, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
#tdx-quote-overlay.visible { display: flex; }
#tdx-quote-overlay * { box-sizing: border-box; }

#tdx-quote-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  background: #10202c;
  border: 1px solid rgba(241, 186, 83, 0.25);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  animation: tdxq-in 0.35s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}
@keyframes tdxq-in { 0% { transform: scale(0.92) translateY(14px); opacity: 0; } 100% { transform: none; opacity: 1; } }

#tdx-quote-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.85) !important;
  border: none !important;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
  color: #1B3A4B !important;
  cursor: pointer;
  padding: 0 !important;
}
#tdx-quote-close:hover { background: #fff !important; }

.tdx-q-brand {
  background: linear-gradient(180deg, #16303f 0%, #0e1f2a 100%);
  padding: 40px 32px 28px;
  display: flex;
  flex-direction: column;
}
.tdx-q-medallion { width: 96px; height: 96px; position: relative; margin-bottom: 22px; }
.tdx-q-ring { position: absolute; inset: 0; border-radius: 50%; background: #1B3A4B; border: 3px solid #F1BA53; }
.tdx-q-medallion img {
  position: absolute; width: 167%; max-width: none; left: -25%; top: -34%;
  pointer-events: none; transform: scaleX(-1);
}
.tdx-q-brand h2 { color: #fff; font-size: 27px; line-height: 1.2; margin: 0 0 12px; }
.tdx-q-brand p { color: #b8c4cc; font-size: 14px; line-height: 1.55; margin: 0 0 auto; }
.tdx-q-contact { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.tdx-q-label { color: #F1BA53; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.tdx-q-contact a { display: block; color: #fff; text-decoration: none; font-size: 16px; font-weight: 600; margin: 3px 0; }
.tdx-q-contact a:hover { color: #F1BA53; }
.tdx-q-mail { font-size: 13.5px; color: #b8c4cc; margin-top: 6px; }

.tdx-q-formside { padding: 38px 38px 30px; background: #ffffff; }
.tdx-q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.tdx-q-field.tdx-q-full { grid-column: 1 / -1; }
.tdx-q-field label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.4px;
  color: #1B3A4B; margin-bottom: 6px;
}
.tdx-q-field input, .tdx-q-field textarea {
  width: 100%; border: 1.5px solid #dde3e7; border-radius: 10px;
  padding: 12px 14px; font-size: 14.5px; color: #1B3A4B;
  background: #fbfcfd; outline: none; font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tdx-q-field textarea { min-height: 104px; resize: vertical; }
.tdx-q-field input:focus, .tdx-q-field textarea:focus {
  border-color: #F1BA53; box-shadow: 0 0 0 3px rgba(241, 186, 83, 0.22); background: #fff;
}
.tdx-q-field input::placeholder, .tdx-q-field textarea::placeholder { color: #b6bfc5; }
.tdx-q-invalid { border-color: #d9534f !important; box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.18) !important; }

.tdx-q-submitrow { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.tdx-q-submit {
  background: #F1BA53 !important; color: #1B3A4B !important; border: none !important;
  border-radius: 26px; padding: 14px 34px !important; font-size: 15.5px; font-weight: 800;
  cursor: pointer; box-shadow: 0 4px 14px rgba(241, 186, 83, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.tdx-q-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(241, 186, 83, 0.45); }
.tdx-q-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.tdx-q-reassure { color: #8a939b; font-size: 12.5px; line-height: 1.4; }
.tdx-q-error { grid-column: 1 / -1; color: #b23b37; font-size: 13.5px; }
.tdx-q-error a { color: #b23b37; }

.tdx-q-success { text-align: center; padding: 60px 30px; }
.tdx-q-big { font-size: 42px; }
.tdx-q-success h3 { color: #1B3A4B; font-size: 22px; margin: 12px 0 8px; }
.tdx-q-success p { color: #66707a; font-size: 14.5px; }

@media (max-width: 760px) {
  #tdx-quote-card { grid-template-columns: 1fr; max-width: 480px; }
  .tdx-q-brand { padding: 22px 22px 18px; flex-direction: row; align-items: center; gap: 16px; }
  .tdx-q-medallion { width: 60px; height: 60px; margin: 0; flex-shrink: 0; }
  .tdx-q-brand h2 { font-size: 19px; margin: 0; }
  .tdx-q-brand p, .tdx-q-contact { display: none; }
  .tdx-q-formside { padding: 22px 20px 18px; }
  .tdx-q-grid { grid-template-columns: 1fr; gap: 12px; }
  .tdx-q-field input, .tdx-q-field textarea { font-size: 16px; } /* prevent iOS focus zoom */
}

/* badge hidden globally (attribution text shown in the modal instead, per
   Google's policy) — also stops the badge lingering after the form closes */
.grecaptcha-badge { visibility: hidden !important; }
.tdx-q-recaptcha-note { grid-column: 1 / -1; color: #aab3ba; font-size: 11px; margin-top: 2px; }
.tdx-q-recaptcha-note a { color: #aab3ba; }
.tdx-q-opt { color: #9aa4ab; font-weight: 500; }
