/* Avicenne Plus v31 — product owner's orange accent and button animation.
 * Inspired by the supplied interaction: rounded outline -> teal fill -> spinner -> check.
 * A check is shown ONLY after a completed local step. A submitted request keeps
 * a loading state until the server responds; the interface never invents success.
 * Form fields/cards remain square for legibility and dense data entry. */
:root{
  --av-orange:#f64e03;
  --av-brand-orange:#f64e03;
  --av-v31-orange:#f64e03;
  --av-v31-teal:#058694;
  --av-v31-teal-dark:#055c69;
  --av-v31-ink:#0b1f66;
  --av-v31-pill:999px;
}
/* The orange is part of the actual identity, not merely a focus outline. */
.av-tiered-header .av-header-utility{border-bottom:3px solid var(--av-v31-orange)}
.av-tiered-header .av-nav-panel{border-top-color:var(--av-v31-orange)}
.av-tiered-header .av-nav-group[open]>summary{border-bottom-color:var(--av-v31-orange)}
.av-tiered-header .av-nav-panel-title{border-left:3px solid var(--av-v31-orange);padding-left:9px}
.av-tiered-header .av-nav-caret{color:#b93b02}
.av-home .ap-hero .ap-product-label{border-left:4px solid var(--av-v31-orange);padding-left:15px}
.av-home .ap-hero .ap-hero-description{border-left:2px solid #ff9c63;padding-left:15px}
.av-home .ap-section-label::before,.av-home .ec-eyebrow::before{content:"";display:inline-block;width:16px;height:3px;margin:0 9px 3px 0;background:var(--av-v31-orange)}
.av-home .av-brand-heading{border-bottom-color:#f9a57c}
.av-home .av-brand-grid article{border-top:3px solid var(--av-v31-orange)}
.av-home .av-brand-grid article:nth-child(2n){border-top-color:#09a5b5}
.av-home .av-brand-grid h3::after{content:"";display:block;width:24px;height:2px;margin-top:8px;background:var(--av-v31-orange)}
.av-transaction .av-guided-head{border-top:5px solid var(--av-v31-orange)}
.av-transaction .av-guided-steps>li[data-status=active]:before{background:var(--av-v31-orange);border-color:var(--av-v31-orange);color:#0b1f66}
.av-transaction .av-guided-context-marker small{color:#a93a0b}
.av-transaction .av-booking-form-panel{border-top-color:var(--av-v31-orange)!important}
.av-transaction .av-booking-stepper{border-top-color:var(--av-v31-orange)!important}
.av-site .ap-footer{border-top:4px solid var(--av-v31-orange)}

/* Pill shape ONLY on call-to-action elements, not text fields, menus, filters or cards. */
.av-site :is(.ap-button,.av-btn,.ec-button,.cm-button,.av-showcase-button,.ac-button,.av-reserve-cta,.av-action-button){
  border-radius:var(--av-v31-pill)!important;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;
  position:relative;
  text-align:center;
  max-width:100%;
}
.av-site :is(.ap-button,.av-btn,.ec-button,.cm-button,.av-showcase-button,.ac-button,.av-reserve-cta,.av-action-button):not(:disabled):hover{
  transform:translateY(-1px);
}
.av-site :is(.ap-button,.av-btn,.ec-button,.cm-button,.av-showcase-button,.ac-button,.av-reserve-cta,.av-action-button):focus-visible{
  outline:3px solid var(--av-v31-orange)!important;
  outline-offset:4px!important;
}
.av-site .av-home .ap-search>.ap-button{border-radius:var(--av-v31-pill)!important}
.av-site .av-home .ap-hero .ap-specialties a{border-radius:var(--av-v31-pill)!important}
.av-site .av-reserve-cta{
  background:#fff!important;
  color:#0b1f66!important;
  border:2px solid var(--av-v31-orange)!important;
  border-radius:var(--av-v31-pill)!important;
  font-weight:850;
  min-height:46px;
}
.av-site .av-reserve-cta:hover{background:#f64e03!important;color:#0b1f66!important;border-color:#f64e03!important}
/* Important action follows video: a clear outlined pill fills with brand teal. */
.av-site .av-action-button{
  --av-action-fill:var(--av-v31-teal);
  display:inline-flex!important;align-items:center;justify-content:center;
  vertical-align:middle;
  gap:9px;
  min-height:50px;
  padding:12px 25px!important;
  border:2px solid var(--av-action-fill)!important;
  background:#fff!important;
  color:#0b1f66!important;
  font-weight:850!important;
  line-height:1.32;
  cursor:pointer;
  isolation:isolate;
  overflow:hidden;
  box-shadow:0 2px 0 #0a61721a;
}
.av-site .av-action-button .av-action-content{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;
  transition:opacity .16s ease;
}
.av-site .av-action-button .av-action-content svg{width:18px;height:18px}
.av-site .av-action-button:not(:disabled):hover,.av-site .av-action-button:not(:disabled):focus-visible{
  background:var(--av-action-fill)!important;color:#fff!important;border-color:var(--av-action-fill)!important;
  box-shadow:0 9px 21px #04788c25;
}
.av-site .av-action-button[data-av-action-state=loading],
.av-site .av-action-button[data-av-action-state=complete]{
  background:var(--av-action-fill)!important;
  color:#fff!important;
  border-color:var(--av-action-fill)!important;
  pointer-events:none;
}
.av-site .av-action-button[data-av-action-state=loading] .av-action-content,
.av-site .av-action-button[data-av-action-state=complete] .av-action-content{opacity:0}
.av-site .av-action-button[data-av-action-state=loading]::after{
  content:"";position:absolute;top:50%;left:50%;width:23px;height:23px;
  margin:-11.5px 0 0 -11.5px;
  border:3px solid #ffffff80;border-top-color:#fff;border-radius:50%;
  animation:av-v31-spin .7s linear infinite;
}
.av-site .av-action-button[data-av-action-state=complete]::after{
  content:"✓";position:absolute;inset:0;display:flex;align-items:center;
  justify-content:center;font-size:27px;font-weight:900;color:#fff;
}
.av-site .av-action-button:disabled:not([data-av-action-state=loading]):not([data-av-action-state=complete]){opacity:.6;cursor:not-allowed;box-shadow:none}
@keyframes av-v31-spin{to{transform:rotate(360deg)}}
/* Orange is an explicit brand treatment for strategic CTAs, not the sole button hue. */
.av-site .av-action-button.av-action-orange{--av-action-fill:#b83c0b}
.av-site .av-action-button.av-action-orange:not(:disabled):hover{color:#fff!important}
.av-site .av-transaction .av-guided-footer :is(#hospital-back,#hospital-next,#hospital-submit){
  border-radius:var(--av-v31-pill)!important;
  min-height:52px;
}
.av-site .av-transaction .av-guided-footer :is(#hospital-next,#hospital-submit){
  background:#fff!important;color:#0b1f66!important;
  border:2px solid var(--av-v31-teal)!important;
}
.av-site .av-transaction .av-guided-footer :is(#hospital-next,#hospital-submit):not(:disabled):hover,
.av-site .av-transaction .av-guided-footer :is(#hospital-next,#hospital-submit)[data-av-action-state=loading],
.av-site .av-transaction .av-guided-footer :is(#hospital-next,#hospital-submit)[data-av-action-state=complete]{
  background:var(--av-v31-teal)!important;color:#fff!important;
}
.av-site .av-transaction .av-booking-form-panel button[type=submit].av-action-button{
  border-radius:var(--av-v31-pill)!important;border:2px solid var(--av-v31-teal)!important;
  background:#fff!important;color:#0b1f66!important;
}
.av-site .av-transaction .av-booking-form-panel button[type=submit].av-action-button:is(:hover,[data-av-action-state=loading],[data-av-action-state=complete]){
  background:var(--av-v31-teal)!important;color:#fff!important;
}
@media(max-width:650px){
  .av-site .av-action-button{padding:12px 19px!important;font-size:14px!important}
  .av-site .av-home .ap-hero .ap-hero-description{padding-left:11px}
}
@media(prefers-reduced-motion:reduce){
  .av-site :is(.ap-button,.av-btn,.ec-button,.cm-button,.av-showcase-button,.ac-button,.av-reserve-cta,.av-action-button){
    transform:none!important;transition:none!important;
  }
  .av-site .av-action-button[data-av-action-state=loading]::after{animation-duration:2.5s}
}
