/* ============================================
   HirePlus Technology — Stylesheet
   Palette: Navy Deep #0B1E3D, Navy Mid #16305C,
   Brand Blue #2E5FAE, Brand Orange #F5A623,
   Brand Red #E23A4E, Brand Green #3CAA5C
   Type: Sora (display) / Inter (body)
   ============================================ */

:root{
  --navy-deep:#0B1E3D;
  --navy-mid:#16305C;
  --navy-soft:#1E3A66;
  --brand-blue:#2E5FAE;
  --brand-orange:#F5A623;
  --brand-red:#E23A4E;
  --brand-green:#3CAA5C;
  --ink:#10182B;
  --ink-soft:#4A5468;
  --paper:#F7F8FA;
  --paper-alt:#EFF2F6;
  --white:#FFFFFF;
  --line:#E2E6ED;
  --line-dark:rgba(255,255,255,.18);

  --font-display:'Sora', sans-serif;
  --font-body:'Inter', sans-serif;

  --container:1240px;
  --radius:6px;
  --ease:cubic-bezier(.4,0,.2,1);
  --gutter:max(32px, calc((100vw - var(--container)) / 2 + 32px));
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  margin:0;
  line-height:1.15;
  font-weight:700;
  letter-spacing:-0.01em;
}
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

:focus-visible{
  outline:2.5px solid var(--brand-orange);
  outline-offset:3px;
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

/* -------- Buttons -------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 28px;
  border-radius:var(--radius);
  font-family:var(--font-display);
  font-weight:600;
  font-size:15px;
  border:1.5px solid transparent;
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:var(--brand-red);
  color:var(--white);
}
.btn-primary:hover{ background:#c72c3e; }

.btn-outline-light{
  border-color:rgba(255,255,255,.55);
  color:var(--white);
}
.btn-outline-light:hover{
  background:rgba(255,255,255,.12);
  border-color:#fff;
}

.btn-outline-dark{
  border-color:var(--navy-deep);
  color:var(--navy-deep);
}
.btn-outline-dark:hover{
  background:var(--navy-deep);
  color:var(--white);
}

.btn-text{
  font-family:var(--font-display);
  font-weight:600;
  font-size:15px;
  color:var(--brand-blue);
  border-bottom:2px solid var(--brand-blue);
  padding-bottom:2px;
}

/* -------- Section labels / headings -------- */
.eyebrow{
  font-family:var(--font-display);
  font-size:14px;
  font-weight:600;
  color:var(--brand-red);
  margin-bottom:14px;
  display:block;
}
.eyebrow.on-dark{ color:var(--brand-orange); }

.section-head{
  max-width:640px;
  margin-bottom:48px;
}
.section-head h2{
  font-size:clamp(28px,3.4vw,42px);
  color:var(--ink);
}
.section-head p{
  margin-top:16px;
  font-size:17px;
  color:var(--ink-soft);
}
.section-head.on-dark h2{ color:var(--white); }
.section-head.on-dark p{ color:rgba(255,255,255,.72); }

.section-pad{ padding:96px 0; }
@media (max-width:768px){
  .section-pad{ padding:64px 0; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:200;
  padding:18px 0;
  transition:background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.solid{
  background:var(--navy-deep);
  padding:10px 0;
  box-shadow:0 4px 20px rgba(0,0,0,.18);
}
.site-header.solid .logo-link img{ height:44px; }
.logo-link img{ transition:height .3s var(--ease); }
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.logo-link img{ height:56px; width:auto; }

.main-nav{ display:flex; align-items:center; gap:36px; }
.main-nav a{
  font-family:var(--font-display);
  font-size:15px;
  font-weight:500;
  color:var(--white);
  position:relative;
  padding:4px 0;
}
.main-nav a::after{
  content:'';
  position:absolute;
  left:0; bottom:-2px;
  width:0; height:2px;
  background:var(--brand-orange);
  transition:width .25s var(--ease);
}
.main-nav a:hover::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:20px; }
.main-nav .btn-primary.mobile-show{ display:none; }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  width:32px; height:24px;
  position:relative;
}
.nav-toggle span{
  position:absolute; left:0; right:0; height:2px;
  background:#fff; transition:transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span:nth-child(1){ top:0; }
.nav-toggle span:nth-child(2){ top:11px; }
.nav-toggle span:nth-child(3){ top:22px; }
.nav-toggle.open span:nth-child(1){ transform:translateY(11px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-11px) rotate(-45deg); }

@media (max-width:900px){
  .main-nav{
    position:fixed;
    top:0; right:0;
    height:100vh;
    width:min(320px,80vw);
    background:var(--navy-deep);
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    padding:100px 32px 32px;
    gap:26px;
    transform:translateX(100%);
    transition:transform .35s var(--ease);
  }
  .main-nav.open{ transform:translateX(0); }
  .header-actions .btn-primary{ display:none; }
  .main-nav .btn-primary.mobile-show{ display:inline-flex; margin-top:8px; }
  .nav-toggle{ display:block; }
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero{
  position:relative;
  height:100vh;
  height:100svh;
  min-height:640px;
  overflow:hidden;
  background:var(--navy-deep);
}
.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 1.1s var(--ease);
}
.hero-slide.active{ opacity:1; z-index:2; }
.hero-slide img{
  width:100%; height:100%;
  object-fit:cover;
  object-position:center;
}
.hero-slide::before{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(6,14,30,.55) 0%, rgba(6,14,30,.1) 45%, transparent 65%);
}
.hero-slide::after{
  content:''; position:absolute; inset:0 0 auto 0; height:150px; pointer-events:none;
  background:linear-gradient(180deg, rgba(6,14,30,.72) 0%, rgba(6,14,30,0) 100%);
}
.hero-slide[data-theme="light"]::before{ background:linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 40%, transparent 70%); }

