/* Component-scoped final approved design; native forms elsewhere are untouched. */
#cas-get-quote.cas-quote{box-sizing:border-box;padding:0;margin:0 0 35px;border:0;border-radius:0;background:transparent;box-shadow:none;scroll-margin-top:100px}
/* Native heading class supplies family/size; match observed Services weight. */
#cas-get-quote #cas-quote-title{margin:0 0 20px;padding:0;border:0;background:none;font-weight:500}
#cas-get-quote .cas-card{box-sizing:border-box;width:100%;margin:0;padding:20px;border:1px solid #dde1e5;border-radius:14px;background:#f5f5f5;box-shadow:none}
#cas-get-quote .cas-card+.cas-card{margin-top:16px}
#cas-get-quote .cas-card--whatsapp{background:#e2f5e7;border-color:#bfe6cc}
#cas-get-quote textarea,#cas-get-quote input[type=email]{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:14px 16px;border:1px solid #e0e3e6;border-radius:10px;background:#fff;color:#252525;font:inherit;font-size:16px;font-weight:400;line-height:1.45;box-shadow:none;transition:border-color 160ms ease,background-color 160ms ease}
#cas-get-quote input[type=email]{height:46px;padding:10px 16px;margin-bottom:12px;background:#fff}
#cas-get-quote input[type=email]::placeholder{color:#666;opacity:1}
#cas-get-quote textarea{height:108px;min-height:108px;max-height:none;resize:none;overflow-y:auto;border-color:#e5e9e7}
/* Without JS, long messages remain scrollable. Hide overflow only after sizing. */
#cas-get-quote textarea.cas-autogrow{overflow-y:hidden}
#cas-get-quote #cas-wa-message{border-color:#f0f0f0;background:#fff}
#cas-get-quote textarea:focus,#cas-get-quote #cas-wa-message:focus,#cas-get-quote input[type=email]:focus{border-color:rgba(214,218,221,.5);outline:none;box-shadow:inset 0 0 0 1px rgba(191,198,203,.5)}
#cas-get-quote textarea:focus-visible,#cas-get-quote #cas-wa-message:focus-visible,#cas-get-quote input[type=email]:focus-visible{box-shadow:inset 0 0 0 1px rgba(135,145,154,.5)}
/* WhatsApp-only focus colour; email fields retain neutral focus styling. */
#cas-get-quote #cas-wa-message:focus,#cas-get-quote #cas-wa-message:focus-visible{border-color:rgba(104,159,120,.5);box-shadow:inset 0 0 0 1px rgba(104,159,120,.5)}
#cas-get-quote button,#cas-get-quote .cas-call{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;margin:16px 0 0;padding:10px 16px;border:1px solid #c9cdd0;border-radius:999px;background:#fff;color:#252525;font:inherit;font-size:16px;font-weight:600;line-height:1.45;text-decoration:none;box-shadow:none;cursor:pointer;transition:background-color 160ms ease,border-color 160ms ease}
#cas-get-quote button:hover,#cas-get-quote .cas-call:hover{background:#f3f4f4;color:#252525}
#cas-get-quote button:active,#cas-get-quote .cas-call:active{background:#e9ebeb}
#cas-get-quote button.cas-wa{background:#07863e;border-color:transparent;color:#fff}
#cas-get-quote button.cas-wa:hover{background:#066f34;color:#fff}
#cas-get-quote button.cas-wa:active{background:#055e2c}
#cas-get-quote button:focus-visible,#cas-get-quote .cas-call:focus-visible{outline:2px solid #737c82;outline-offset:3px}
#cas-get-quote button:disabled{opacity:.65;cursor:wait}
#cas-get-quote button>i{flex:0 0 auto;font-size:21px;line-height:1}
#cas-get-quote button.cas-wa>.fa-whatsapp{font-size:26px}
#cas-get-quote .cas-status{margin:12px 0 0;color:#444;font-size:14px;line-height:1.5}
#cas-get-quote .cas-status:empty{display:none}
#cas-get-quote .cas-email-status{display:flex;align-items:flex-start;gap:8px}
#cas-get-quote .cas-email-status>i{padding-top:3px}
#cas-get-quote .cas-email-status--success>i{color:#176936}
#cas-get-quote .cas-email-status--error>i{color:#9a2626}
#cas-get-quote .cas-email-status strong,#cas-get-quote .cas-email-status span{display:block}
#cas-get-quote .cas-email-status strong{font-weight:600}
#cas-get-quote .cas-card--unavailable p,#cas-get-quote .cas-phone-number{margin:0;overflow-wrap:anywhere}
/* Phone-only visual refinement; existing contact selection/tracking unchanged. */
#cas-get-quote .cas-card--phone .cas-phone-number{font-family:inherit;font-size:20px;font-weight:500;line-height:1.45;text-align:center;color:#252525}
#cas-get-quote .cas-card--phone .cas-call{gap:8px;margin-top:16px}
#cas-get-quote .cas-card--phone .cas-call>.sl-icon-phone{flex:0 0 auto;font-size:20px;line-height:1}
#cas-get-quote .screen-reader-text,#cas-get-quote .cas-trap{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:430px){#cas-get-quote .cas-card{padding:16px}}
@media(prefers-reduced-motion:reduce){#cas-get-quote textarea,#cas-get-quote input,#cas-get-quote button,#cas-get-quote .cas-call{transition:none}}

@media(forced-colors:active){#cas-get-quote #cas-wa-message:focus,#cas-get-quote #cas-wa-message:focus-visible,#cas-get-quote textarea:focus,#cas-get-quote input[type=email]:focus{outline:1px solid CanvasText;outline-offset:-2px;box-shadow:none}}

#titlebar .cas-quote-jump {
  display: none;
}

@media screen and (max-width: 991px) {
  #titlebar .cas-quote-jump {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    /* The native titlebar uses 0.92 zoom on mobile. */
    min-height: 48px;
    margin-top: 10px;
    padding: 6px 14px;
    border: 1px solid #8a929d;
    border-radius: 999px;
    background: #fff;
    color: #3f3f46;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
  }

  #titlebar .cas-quote-jump::after {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-bottom: 3px;
    border-right: 2px solid #de103b;
    border-bottom: 2px solid #de103b;
    transform: rotate(45deg);
  }

  #titlebar .cas-quote-jump:hover {
    background: #f2f4f6;
  }

  #titlebar .cas-quote-jump:focus-visible {
    /* Listeo resets link outlines with !important. */
    outline: 2px solid #3f3f46 !important;
    outline-offset: 2px;
  }

  #cas-get-quote.cas-quote {
    scroll-margin-top: 120px;
  }

  #cas-get-quote:focus-visible #cas-quote-title {
    outline: 2px solid #3f3f46;
    outline-offset: 2px;
  }

  .cas-mobile-sheet.cas-quote-sheet[open][data-cas-mobile-sheet-active] {
    --cas-sheet-tail: 32px;
    text-align: start;
  }

  .cas-quote-sheet .cas-quote-methods[role=tablist] {
    display: flex;
    gap: 4px;
    margin: 0 0 18px;
  }

  .cas-quote-sheet .cas-quote-methods button {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 9px;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 8px 6px;
    border: 0;
    border-radius: 9px;
    background: #eff0f2;
    color: #3f3f46;
    box-shadow: none;
    font: inherit;
    font-weight: 650;
    overflow-wrap: anywhere;
    cursor: pointer;
  }

  .cas-quote-sheet .cas-quote-methods button .fa {
    flex: 0 0 auto;
    font-size: 1.15em;
    line-height: 1;
  }

  .cas-quote-sheet .cas-quote-methods button[aria-selected=true] {
    background: #fae5ea;
    color: #ab103a;
    font-weight: 700;
  }

  .cas-quote-sheet .cas-quote-methods button:focus-visible {
    outline: 2px solid var(--cas-sheet-accent) !important;
    outline-offset: -2px;
  }

  .cas-quote-sheet--swipe .cas-mobile-sheet__content {
    touch-action: pan-y pinch-zoom;
  }

  /* Let the header scroll with the form when the keyboard leaves little space. */
  .cas-quote-sheet.cas-quote-sheet--short[open][data-cas-mobile-sheet-active] {
    overflow: hidden auto;
  }

  .cas-quote-sheet.cas-quote-sheet--short[data-cas-mobile-sheet-active] .cas-mobile-sheet__content {
    flex: 0 0 auto;
    overflow: visible;
  }

  .cas-quote-sheet #cas-get-quote,
  .cas-quote-sheet #cas-get-quote .cas-card {
    margin: 0;
  }

  .cas-quote-sheet #cas-get-quote .cas-card {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .cas-quote-sheet #cas-get-quote #cas-quote-title,
  .cas-quote-sheet #cas-get-quote .cas-card[hidden] {
    display: none;
  }

  .cas-quote-sheet--swipe #cas-get-quote .cas-card {
    transform: translateX(var(--cas-quote-drag-x, 0px));
  }

  .cas-quote-sheet #cas-get-quote .cas-quote-field-label:not([hidden]) {
    display: block;
    margin: 0 0 8px;
    color: #27272b;
    font: inherit;
    font-weight: 650;
  }

  .cas-quote-sheet #cas-get-quote input[type=email],
  .cas-quote-sheet #cas-get-quote textarea,
  .cas-quote-sheet #cas-get-quote #cas-wa-message {
    padding: 10px 13px;
    border-color: #9ba1aa;
    border-radius: 9px;
    font-size: max(16px, 1em);
  }

  .cas-quote-sheet #cas-get-quote input[type=email] {
    height: auto;
    min-height: 44px;
    margin-bottom: 16px;
  }

  .cas-quote-sheet #cas-get-quote textarea.cas-autogrow {
    max-height: 180px;
    overflow-y: auto;
  }

  .cas-quote-sheet #cas-get-quote :is(input[type=email], textarea, #cas-wa-message):focus {
    border-color: var(--cas-sheet-accent);
    box-shadow: inset 0 0 0 1px var(--cas-sheet-accent);
  }

  .cas-quote-sheet #cas-get-quote :is(button, .cas-call) {
    min-height: 46px;
    margin-top: 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--cas-sheet-accent);
    color: #fff;
    font-size: max(16px, 1em);
    font-weight: 700;
  }

  .cas-quote-sheet #cas-get-quote :is(button, .cas-call):active {
    background: #ab103a;
    color: #fff;
  }

  .cas-quote-sheet #cas-get-quote :is(button, .cas-call):focus-visible {
    outline: 2px solid #27272b !important;
    outline-offset: -4px;
  }

  .cas-quote-sheet #cas-get-quote button > i,
  .cas-quote-sheet #cas-get-quote button.cas-wa > .fa-whatsapp {
    font-size: 1.15em;
  }

  .cas-quote-sheet #cas-get-quote .cas-card--phone .cas-phone-number {
    text-align: start;
  }

  @media (forced-colors: active) {
    .cas-quote-sheet .cas-quote-methods button[aria-selected=true] {
      outline: 2px solid Highlight;
      outline-offset: -2px;
    }

    .cas-quote-sheet #cas-get-quote :is(button, .cas-call) {
      border-color: ButtonText;
    }
  }
}
