/* Layout final: conținut accesibil; fără înălțimi fixe pe formulare. */
body.public-portal.step-book_verify .portal-back-nav,body.public-portal.step-book_edit .portal-back-nav{display:none!important}
body:is(.public-portal,.public-programare) .portal-shell .portal-back-nav{min-height:40px!important}
@media(min-width:901px) and (max-height:820px){
 body:is(.public-portal,.public-programare) .portal-shell{gap:12px!important}
 body:is(.public-portal,.public-programare) .portal-shell>.p-card.calendar-card{padding:14px!important}
 body:is(.public-portal,.public-programare) .portal-shell .p-card.calendar-card button.gc-cell{height:30px!important;min-height:30px!important;padding:4px!important;line-height:20px!important;margin:0!important}
 body:is(.public-portal,.public-programare) .portal-shell .p-card.calendar-card .gc-cell.blank{height:30px!important;min-height:30px!important}
 body:is(.public-portal,.public-programare) .portal-vehicle-strip>div{display:flex!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important}
 body:is(.public-portal,.public-programare) .portal-vehicle-strip strong{font-size:24px!important;margin:0!important}
 body:is(.public-portal,.public-programare) .portal-vehicle-strip small{margin:0!important}
 body:is(.public-portal,.public-programare) .gc-monthnav{margin:10px 0!important}
}

/* Mobile forms stay single-column and the photo acts as a clean full-width header. */
@media(max-width:760px){
 body:is(.public-portal,.public-programare){overflow-x:hidden!important;background:#15232d!important}
 body:is(.public-portal,.public-programare) .gentrom-hero{height:250px!important;min-height:250px!important;width:100vw!important;margin:0!important;padding:0!important;background-position:center 42%!important;background-size:cover!important}
 body:is(.public-portal,.public-programare) .hero-inner{width:100%!important;height:100%!important;padding:14px 16px!important;box-sizing:border-box!important}
 body:is(.public-portal,.public-programare) .hero-copy{left:16px!important;bottom:20px!important;max-width:calc(100% - 32px)!important}
 body:is(.public-portal,.public-programare) .hero-copy h1{font-size:34px!important;text-shadow:0 2px 10px #000!important}
 body:is(.public-portal,.public-programare) .portal-shell>.p-card,body:is(.public-portal,.public-programare) .portal-calendar-shell>.p-card{width:calc(100% - 24px)!important;margin:14px auto 28px!important;padding:20px 16px!important;box-sizing:border-box!important}
 body.public-portal.step-wrong .p-card form,body.public-portal.step-book_edit .p-card form,body.public-programare #publicBookingForm{display:flex!important;flex-direction:column!important;gap:14px!important;width:100%!important;max-width:none!important;margin:0!important}
 body.public-portal.step-wrong .p-card form>*,body.public-portal.step-book_edit .p-card form>*,body.public-programare #publicBookingForm>*{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
 body.public-portal.step-wrong .p-card form label,body.public-portal.step-book_edit .p-card form label,body.public-programare #publicBookingForm label{display:flex!important;flex-direction:column!important;gap:6px!important}
 body.public-portal.step-wrong .p-card form input,body.public-portal.step-wrong .p-card form textarea,body.public-portal.step-book_edit .p-card form input,body.public-portal.step-book_edit .p-card form select{width:100%!important;min-width:0!important;box-sizing:border-box!important}
 body.public-portal.step-wrong .p-card form button,body.public-portal.step-book_edit .p-card form button,body.public-programare #publicBookingForm button{width:100%!important;max-width:none!important;white-space:normal!important;align-self:stretch!important}
}

/* Subtle entrance and hover motion; users who prefer less motion are respected. */
@keyframes gentromFadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
body:is(.public-portal,.public-programare) .gentrom-hero .hero-copy{animation:gentromFadeUp .55s ease-out both}
body:is(.public-portal,.public-programare) .portal-shell>.p-card{animation:gentromFadeUp .5s .08s ease-out both}
body:is(.public-portal,.public-programare) .hero-links a,body:is(.public-portal,.public-programare) .p-card button{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease}
body:is(.public-portal,.public-programare) .hero-links a:hover,body:is(.public-portal,.public-programare) .p-card button:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,120,0,.22)}
@media(prefers-reduced-motion:reduce){body:is(.public-portal,.public-programare) .gentrom-hero .hero-copy,body:is(.public-portal,.public-programare) .portal-shell>.p-card{animation:none!important}body:is(.public-portal,.public-programare) .hero-links a,body:is(.public-portal,.public-programare) .p-card button{transition:none!important}}