.hero-content{
  position:absolute;
  inset:0;
  z-index:5;
  display:flex;
  align-items:center;
  padding-top:96px; /* keep clear of the fixed header */
}
.hero-text{
  max-width:calc(var(--gutter) + 600px);
  padding:0 32px 0 var(--gutter);
  color:#fff;
  opacity:0;
  transform:translateY(14px);
  transition:opacity .7s var(--ease) .25s, transform .7s var(--ease) .25s;
}
.hero-text.visible{ opacity:1; transform:translateY(0); }
.hero-text .eyebrow{ color:var(--brand-orange); }
.hero-text h1{
  font-size:clamp(30px,min(4.6vw,7.2vh),58px);
  color:#fff;
}
.hero-text p{
  margin-top:20px;
  font-size:18px;
  color:rgba(255,255,255,.86);
  max-width:480px;
}
.hero-cta{ margin-top:32px; display:flex; gap:16px; flex-wrap:wrap; }

/* Light-theme slide: dark text over a soft white fade (swap data-theme to "dark" in index.html for a dark image) */
.hero-text--light .eyebrow{ color:var(--brand-red); }
.hero-text--light h1{ color:var(--navy-deep); }
.hero-text--light p{ color:var(--ink-soft); }
.btn-navy{ background:var(--navy-deep); color:#fff; }
.btn-navy:hover{ background:var(--navy-mid); }

.hero-controls{
  position:absolute;
  left:var(--gutter); bottom:36px;
  z-index:10;
  display:flex;
  gap:12px;
}
.hero-dot{
  width:34px; height:24px; padding:10px 0;
  background:rgba(255,255,255,.35);
  background-clip:content-box;
  border:none;
  transition:background .3s var(--ease);
}
.hero-dot.active{ background:var(--brand-orange); background-clip:content-box; }

.hero-scroll-cue{
  position:absolute;
  right:var(--gutter); bottom:40px;
  z-index:10;
  color:rgba(255,255,255,.7);
  font-family:var(--font-display);
  font-size:13px;
  display:flex;
  align-items:center;
  gap:10px;
}
.hero-scroll-cue .line{
  width:1px; height:34px;
  background:rgba(255,255,255,.4);
}
@media (max-width:640px){
  .hero-scroll-cue{ display:none; }
}
@media (max-width:900px){
  .hero-text{ padding-left:24px; padding-right:24px; }
  .hero-controls{ left:24px; }
  .hero-slide::before{ background:linear-gradient(180deg, rgba(6,14,30,.55) 0%, rgba(6,14,30,.72) 100%); }
  .hero-slide[data-theme="light"]::before{ background:linear-gradient(180deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.7) 100%); }
}
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition-duration:.01ms !important; }
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust-strip{
  background:var(--paper);
  border-bottom:1px solid var(--line);
  padding:28px 0;
}
.trust-strip .container{
  display:flex;
  flex-wrap:wrap;
  gap:32px 48px;
  justify-content:space-between;
  align-items:center;
}
.trust-item{
  display:flex;
  align-items:baseline;
  gap:10px;
}
.trust-item .num{
  font-family:var(--font-display);
  font-size:26px;
  font-weight:700;
  color:var(--navy-deep);
}
.trust-item .label{
  font-size:14px;
  color:var(--ink-soft);
}

