/* Quick-enquiry popup, triggered by the page-body CTA buttons on the
   Engineering / Services / Technology hub pages. Compact by design - fits
   without an internal scrollbar on ordinary screens. */
#tp-cta-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
#tp-cta-modal.open { display: flex; }
.tp-cta-veil {
  position: absolute; inset: 0; background: rgba(10,19,48,.66);
  opacity: 0; transition: opacity .25s ease;
}
#tp-cta-modal.open .tp-cta-veil { opacity: 1; }
.tp-cta-box {
  position: relative; width: 100%; max-width: 380px; background: #fff;
  border-radius: 14px; box-shadow: 0 30px 70px -20px rgba(10,19,48,.5);
  transform: translateY(18px) scale(.98); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
  max-height: 92vh; overflow-y: auto; overflow-x: hidden;
}
#tp-cta-modal.open .tp-cta-box { transform: translateY(0) scale(1); opacity: 1; }

.tp-cta-head {
  position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 16px 14px;
  background: linear-gradient(120deg, #0A1330, #1B2A57 60%, #EC2229 160%);
}
.tp-cta-head h3 { margin: 0 0 3px; font-size: 16px; font-weight: 800; color: #fff; }
.tp-cta-head p { margin: 0; font-size: 11.5px; color: rgba(255,255,255,.75); line-height: 1.4; }
.tp-cta-close {
  flex: none; width: 28px; height: 24px; padding: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  border-radius: 5px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer; transition: background .2s ease;
}
.tp-cta-close:hover { background: #EC2229; border-color: #EC2229; }

.tp-cta-form { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.tp-cta-field label { display: block; font-size: 10.5px; font-weight: 700; color: #0A1330; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .02em; }
/* The theme's default.css carries unscoped rules - input[type=text]{padding:15px
   20px;margin-bottom:30px} and "body div textarea{height:120px}" - that hit
   every input/textarea on the site, including this popup. !important forces
   this compact design to win regardless of stylesheet load order. */
.tp-cta-field input, .tp-cta-field textarea {
  width: 100%; border: 1.5px solid #E3E8F0; border-radius: 6px; padding: 8px 10px !important;
  font-size: 13px; font-family: inherit; color: #0A1330; transition: border-color .2s ease;
  background: #F9FAFC; margin: 0 !important; box-sizing: border-box;
}
.tp-cta-field input:focus, .tp-cta-field textarea:focus { outline: none; border-color: #EC2229; background: #fff; }
.tp-cta-field textarea { resize: none; height: 60px !important; min-height: 0 !important; }
.tp-cta-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.tp-cta-website { position: absolute; left: -9999px; }

.tp-cta-submit {
  margin-top: 2px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px; border: 0; border-radius: 6px; cursor: pointer;
  background: #EC2229; color: #fff; font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  transition: background .25s ease, transform .2s ease;
}
.tp-cta-submit:hover { background: #B81017; transform: translateY(-2px); }
.tp-cta-submit:disabled { opacity: .6; cursor: default; transform: none; }

.tp-cta-msg { font-size: 12px; padding: 8px 10px; border-radius: 6px; display: none; }
.tp-cta-msg.show { display: block; }
.tp-cta-msg.ok { background: #ECFDF3; color: #15803D; }
.tp-cta-msg.err { background: #FEF2F2; color: #B91C1C; }

body.tp-cta-lock { overflow: hidden; }

@media (max-width: 420px) {
  .tp-cta-row2 { grid-template-columns: 1fr; }
}