/* Loading state must be immediately visible while the calendar request is in flight. */
body:is(.public-portal,.public-programare) .gc-loading{font-weight:800!important;color:#172633!important;background:#fff8ee!important;border:2px solid #ff8500!important;border-radius:12px!important;padding:22px 16px!important;text-align:center!important;box-shadow:0 0 0 4px rgba(255,133,0,.12)!important;animation:gentromPulse 1.15s ease-in-out infinite alternate}
@keyframes gentromPulse{from{opacity:.72;transform:scale(.99)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){body:is(.public-portal,.public-programare) .gc-loading{animation:none!important}}

/* Keep availability dots below the day number, never over the glyph. */
body:is(.public-portal,.public-programare) .gc-cell{line-height:1!important;padding:8px 0 13px!important;overflow:hidden!important}
body:is(.public-portal,.public-programare) .gc-cell i{bottom:4px!important;z-index:0!important}
body.public-portal.step-main .portal-shell .gentrom-hero{height:auto!important;min-height:0!important}
body.public-portal.step-main .portal-shell>.p-card{margin:0 auto!important;padding:22px 26px!important}
body:is(.public-portal,.public-programare) .portal-calendar-shell .gc-layout{min-height:0!important}
body:is(.public-portal,.public-programare) .portal-vehicle-strip{padding:12px 14px!important}
body:is(.public-portal,.public-programare) .portal-back-nav{display:flex!important;align-items:center!important}
body:is(.public-portal,.public-programare) .portal-back-nav a{margin:0!important;min-height:40px!important;line-height:20px!important;padding:10px 14px!important;box-sizing:border-box}
body.public-portal.step-main .portal-back-nav,body.public-portal.step-options .portal-back-nav{display:none!important}
body:is(.public-portal,.public-programare) .portal-shell .gentrom-hero{background:rgba(4,12,20,.60)!important}
body.public-portal.step-book_edit .g55-form-actions{justify-content:center!important}
@media(max-width:760px){body:is(.public-portal,.public-programare) .hero-inner{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important}body:is(.public-portal,.public-programare) .hero-copy{order:0}body:is(.public-portal,.public-programare) .hero-top{order:1;margin:0!important}}
body:is(.public-portal,.public-programare) .portal-shell{background:transparent!important}
body:is(.public-portal,.public-programare) .footer-inner span::before,body:is(.public-portal,.public-programare) .footer-inner span::after{content:none!important;display:none!important}
body.public-portal.step-book_category .choice[value^="REMORCA_"]{display:flex!important}
body:is(.public-portal,.public-programare) .portal-hero-points{display:none!important}
html:has(body.public-portal),html:has(body.public-programare){min-height:100%;background:#15232d}
body:is(.public-portal,.public-programare){margin:0!important;min-height:100dvh!important;background:#15232d url('../img/gentrom-statie-user-sunset.png') center top / contain no-repeat fixed!important}
body:is(.public-portal,.public-programare) .portal-shell{display:flex!important;flex-direction:column!important;gap:16px!important;width:100%!important;max-width:none!important;min-height:100dvh!important;margin:0!important;padding:0!important;box-sizing:border-box}
body:is(.public-portal,.public-programare) .gentrom-hero{height:auto!important;min-height:0!important;margin:0!important;padding:18px 24px!important;background:rgba(4,12,20,.60)!important;width:auto!important;flex:none}
body:is(.public-portal,.public-programare) .hero-inner{position:static!important;display:flex!important;align-items:center;justify-content:space-between;gap:20px;width:min(1180px,100%)!important;padding:0!important;margin:auto!important}
body:is(.public-portal,.public-programare) .hero-top{display:block!important;order:2}
body:is(.public-portal,.public-programare) .hero-copy{position:static!important;margin:0!important;padding:0!important;transform:none!important}
body:is(.public-portal,.public-programare) .hero-copy h1{font-size:36px!important;line-height:1.1!important;margin:0!important}
body:is(.public-portal,.public-programare) .hero-copy p,body:is(.public-portal,.public-programare) .portal-brand-logo{display:none!important}
body:is(.public-portal,.public-programare) .hero-links{display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important}
body:is(.public-portal,.public-programare) .hero-links a{min-width:0!important;padding:8px 12px!important}
body:is(.public-portal,.public-programare) .hero-links a span{display:none!important}
body:is(.public-portal,.public-programare) .portal-shell>.p-card{width:min(1040px,calc(100% - 32px))!important;max-width:1040px!important;margin:0 auto!important;padding:22px 26px!important;box-sizing:border-box;flex:none}
body:is(.public-portal,.public-programare) .p-card h2{font-size:23px!important;text-align:center!important;margin:0 0 16px!important}
body:is(.public-portal,.public-programare) .p-card p{margin:10px 0 16px!important}
body.public-portal.step-book_edit .p-card.wizard form,body.public-programare #publicBookingForm{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 20px!important;width:100%!important;max-width:none!important;margin:0!important}
body.public-portal.step-book_edit .p-card.wizard form>label,body.public-programare #publicBookingForm>label{display:flex!important;flex-direction:column!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;gap:5px!important}
body.public-portal.step-book_edit .p-card.wizard form :is(input,select),body.public-programare #publicBookingForm :is(input,select){width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;margin:0!important}
body.public-portal.step-book_edit .p-card.wizard form>button{grid-column:1/-1;justify-self:center;width:auto!important;max-width:100%!important;white-space:normal!important}
body:is(.public-portal,.public-programare) .p-card button{font-weight:700!important;min-height:42px}
body:is(.public-portal,.public-programare) .gc-layout{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}
body:is(.public-portal,.public-programare) .gc-month,body:is(.public-portal,.public-programare) .gc-side{padding:14px!important;background:#fff!important}
body:is(.public-portal,.public-programare) .gc-cell{height:36px!important;min-height:36px!important}
body:is(.public-portal,.public-programare) .gc-legend{margin-top:20px!important}
body:is(.public-portal,.public-programare) .gc-hint{margin-top:22px!important;text-align:center!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#ff8500!important;padding:12px!important}
body:is(.public-portal,.public-programare) .portal-back-nav{width:min(1040px,calc(100% - 32px))!important;margin:0 auto!important;padding:0!important}
body:is(.public-portal,.public-programare) .gentrom-footer{margin:auto 0 0!important;padding:10px 20px!important;background:#07141ce8!important;width:auto!important}
body:is(.public-portal,.public-programare) .gentrom-footer::before,body:is(.public-portal,.public-programare) .footer-inner>*::before,body:is(.public-portal,.public-programare) .footer-inner>*::after{content:none!important;display:none!important}
body:is(.public-portal,.public-programare) .footer-inner{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;width:min(1180px,100%)!important;min-height:44px!important;margin:auto!important;padding:0!important;gap:16px!important}
body:is(.public-portal,.public-programare) .footer-inner a{display:flex!important;align-items:center!important;gap:10px!important;color:#fff!important;font-size:14px!important;width:auto!important;padding:8px 0!important}
body:is(.public-portal,.public-programare) .footer-inner svg{width:23px;height:23px;flex:none;fill:none;stroke:#ff8500;stroke-width:1.8}
body:is(.public-portal,.public-programare) .footer-inner span{color:inherit!important;font-size:inherit!important}
@media(max-width:760px){
 body:is(.public-portal,.public-programare) .hero-inner{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important}
 body:is(.public-portal,.public-programare) .hero-top{margin-top:12px}
 body:is(.public-portal,.public-programare) .hero-copy h1{font-size:29px!important}
 body:is(.public-portal,.public-programare) .gentrom-hero{padding:16px!important}
 body:is(.public-portal,.public-programare) .portal-shell>.p-card{padding:18px!important;width:calc(100% - 24px)!important}
 body.public-portal.step-book_edit .p-card.wizard form,body.public-programare #publicBookingForm{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 body:is(.public-portal,.public-programare) .p-card :is(input,select,textarea){font-size:16px!important}
 body:is(.public-portal,.public-programare) .gc-layout{grid-template-columns:minmax(0,1fr)!important}
 body:is(.public-portal,.public-programare) .footer-inner{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:4px!important}
 body:is(.public-portal,.public-programare) .footer-inner a{justify-content:center!important;min-height:44px!important;padding:0!important;width:100%!important}
 body:is(.public-portal,.public-programare) .footer-inner span{display:none!important}
 body:is(.public-portal,.public-programare) .footer-inner svg{width:25px;height:25px}
 body:is(.public-portal,.public-programare) .gentrom-hero{position:relative!important;z-index:2!important;padding-bottom:26px!important;margin-bottom:10px!important}
 body:is(.public-portal,.public-programare){background:#15232d!important}
 body:is(.public-portal,.public-programare) .gentrom-hero{width:100vw!important;min-height:220px!important;box-sizing:border-box!important;background-image:linear-gradient(180deg,rgba(3,10,18,.38),rgba(3,10,18,.78)),url('../img/gentrom-statie-user-sunset.png')!important;background-size:cover!important;background-position:center 38%!important;background-repeat:no-repeat!important}
 body:is(.public-portal,.public-programare) .hero-links{position:relative!important;z-index:3!important;flex-wrap:wrap!important}
 body:is(.public-portal,.public-programare) .portal-shell>.p-card{position:relative!important;z-index:1!important;margin-top:14px!important}
}