/* ============================================
   WHO WE ARE / PILLARS
   ============================================ */
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:start;
}
.about-copy h2{
  font-size:clamp(28px,3.4vw,40px);
}
.about-copy p{
  margin-top:20px;
  font-size:17px;
  color:var(--ink-soft);
}
.about-copy p + p{ margin-top:14px; }

.pillar-list{ display:flex; flex-direction:column; gap:0; }
.pillar{
  display:flex;
  gap:20px;
  padding:24px 0;
  border-top:1px solid var(--line);
}
.pillar:last-child{ border-bottom:1px solid var(--line); }
.pillar-icon{
  flex:none;
  width:48px; height:48px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
}
.pillar-icon svg{ width:22px; height:22px; }
.pillar:nth-child(1) .pillar-icon{ background:var(--brand-blue); }
.pillar:nth-child(2) .pillar-icon{ background:var(--brand-orange); }
.pillar:nth-child(3) .pillar-icon{ background:var(--brand-green); }
.pillar h3{
  font-size:18px;
  margin-bottom:6px;
}
.pillar p{
  font-size:15px;
  color:var(--ink-soft);
}

@media (max-width:860px){
  .about-grid{ grid-template-columns:1fr; gap:40px; }
}

/* ============================================
   IMAGE-BACKED FEATURE SECTIONS
   (Recruitment / VMS / Why HirePlus / Industries)
   ============================================ */
.feature-section{
  position:relative;
  min-height:640px;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-top:6px solid var(--navy-deep);
  box-shadow:inset 0 14px 24px -14px rgba(0,0,0,.45);
}
.feature-recruitment{ border-top-color:var(--brand-blue); }
.feature-vms{ border-top-color:var(--brand-green); }
.feature-why{ border-top-color:var(--brand-orange); }
.feature-industries{ border-top-color:var(--brand-red); }

.feature-section img.bg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
}
.feature-section .overlay-scrim{
  position:absolute; inset:0;
}
.feature-inner{
  position:relative;
  z-index:3;
  width:100%;
}
.feature-box{ max-width:480px; }
.feature-box .eyebrow{ margin-bottom:12px; }
.feature-box h2{ font-size:clamp(26px,3vw,38px); }
.feature-box .lead{
  margin-top:16px;
  font-size:16.5px;
}
.feature-list{
  margin-top:28px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.feature-list li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:15.5px;
}
.feature-list li .dot{
  flex:none;
  width:8px; height:8px;
  border-radius:50%;
  margin-top:7px;
}
.feature-box .btn{ margin-top:32px; }

/* Recruitment (light bg photo) */
.feature-recruitment .overlay-scrim{
  background:linear-gradient(100deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.86) 38%, rgba(255,255,255,0) 62%);
}
.feature-recruitment .feature-box h2,
.feature-recruitment .feature-box .lead{ color:var(--ink); }
.feature-recruitment .lead{ color:var(--ink-soft); }
.feature-recruitment .feature-list li{ color:var(--ink); }
.feature-recruitment .dot{ background:var(--brand-red); }

/* VMS + Industries: copy sits on the right */
.feature-vms .feature-inner,
.feature-industries .feature-inner{ display:flex; justify-content:flex-end; }

