/* Campaign CTA form dialogs. Rendered as a sibling of the isolated campaign main,
   so the backdrop covers the global sticky header and other site navigation. */
.tgtc-modal[hidden]{display:none!important}
.tgtc-modal{position:fixed;inset:0;z-index:1000005;display:grid;place-items:center;padding:16px;isolation:isolate}
.tgtc-modal-scrim{z-index:0;position:absolute;inset:0;background:rgba(12,21,34,.69);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.tgtc-modal-dialog{z-index:1;position:relative;width:min(100%,480px);max-height:min(90dvh,800px);display:flex;flex-direction:column;overflow:hidden;background:#fff;color:#1b2837;border-radius:18px;box-shadow:0 22px 80px rgba(4,13,27,.38);animation:tgtc-pop .2s ease-out}
.tgtc-modal-head{position:relative;flex:0 0 auto;z-index:2;background:#fff;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:21px 24px 17px;border-bottom:1px solid #e7eaee}
.tgtc-modal-overline{display:block;color:#ff492b;font-size:9px;font-weight:750;letter-spacing:.13em;margin-bottom:5px}
.tgtc-modal-head h2{margin:0;font-size:clamp(1.18rem,2.6vw,1.45rem);line-height:1.27;color:#192635}
.tgtc-modal-close{border:0;background:#f0f2f4;color:#253243;border-radius:50%;width:35px;height:35px;flex:0 0 35px;display:grid;place-items:center;font-size:24px;line-height:1;cursor:pointer}
.tgtc-modal-close:hover{background:#ffe9e5;color:#e43d21}
.tgtc-modal-close:focus-visible,.tgtc-modal-dialog :focus-visible{outline:2px solid #ff4c30;outline-offset:2px}
.tgtc-modal-content{flex:0 1 auto;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a8afb8 transparent;margin:0 6px 7px 0;padding:19px 18px 17px 24px;overflow-wrap:anywhere}
.tgtc-modal-content::-webkit-scrollbar{width:6px}
.tgtc-modal-content::-webkit-scrollbar-thumb{background:#a8afb8;border-radius:10px}
.tgtc-modal-content::-webkit-scrollbar-track{background:transparent}
.tgtc-modal-content *{box-sizing:border-box}
.tgtc-modal-content form,.tgtc-modal-content img,.tgtc-modal-content iframe{max-width:100%}
.tgtc-modal-content input:not([type=checkbox]):not([type=radio]):not([type=submit]),.tgtc-modal-content select,.tgtc-modal-content textarea{max-width:100%;box-sizing:border-box}
@keyframes tgtc-pop{from{opacity:0;transform:translateY(9px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){
 .tgtc-modal{padding:10px}
 .tgtc-modal-dialog{max-height:calc(100dvh - 20px);border-radius:15px}
 .tgtc-modal-head{padding:15px 17px 13px}
 .tgtc-modal-head h2{font-size:1.16rem}
 .tgtc-modal-content{padding:15px 11px 12px 17px;margin-right:6px;margin-bottom:6px}
}
@media(max-height:640px){
 .tgtc-modal{padding:6px}
 .tgtc-modal-dialog{max-height:calc(100dvh - 12px)}
 .tgtc-modal-head{padding-top:12px;padding-bottom:11px}
 .tgtc-modal-content{padding-top:12px;padding-bottom:10px}
}
@media(prefers-reduced-motion:reduce){.tgtc-modal-dialog{animation:none}.tgtc-modal-scrim{backdrop-filter:none;-webkit-backdrop-filter:none}}

/* v1.29.8: Flexible Reservation Forms stores each field's intended width in
   --tgt-ff-width (for example 31%, 50%, 100%). Keep that layout operative even
   when the form is rendered by a theme shortcode inside a compact modal. This
   is scoped to the campaign modal and never changes standalone plugin forms. */
.tgtc-modal-content .tgt-ff-form .tgt-ff-fields-wrap{
 display:flex;
 flex-flow:row wrap;
 column-gap:0;
 row-gap:12px;
 min-width:0;
}
.tgtc-modal-content .tgt-ff-form .tgt-ff-fields-wrap > .tgt-ff-field{
 box-sizing:border-box;
 flex:0 0 var(--tgt-ff-width,100%);
 width:var(--tgt-ff-width,100%);
 max-width:100%;
 min-width:0;
 padding-inline:6px;
}
.tgtc-modal-content .tgt-ff-form .tgt-ff-fields-wrap > .tgt-ff-field input,
.tgtc-modal-content .tgt-ff-form .tgt-ff-fields-wrap > .tgt-ff-field select,
.tgtc-modal-content .tgt-ff-form .tgt-ff-fields-wrap > .tgt-ff-field textarea{
 min-width:0;
 max-width:100%;
}
/* On narrow phones, favour usable form controls over three tiny columns.
   All configured percentages remain intact in the saved form definition. */
@media(max-width:600px){
 .tgtc-modal-content .tgt-ff-form .tgt-ff-fields-wrap > .tgt-ff-field{
  flex-basis:100%;
  width:100%;
 }
}
