/* Standalone Gateway only; shared theme rules and other templates are unchanged. */
/* Service dialog styling; backend-dependent success remains gated. */
.service-gateway [data-gateway-signout][hidden]{display:none}
.service-gateway [data-gateway-signout]{color:#142535;border-color:#14253580;background:#ffffffdb}
.service-gateway .gateway-account-summary{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:14px}
.service-gateway .gateway-account-summary [data-gateway-session-status]{margin:0;max-width:100%;overflow-wrap:anywhere;color:#FFFFFF;font-weight:700;font-size:clamp(22px,2.2vw,30px);line-height:1.3}
.service-gateway .gateway-account-summary [data-gateway-signout]{margin:0}
.service-gateway .gateway-account-form{display:grid;gap:8px;max-width:440px;margin:0 auto 18px}
.service-gateway .gateway-account-form label{font-size:15px;font-weight:700;color:#fff}
.service-gateway .gateway-account-form input{box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:12px;border:1px solid #d4dce1;border-radius:10px;background:#fff;color:#172936;font:inherit}
.service-gateway .gateway-account-form input:focus-visible{outline:3px solid #f47c6c;outline-offset:3px}
.service-gateway .gateway-account-form input[aria-invalid="true"]{border-color:#b32e23}
.service-gateway .gateway-account-form small{color:#e1e7eb;line-height:1.5;font-size:12px}
.service-gateway .gateway-field-error{color:#ffd2ca;font-size:13px;line-height:1.4;min-height:1em}
.service-gateway .gateway-password{display:flex;gap:8px;align-items:center;min-width:0}
.service-gateway .gateway-password button{min-height:44px;padding:8px 12px;border:1px solid #ffffff80;border-radius:10px;background:#172936;color:#fff;cursor:pointer}
.service-gateway .gateway-account-form .gateway-auth-continue:disabled{opacity:.7;cursor:not-allowed;margin-top:12px}
.service-gateway [data-gateway-form-panel]>.gateway-auth-back{margin-top:12px}
.service-gateway .gateway-auth{--modal-coral:#f47c6c;position:fixed;inset:0;width:min(680px,calc(100% - 32px));max-height:calc(100svh - 32px);margin:auto;padding:64px 40px 28px;border:1px solid #ffffff45;border-radius:28px;background:#172936;color:#fff;box-shadow:0 24px 80px #05132080;overflow:auto;isolation:isolate}
.service-gateway .gateway-auth::before{content:"";position:absolute;inset:0;z-index:-2;background:var(--service-art) center / cover no-repeat;filter:blur(7px);opacity:.55;pointer-events:none}
.service-gateway .gateway-auth[data-service="vehicle"]{--service-art:url('../images/service-gateway/gateway-vehicle.png')}
.service-gateway .gateway-auth[data-service="cargo"]{--service-art:url('../images/service-gateway/gateway-cargo.png')}
.service-gateway .gateway-auth::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#12243180,#122431cc);pointer-events:none}
.service-gateway .gateway-auth::backdrop{background:#091828b3;backdrop-filter:blur(4px)}
.service-gateway .gateway-auth[open]{animation:gateway-dialog-enter 240ms ease-out both}
@keyframes gateway-dialog-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.service-gateway .gateway-auth [hidden]{display:none!important}
.service-gateway .gateway-auth-close{position:absolute;right:16px;top:16px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#fff;color:#243343;font-size:28px;line-height:1;cursor:pointer}
.service-gateway .gateway-auth h2{margin:0 0 14px;text-align:center;font-size:clamp(30px,4vw,44px);line-height:1.15;font-weight:800;color:#fff}
.service-gateway .gateway-auth p{overflow-wrap:anywhere}
.service-gateway .gateway-auth-subtitle{max-width:48ch;margin:0 auto 24px;text-align:center;color:#f3f5f7;font-size:16px;line-height:1.6}
.service-gateway .gateway-auth-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 24px;padding:0;list-style:none;counter-reset:step}
.service-gateway .gateway-auth-steps li{display:flex;align-items:center;gap:12px;min-width:0;padding:16px;border-radius:16px;background:#ffffff0d;font-size:15px;line-height:1.5;counter-increment:step}
.service-gateway .gateway-auth-step-icon{position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;color:var(--modal-coral)}
.service-gateway .gateway-auth-step-icon::before{content:counter(step);position:absolute;left:-3px;top:-10px;color:#fff;font-size:11px;font-weight:700}
.service-gateway .gateway-auth-step-icon svg{width:30px;height:30px}
.service-gateway .gateway-auth-note{margin:0 0 22px;text-align:center;font-size:14px;line-height:1.6;color:#e1e7eb}
.service-gateway .gateway-auth :is(.gateway-auth-continue,.gateway-auth-choices button){display:block;min-height:48px;padding:12px 20px;border:0;border-radius:12px;background:var(--modal-coral);color:#142535;font-size:16px;font-weight:700;cursor:pointer}
.service-gateway .gateway-auth-continue{width:100%}
.service-gateway .gateway-auth-choices{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-bottom:24px}
.service-gateway .gateway-auth-back{display:block;min-height:44px;margin:auto;padding:10px 16px;border:1px solid #ffffff80;border-radius:10px;background:transparent;color:#fff;font:inherit;cursor:pointer}
.service-gateway .gateway-auth-safety{margin:20px 0 0;text-align:center;color:#dbe3e8;font-size:12px;line-height:1.5}
.service-gateway .gateway-auth button:focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 6px #172936}
@media(max-width:767px){.service-gateway .gateway-auth{width:calc(100% - 24px);max-height:calc(100svh - 24px);padding:64px 22px max(24px,env(safe-area-inset-bottom));border-radius:22px}.service-gateway .gateway-auth-steps{grid-template-columns:1fr;gap:12px}.service-gateway .gateway-auth-steps li{padding:12px}.service-gateway .gateway-auth-subtitle{font-size:15px}}
@media(prefers-reduced-motion:reduce){.service-gateway .gateway-auth[open]{animation:none}}
.service-gateway{min-height:100vh;min-height:100svh;background:linear-gradient(180deg,rgba(255,238,215,.3) 0%,rgba(255,229,204,.13) 34%,rgba(13,31,48,.55) 68%,#102337 100%),url('../images/service-gateway/gateway-background.png') center center / cover no-repeat;color:var(--ink);isolation:isolate}
.service-gateway .gateway-main{width:min(1080px,calc(100% - 64px));margin-inline:auto;padding:24px 0 34px}
.service-gateway .gateway-intro{text-align:center;margin-bottom:30px}
.service-gateway .gateway-brand{display:block;width:300px;max-width:65%;margin:0 auto 12px;min-height:44px}
.service-gateway .gateway-brand img{display:block;width:100%;height:auto;object-fit:contain}
.service-gateway .gateway-intro h1{max-width:none;margin:0;color:#142535;font-size:clamp(30px,3.2vw,46px);font-weight:800;line-height:1.12;letter-spacing:-.035em;text-wrap:balance;text-shadow:0 1px 15px rgba(255,255,255,.35)}
.service-gateway .gateway-intro h1 span{display:block;margin-top:7px;font-size:.75em;line-height:1.25;font-weight:700}
.service-gateway .gateway-intro>p{margin:14px 0 12px;font-size:17px;line-height:1.5;color:#253647;font-weight:600}
.service-gateway .gateway-divider{display:block;width:54px;height:3px;border-radius:3px;background:var(--accent);margin-inline:auto}
.service-gateway .gateway-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;width:min(880px,100%);margin-inline:auto}
.service-gateway .gateway-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid rgba(255,255,255,.75);border-radius:26px;background:rgba(255,250,243,.91);box-shadow:0 18px 45px rgba(5,19,32,.24);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.service-gateway .gateway-art{position:relative;aspect-ratio:4 / 3;flex:none}
.service-gateway .gateway-art>img{display:block;width:100%;height:100%;object-fit:contain}
.service-gateway .gateway-decoration{position:absolute;right:22px;top:20px;display:grid;place-items:center;width:52px;height:52px;background:rgba(255,255,255,.95);border:1px solid rgba(255,255,255,.8);border-radius:50%;color:var(--accent);box-shadow:0 5px 15px #1526361a}
.service-gateway .gateway-decoration svg{width:28px;height:28px}
.service-gateway .gateway-card-copy{display:flex;flex-direction:column;align-items:center;flex:1;padding:20px 26px 24px;text-align:center}
.service-gateway .gateway-card h2{margin:0 0 9px;color:#172936;font-size:30px;font-weight:800;line-height:1.2;letter-spacing:-.025em}
.service-gateway .gateway-card-copy>p{max-width:30ch;min-height:48px;margin:0 0 20px;color:#42515b;font-size:15px;line-height:1.6}
.service-gateway .gateway-cta{position:relative;display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:58px;margin-top:auto;padding:12px 46px;border:0;border-radius:13px;background:linear-gradient(100deg,var(--accent),#d84627);color:#fff;font-size:17px;font-weight:700;line-height:1.3;cursor:pointer}
.service-gateway .gateway-cta-arrow{position:absolute;left:12px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#fff;color:var(--accent)}
.service-gateway .gateway-cta-arrow svg{width:20px;height:20px}
.service-gateway .gateway-cta:disabled{cursor:not-allowed}
.service-gateway .gateway-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:40px 0 0;padding:0;color:#fff}
.service-gateway .gateway-benefits li{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;padding:6px 18px}
.service-gateway .gateway-benefits li+li{border-left:1px solid rgba(255,255,255,.25)}
.service-gateway .gateway-benefit-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:rgba(8,22,36,.45)}
.service-gateway .gateway-benefit-icon svg{width:25px;height:25px}
.service-gateway .gateway-benefits strong{display:block;font-size:15px;font-weight:700;line-height:1.3}
.service-gateway .gateway-benefits div>span{display:block;margin-top:5px;color:#e7eaf0;font-size:12px;line-height:1.5}
.service-gateway .gateway-skip{position:absolute;top:10px;left:10px;z-index:2;transform:translateY(-180%);padding:12px 18px;border-radius:8px;background:#fff;color:var(--ink)}
.service-gateway .gateway-skip:focus{transform:none}
.service-gateway :is(a,button):focus-visible{outline:3px solid #fff;outline-offset:4px;box-shadow:0 0 0 6px #a73525}
.service-gateway .gateway-no-script{padding:16px;background:#fff;border-radius:12px;text-align:center}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .service-gateway .gateway-card{transition:transform 180ms ease,box-shadow 180ms ease}
 .service-gateway .gateway-card:hover{transform:translateY(-4px);box-shadow:0 22px 48px rgba(5,19,32,.3)}
 .service-gateway .gateway-cta:not(:disabled):hover{filter:brightness(.96)}
}
@media(min-width:768px) and (max-width:1023px){
 .service-gateway .gateway-main{width:calc(100% - 48px);padding-top:20px}
 .service-gateway .gateway-services{gap:22px}
 .service-gateway .gateway-card-copy{padding:18px 20px 22px}
 .service-gateway .gateway-card h2{font-size:27px}
 .service-gateway .gateway-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 0;margin-top:30px}
 .service-gateway .gateway-benefits li:nth-child(odd){border-left:0}
}
@media(max-width:767px){
 .service-gateway{background-position:64% top}
 .service-gateway .gateway-main{width:calc(100% - 36px);padding:24px 0 30px}
 .service-gateway .gateway-brand{width:240px;margin-bottom:16px}
 .service-gateway .gateway-intro{margin-bottom:25px}
 .service-gateway .gateway-intro h1{font-size:30px;line-height:1.15}
 .service-gateway .gateway-intro h1 span{margin-top:9px;font-size:23px}
 .service-gateway .gateway-intro>p{font-size:14px;margin-top:14px}
 .service-gateway .gateway-services{grid-template-columns:1fr;gap:24px;max-width:440px}
 .service-gateway .gateway-card-copy{padding:20px 22px 22px}
 .service-gateway .gateway-card h2{font-size:28px}
 .service-gateway .gateway-card-copy>p{min-height:0}
 .service-gateway .gateway-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 0;margin-top:30px}
 .service-gateway .gateway-benefits li{align-items:flex-start;padding:0 10px;gap:8px}
 .service-gateway .gateway-benefits li:nth-child(odd){border-left:0}
 .service-gateway .gateway-benefit-icon{flex-basis:34px;width:34px;height:34px}
 .service-gateway .gateway-benefit-icon svg{width:21px;height:21px}
 .service-gateway .gateway-benefits strong{font-size:13px}
 .service-gateway .gateway-benefits div>span{font-size:11px}
}
@media(max-width:360px){
 .service-gateway .gateway-benefits{grid-template-columns:1fr;gap:20px}
 .service-gateway .gateway-benefits li{justify-content:flex-start;padding-inline:18px;border-left:0}
}

/* Gateway UX only; no backend success contract is inferred. */
.service-gateway .gateway-auth :is(.gateway-auth-continue,.gateway-auth-choices button),
.service-gateway .gateway-auth :is(.gateway-auth-continue,.gateway-auth-choices button):is(:hover,:active,:focus-visible){color:#fff;background:#bf3f2f}
.service-gateway .gateway-card{cursor:pointer}
.service-gateway .gateway-cta-arrow{transition:left 300ms ease}
.service-gateway .gateway-card.is-activating{transform:translateY(-3px);box-shadow:0 22px 48px rgba(5,19,32,.3)}
.service-gateway .gateway-card.is-activating .gateway-cta-arrow{left:calc(100% - 44px)}
.service-gateway .gateway-registration-success{padding:24px;border-radius:20px;background:#edf9f0;color:#173d28;text-align:center}
.service-gateway .gateway-registration-success h3{margin:12px 0;font-size:clamp(24px,3vw,32px);line-height:1.2}
.service-gateway .gateway-registration-success p{color:#173d28;line-height:1.6}
.service-gateway .gateway-success-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto;border-radius:50%;background:#d0efd9;color:#176340}
.service-gateway .gateway-success-icon svg{width:36px;height:36px}
.service-gateway .gateway-registration-success .gateway-auth-continue{background:#176340}
.service-gateway .gateway-no-script details{margin:12px 0;text-align:left}
.service-gateway .gateway-no-script summary{cursor:pointer;font-weight:700}
@media(prefers-reduced-motion:no-preference){.service-gateway .gateway-registration-success:not([hidden]){animation:gateway-success-enter 240ms ease both}@keyframes gateway-success-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){.service-gateway .gateway-cta-arrow{transition:none}.service-gateway .gateway-card.is-activating{transform:none}.service-gateway .gateway-registration-success{animation:none}}

/* Full-height square and centered label; the established service destinations are unchanged. */
.service-gateway .gateway-cta{height:58px;min-height:58px;padding-inline:64px;border-radius:0;background:#bf3f2f}
.service-gateway .gateway-cta-arrow{left:0;top:0;width:58px;height:58px;border-radius:0;transition:left 300ms ease}
.service-gateway .gateway-card.is-activating .gateway-cta-arrow{left:calc(100% - 58px)}
.service-gateway .gateway-cta>span:not(.gateway-cta-arrow){opacity:1;transition:opacity 300ms ease}
.service-gateway .gateway-card.is-activating .gateway-cta>span:not(.gateway-cta-arrow){opacity:0}
@media(prefers-reduced-motion:reduce){.service-gateway .gateway-cta-arrow,.service-gateway .gateway-cta>span:not(.gateway-cta-arrow){transition:none}}

.service-gateway[data-gateway-enhanced] .gateway-service-fallback{display:none}

/* Country selection and customer-result panels; no backend outcome is inferred. */
.service-gateway .gateway-account-form select{box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:12px;border:1px solid #d4dce1;border-radius:10px;background:#fff;color:#172936;font:inherit}
.service-gateway .gateway-account-form select:focus-visible{outline:3px solid #fff;outline-offset:3px;border-color:#bf3f2f}
.service-gateway [id='gateway-signup-phone-hint'] strong{font-weight:700;line-height:1.6}
.service-gateway :is(.gateway-registration-existing,.gateway-registration-uncertain){padding:24px;border-radius:20px;background:#eef5fc;color:#183349;text-align:center}
.service-gateway :is(.gateway-registration-existing,.gateway-registration-uncertain) h3{margin:12px 0;font-size:clamp(24px,3vw,32px);line-height:1.2}
.service-gateway :is(.gateway-registration-existing,.gateway-registration-uncertain) p{color:#183349;line-height:1.6}
.service-gateway :is(.gateway-registration-existing,.gateway-registration-uncertain) .gateway-success-icon{background:#d9eaf7;color:#245b80}
.service-gateway .gateway-registration-uncertain{background:#f4f6fa}
.service-gateway .gateway-registration-uncertain .gateway-success-icon{background:#e4e9f1;color:#34465c}

.service-gateway :is(.gateway-registration-success,.gateway-registration-existing,.gateway-registration-uncertain) button:focus-visible{outline:3px solid #183349;outline-offset:3px}
/* Result panels only: one state title and one branded Sign In action. */
.service-gateway .gateway-auth :is(.gateway-registration-success,.gateway-registration-existing,.gateway-registration-uncertain) .gateway-auth-continue{background:#F15B47;color:#fff;font-size:19px;font-weight:700}
.service-gateway .gateway-auth :is(.gateway-registration-success,.gateway-registration-existing,.gateway-registration-uncertain) .gateway-auth-continue:hover{background:#F15B47;color:#fff;filter:brightness(.94)}
.service-gateway .gateway-auth :is(.gateway-registration-success,.gateway-registration-existing,.gateway-registration-uncertain) .gateway-auth-continue:focus-visible{background:#F15B47;color:#fff;outline:3px solid #183349;outline-offset:3px}

/* Touch cards preview once in view; a tap opens immediately. Desktop rules stay intact. */
@media (hover:none), (pointer:coarse){
 @media(prefers-reduced-motion:no-preference){
  .service-gateway .gateway-card.is-touch-preview .gateway-cta-arrow{animation:gateway-touch-arrow 640ms ease both}
  .service-gateway .gateway-card.is-touch-preview .gateway-cta>span:not(.gateway-cta-arrow){animation:gateway-touch-label 640ms ease both}
  .service-gateway .gateway-card.is-touch-preview{animation:gateway-touch-card 640ms ease both}
  @keyframes gateway-touch-arrow{0%,100%{left:0}50%{left:calc(100% - 58px)}}
  @keyframes gateway-touch-label{0%,100%{opacity:1}50%{opacity:0}}
  @keyframes gateway-touch-card{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
 }
}