/* VMS Technology (gradient bg photo) */
.feature-vms .overlay-scrim{
  background:linear-gradient(270deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.92) 40%, rgba(255,255,255,0) 63%);
}
.feature-vms .feature-box h2{ color:var(--ink); }
.feature-vms .lead{ color:var(--ink-soft); }
.feature-vms .feature-list li{ color:var(--ink); }
.feature-vms .dot{ background:var(--brand-blue); }

/* Why HirePlus (dark bg photo) */
.feature-why .overlay-scrim{
  background:linear-gradient(100deg, rgba(6,14,30,.92) 0%, rgba(6,14,30,.62) 40%, rgba(6,14,30,0) 68%);
}
.feature-why .feature-box h2{ color:#fff; }
.feature-why .lead{ color:rgba(255,255,255,.82); }
.feature-why .feature-list li{ color:rgba(255,255,255,.92); }
.feature-why .dot{ background:var(--brand-orange); }

/* Industries (dark bg photo) */
.feature-industries{ min-height:680px; }
.feature-industries .overlay-scrim{
  background:linear-gradient(270deg, rgba(6,14,30,.5) 0%, rgba(6,14,30,.25) 40%, rgba(6,14,30,0) 60%);
}
.feature-industries .feature-box{ max-width:520px; }
.feature-industries .feature-box h2{ color:#fff; }
.feature-industries .lead{ color:rgba(255,255,255,.82); }

.chip-grid{
  margin-top:28px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.chip{
  padding:9px 16px;
  border:1.5px solid rgba(255,255,255,.35);
  border-radius:999px;
  font-size:14px;
  font-family:var(--font-display);
  font-weight:500;
  color:#fff;
}

@media (max-width:768px){
  .feature-section{ min-height:auto; padding:80px 0; }
  .feature-recruitment .overlay-scrim,
  .feature-vms .overlay-scrim{
    background:linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 55%, rgba(255,255,255,.55) 100%);
  }
  .feature-why .overlay-scrim,
  .feature-industries .overlay-scrim{
    background:linear-gradient(180deg, rgba(6,14,30,.9) 0%, rgba(6,14,30,.78) 60%, rgba(6,14,30,.35) 100%);
  }
  .feature-box{ max-width:100%; }
}

/* ============================================
   WHAT WE DO (services overview cards)
   ============================================ */
.what-we-do{ background:var(--paper); }
.wwd-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.wwd-card{
  background:var(--white);
  padding:40px 32px;
}
.wwd-card .index{
  font-family:var(--font-display);
  font-size:13px;
  font-weight:600;
  color:var(--brand-red);
  margin-bottom:20px;
  display:block;
}
.wwd-card h3{ font-size:20px; margin-bottom:12px; }
.wwd-card p{ font-size:15px; color:var(--ink-soft); }

@media (max-width:860px){
  .wwd-grid{ grid-template-columns:1fr; }
}

/* ============================================
   CTA / FOOTER
   ============================================ */
.footer-cta{
  position:relative;
  min-height:520px;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.footer-cta img.bg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
}
.footer-cta .overlay-scrim{
  position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(6,14,30,.9) 0%, rgba(6,14,30,.6) 42%, rgba(6,14,30,.05) 68%);
}
.footer-cta-inner{
  position:relative; z-index:3;
  max-width:560px;
}
.footer-cta-inner h2{
  font-size:clamp(28px,3.6vw,44px);
  color:#fff;
}
.footer-cta-inner p{
  margin-top:18px;
  font-size:17px;
  color:rgba(255,255,255,.82);
  max-width:460px;
}
.footer-cta-inner .hero-cta{ margin-top:32px; }

@media (max-width:768px){
  .footer-cta{ min-height:auto; padding:72px 0; }
  .footer-cta .overlay-scrim{
    background:linear-gradient(180deg, rgba(6,14,30,.92) 0%, rgba(6,14,30,.8) 60%, rgba(6,14,30,.45) 100%);
  }
}

.site-footer{
  background:var(--navy-deep);
  color:rgba(255,255,255,.72);
  padding:64px 0 28px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:40px;
  padding-bottom:48px;
  border-bottom:1px solid var(--line-dark);
}
.footer-brand img{ height:48px; width:auto; margin-bottom:16px; }
.footer-brand p{ font-size:14.5px; max-width:280px; color:rgba(255,255,255,.6); }
.footer-col h4{
  font-family:var(--font-display);
  font-size:15px;
  color:#fff;
  margin-bottom:18px;
}
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{
  font-size:14.5px;
  color:rgba(255,255,255,.68);
  transition:color .2s var(--ease);
}
.footer-col a:hover{ color:var(--brand-orange); }
.footer-social{ display:flex; gap:14px; margin-top:20px; }
.footer-social a{
  width:36px; height:36px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.footer-social a:hover{ border-color:var(--brand-orange); background:rgba(245,166,35,.12); }
.footer-social svg{ width:16px; height:16px; }

.footer-bottom{
  padding-top:24px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
  font-size:13.5px;
  color:rgba(255,255,255,.5);
}
.footer-bottom .legal-links{ display:flex; gap:20px; }

@media (max-width:860px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* ============================================
   CONTACT POPUP
   ============================================ */
.modal{
  position:fixed; inset:0; z-index:300;
  display:grid; place-items:center;
  padding:24px;
  background:rgba(6,14,30,.74);
  backdrop-filter:blur(5px);
  animation:modalFade .25s var(--ease);
}
.modal[hidden]{ display:none; }
@keyframes modalFade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes modalRise{ from{ opacity:0; transform:translateY(16px) scale(.985); } to{ opacity:1; transform:none; } }

.modal-dialog{
  position:relative;
  display:grid;
  grid-template-columns:minmax(380px,460px) 1fr;
  width:min(1100px,100%);
  max-height:calc(100vh - 48px);
  max-height:calc(100svh - 48px);
  background:var(--white);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.5);
  animation:modalRise .35s var(--ease);
}
.modal-close{
  position:absolute; top:14px; right:14px; z-index:5;
  width:40px; height:40px;
  display:grid; place-items:center;
  border:none; border-radius:50%;
  background:var(--paper-alt);
  color:var(--ink);
  transition:background .2s var(--ease), color .2s var(--ease);
}
.modal-close:hover{ background:var(--navy-deep); color:#fff; }
.modal-close svg{ width:18px; height:18px; }

/* ---- left artwork panel ---- */
.modal-aside{
  position:relative;
  display:flex; flex-direction:column;
  padding:0 40px 36px;
  color:#fff;
  background-color:#010e28; /* matches the artwork’s bottom edge */
  /* fixed size so the logo never rescales/crops when the form grows (e.g. error messages) */
  background-size:1000px auto;
  background-position:left top;
  background-repeat:no-repeat;
  min-height:560px;
}
.aside-spacer{ flex:0 0 36%; }
.aside-copy{ flex:1; }
.aside-copy h3{ font-size:26px; line-height:1.2; }
.aside-copy p{ margin-top:12px; font-size:15px; color:rgba(255,255,255,.78); max-width:340px; }
.aside-contact{ margin-top:22px; display:flex; flex-direction:column; gap:12px; }
.aside-contact li{ display:flex; align-items:center; gap:12px; font-size:15px; }
.aside-contact svg{ width:18px; height:18px; flex:none; color:var(--brand-orange); }
.aside-contact a:hover{ color:var(--brand-orange); }
.aside-social{ display:flex; gap:12px; }
.aside-social a{
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius:50%;
  border:1.5px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.06);
  transition:background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.aside-social a:hover{ background:rgba(245,166,35,.18); border-color:var(--brand-orange); transform:translateY(-2px); }
.aside-social svg{ width:19px; height:19px; }

/* ---- right form panel ---- */
.modal-main{ overflow-y:auto; padding:40px 44px 36px; }
.modal-main h2{ font-size:clamp(24px,2.4vw,30px); color:var(--ink); padding-right:36px; }
.modal-main .eyebrow{ margin-bottom:10px; }
.modal-sub{ margin-top:8px; font-size:14px; color:var(--ink-soft); }
.req{ color:var(--brand-red); }

.form-grid{ margin-top:24px; display:grid; grid-template-columns:1fr 1fr; gap:16px 18px; }
.field{ display:flex; flex-direction:column; min-width:0; }
.field.full{ grid-column:1 / -1; }
.field label{
  font-family:var(--font-display);
  font-size:13px; font-weight:600;
  color:var(--navy-deep);
  margin-bottom:6px;
}
.field input,
.field select,
.field textarea{
  width:100%;
  font:inherit; font-size:15px;
  color:var(--ink);
  background:var(--white);
  border:1.5px solid #cfd6e2;
  border-radius:var(--radius);
  padding:12px 14px;
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input,
.field select{ height:48px; padding-top:0; padding-bottom:0; }
.field textarea{ resize:vertical; min-height:110px; line-height:1.5; }
.field input::placeholder,
.field textarea::placeholder{ color:#8b95a8; }
.field select{
  appearance:none; -webkit-appearance:none;
  padding-right:40px;
  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='%234A5468' stroke-width='2.4' 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 14px center;
  cursor:pointer;
}
.field input:hover,
.field select:hover,
.field textarea:hover{ border-color:#aab4c6; }
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--brand-blue);
  box-shadow:0 0 0 3.5px rgba(46,95,174,.18);
}
.field .invalid{ border-color:var(--brand-red); }
.field .invalid:focus{ box-shadow:0 0 0 3.5px rgba(226,58,78,.16); }
.err{ min-height:0; font-size:12.5px; color:var(--brand-red); margin-top:5px; }
.err:empty{ display:none; }

/* spam trap — off-screen, not display:none (some bots skip hidden fields) */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.form-status{
  margin-top:18px;
  padding:12px 14px;
  border-radius:var(--radius);
  background:#fdecee;
  border:1px solid #f6c3ca;
  color:#8f1d2c;
  font-size:14px;
}
.form-status[hidden]{ display:none; }
.form-status a{ text-decoration:underline; font-weight:600; }

.form-actions{ margin-top:22px; display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.form-actions .btn{ min-width:170px; justify-content:center; position:relative; }
.form-note{ font-size:12.5px; color:var(--ink-soft); flex:1; min-width:180px; }
.btn:disabled{ opacity:.85; cursor:progress; }
.spinner{
  display:none;
  width:18px; height:18px;
  border:2.5px solid rgba(255,255,255,.4);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .7s linear infinite;
}
.btn.loading .spinner{ display:inline-block; }
.btn.loading .btn-label{ opacity:.9; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* success state */
.form-success{
  min-height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  padding:48px 12px;
  gap:14px;
}
.form-success[hidden]{ display:none; }
.form-success:focus{ outline:none; }
.success-icon{
  width:72px; height:72px; border-radius:50%;
  display:grid; place-items:center;
  background:rgba(60,170,92,.14);
  color:var(--brand-green);
  margin-bottom:6px;
}
.success-icon svg{ width:34px; height:34px; }
.form-success h2{ padding:0; }
.form-success p{ max-width:380px; color:var(--ink-soft); font-size:16px; }
.form-success .btn{ margin-top:12px; }

/* tablet / phone */
@media (max-width:900px){
  .modal{ padding:0; place-items:end center; }
  .modal-dialog{
    grid-template-columns:1fr;
    grid-template-rows:auto minmax(0,1fr);
    width:100%;
    max-height:100svh; height:100svh;
    border-radius:0;
  }
  .modal-aside{
    min-height:0; height:112px;
    padding:0;
    background-size:560px auto;
    background-position:-8px -40px;
  }
  .aside-spacer,.aside-copy,.aside-social{ display:none; }
  .modal-close{ background:rgba(255,255,255,.92); }
  .modal-main{ padding:28px 22px 32px; }
}
@media (max-width:560px){
  .form-grid{ grid-template-columns:1fr; gap:14px; }
  .form-actions .btn{ width:100%; }
}
@media (prefers-reduced-motion:reduce){
  .modal,.modal-dialog{ animation:none; }
}
