/*
 * D-369 (owner, 10 Nov: "make the claim page more like the home page; you can use elements from the product pages also"): Claim
 * Assistance on the home page's glass ground. The content sections come from pi-glass / pg-v2 (glass-sections); this file styles
 * the pieces that keep their own markup - the hero, the claim-type tiles, the claim form card and the tracking callout - in the same
 * glass language. Text, form fields, ids and scripts are unchanged.
 */
.ca-home { --c: #f05d49; --cd: #c23b28; --ink: #15110f; --m: #6b625c;
  --glass: linear-gradient(155deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .7));
  --ring: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .8), 0 0 0 1px rgba(240, 93, 73, .08), 0 28px 54px -36px rgba(92, 23, 14, .42); }
.ca-home .ca-page, .ca-home .ca-page > section, .ca-home .ca-pg, .ca-home .ca-pg .pg__shell { background: transparent !important; }
.ca-home .ca-pg { overflow: visible; }

/* hero: the home hero's scale, the art on a soft glow */
.ca-home .ca-hero { background: transparent !important; padding-top: calc(var(--cy-hdr-h, 76px) + 24px) !important; }
.ca-home .ca-hero__deco { display: none !important; }
.ca-home .ca-hero__art { filter: drop-shadow(0 30px 40px rgba(168, 50, 31, .18)); }
.ca-home .ca-hero__lede { color: var(--m) !important; font-size: 17px !important; line-height: 1.65 !important; max-width: 56ch; }

/* types of claim assistance: glass tiles that lift */
.ca-home .ca-types { background: transparent !important; padding-block: 56px; }
.ca-home .ca-types .cy-section-head, .ca-home .ca-types .cy-section-head__title { text-align: left !important; }
.ca-home .ca-types .cy-divider { display: none !important; }
.ca-home .ca-types .cy-section-head__title { font-size: clamp(30px, 3.2vw, 46px) !important; font-weight: 700 !important; letter-spacing: -.035em !important; color: var(--ink) !important; }
.ca-home .ca-type__tile { border: 0 !important; border-radius: 26px !important; background: var(--glass) !important; box-shadow: var(--ring) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .4s cubic-bezier(.16, 1.04, .3, 1); }
.ca-home .ca-type:hover .ca-type__tile { transform: translateY(-5px); }
.ca-home .ca-type__label { font-weight: 700 !important; color: var(--ink) !important; }
.ca-home .ca-types .cs-chips li { border: 0 !important; border-radius: 999px !important; background: rgba(255, 255, 255, .85) !important; box-shadow: 0 0 0 1px rgba(240, 93, 73, .12) !important; }
.ca-home .ca-types .cs-chips .cy-icon { color: var(--c); }

/* the claim form: a coral-edged glass card */
.ca-home .ca-help-wrap { background: transparent !important; }
.ca-home .ca-help { border-radius: 32px !important; background: radial-gradient(70% 90% at 0% 0%, rgba(255, 139, 120, .2), transparent 60%), var(--glass) !important;
  box-shadow: var(--ring), 0 40px 80px -50px rgba(168, 50, 31, .5) !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.ca-home .ca-help__lines { opacity: .35; }
.ca-home .ca-help__title { color: var(--ink) !important; letter-spacing: -.03em; }
.ca-home .ca-help__phone { color: var(--cd) !important; }

/* tracking callout: a glass band */
.ca-home .cs-callout { border: 0 !important; border-radius: 28px !important; background: var(--glass) !important; box-shadow: var(--ring) !important; }
.ca-home .cs-callout__icon { color: #fff !important; background: linear-gradient(150deg, #ff8b78, #e5503c) !important; border-radius: 16px !important; }
.ca-home .cs-callout__title { color: var(--ink) !important; }

/* the legal line under the related pages */
.ca-home .ca-legal { max-width: 900px; margin: 4px 0 56px; padding: 14px 18px; border-radius: 14px; font-size: 13px !important; color: var(--m); background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(21, 17, 15, .06); }
html.cy-lite .ca-home .ca-type__tile, html.cy-lite .ca-home .ca-help { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* section heads left-aligned, like the glass sections around them */
.ca-home .ca-types .cy-section-head { max-width: none !important; margin-inline: 0 !important; }

/* D-373 (owner, 10 Nov: "fix claim page, utilise the space properly, no need to force enlarge the image, use them properly - think
   like a senior UI/UX designer"):
   - hero: copy and drawing side by side in one grid at their natural size (was a fixed 680px box with the drawing pinned at 512 x
     532 px, a five-line H1 and the buttons clipped at the bottom); the H1 wraps by width, not by forced line breaks;
   - Why Claim Assistance: the lean layout (heading, opening line and a small drawing on the left, the five points stacked on the
     right) - set in the view with 'lean' => true; OLD: a large drawing beside a lone heading, then a banner and a bento;
   - claim types: the heading no longer touches the tiles; "who can use" and the product links centred under them;
   - the help card: the drawing sits at the top of its column instead of floating in the middle of a tall empty half. */
.ca-home .ca-hero__inner { height: auto !important; max-width: 1400px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center;
  padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 56px) clamp(40px, 5vw, 72px); }
.ca-home .ca-hero__copy { width: auto !important; padding: 0 !important; }
.ca-home .ca-hero__title { width: auto !important; max-width: 15ch; font-size: clamp(36px, 3.7vw, 60px) !important; line-height: 1.05 !important; text-wrap: balance; }
.ca-home .ca-hero__title br { display: none; }
.ca-home .ca-hero__lede { margin-bottom: 28px !important; }
.ca-home .ca-hero__art { position: relative !important; left: auto !important; top: auto !important; transform: none !important; justify-self: center; width: 100%; max-width: 420px; height: auto !important; }

.ca-home .ca-types .ca-section-inner { max-width: 1400px; padding-inline: clamp(20px, 4vw, 56px); }
.ca-home .ca-types__list { margin-top: 32px !important; }
.ca-home .ca-types .ca-who__title, .ca-home .ca-types .cs-lead { text-align: center; }
.ca-home .ca-types .cs-chips { justify-content: center; }

@media (min-width: 1001px) {
  .ca-home .ca-help { max-width: 1140px; min-height: 0 !important; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; padding: 44px 48px; }
  .ca-home .ca-help__art { position: sticky !important; top: 120px; left: auto !important; transform: none !important; align-self: start; width: 100%; max-width: 440px; height: auto; justify-self: center; margin-top: 48px; }
  .ca-home .ca-help__lines { display: none; }
  .ca-home .ca-help__body { margin: 0 !important; width: auto !important; padding: 0 !important; }
}
@media (max-width: 1000px) {
  .ca-home .ca-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ca-home .ca-hero__title { max-width: none; }
  .ca-home .ca-hero__art { max-width: 300px; }
}
.ca-home .ca-types .ca-who__title, .ca-home .ca-types .cs-lead { text-align: center !important; margin-inline: auto !important; max-width: 900px; }
/* D-373: the help card as two filled columns - the heading, the log-in note, the drawing and the phone line on the left; the
   form on the right (was: the drawing alone in a tall left half, everything else stacked on the right). Same elements. */
@media (min-width: 1001px) {
  .ca-home .ca-help { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 56px; row-gap: 16px; align-items: start; }
  .ca-home .ca-help__body { display: contents; }
  .ca-home .ca-help__head { grid-column: 1; grid-row: 1; margin: 0 !important; }
  .ca-home .ca-help__title { font-size: clamp(28px, 2.4vw, 38px) !important; line-height: 1.12 !important; }
  .ca-home .ca-help__route { grid-column: 1; grid-row: 2; margin: 0; }
  .ca-home .ca-help__art { grid-column: 1; grid-row: 3; position: static !important; margin: 8px auto 0 !important; max-width: 360px; }
  .ca-home .ca-help__or { grid-column: 1; grid-row: 4; }
  .ca-home .ca-help__call { grid-column: 1; grid-row: 5; }
  .ca-home .ca-help .cy-claim { grid-column: 2; grid-row: 1 / span 6; }
}

/* D-375 (owner, 10 Nov: "try a different design for this" - the claim-type tiles): one row of glass cards. Each card has the
   drawing in a small coral-tinted tile, the label in ink beside a round arrow that turns coral on hover; the whole card is the
   button (unchanged: .ca-open-claim with its data-product). OLD: grey square tiles with a coral label pill overlapping them. */
.ca-home .ca-types__list { display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px !important; max-width: 1400px; margin-inline: auto !important; }
.ca-home .ca-types__list > li { display: flex; min-width: 0; }
.ca-home .ca-type { position: relative; width: 100% !important; display: flex !important; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 20px 18px 20px !important;
  border: 0; border-radius: 24px; background: var(--glass); box-shadow: var(--ring); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); text-align: left; cursor: pointer;
  transition: transform .35s cubic-bezier(.16, 1.04, .3, 1), box-shadow .35s; }
.ca-home .ca-type:hover { transform: translateY(-5px); box-shadow: var(--ring), 0 30px 50px -30px rgba(168, 50, 31, .45); }
.ca-home .ca-type__tile { zoom: .52; margin: 0 !important; border-radius: 38px !important; transform: none !important;
  background: radial-gradient(circle at 30% 25%, #fff, #ffe7e1 70%) !important; box-shadow: inset 0 0 0 2px rgba(240, 93, 73, .16) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ca-home .ca-type:hover .ca-type__tile { transform: none !important; }
.ca-home .ca-type__label { width: auto !important; min-height: 0 !important; display: block !important; padding: 0 36px 0 0 !important; border-radius: 0 !important; background: none !important;
  color: var(--ink) !important; font-size: 16px !important; line-height: 1.3 !important; font-weight: 700 !important; letter-spacing: -.01em; text-align: left !important; }
.ca-home .ca-type:hover .ca-type__label { background: none !important; color: var(--cd) !important; }
.ca-home .ca-type::after { content: ""; position: absolute; right: 16px; bottom: 18px; width: 32px; height: 32px; border-radius: 50%; pointer-events: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5503c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 0 0 1px rgba(240, 93, 73, .2); transition: background-color .25s, transform .35s; }
.ca-home .ca-type:hover::after { background: #e5503c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / 15px no-repeat; transform: rotate(45deg); }
html.cy-lite .ca-home .ca-type { -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 1279px) { .ca-home .ca-types__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .ca-home .ca-types__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
  .ca-home .ca-type { gap: 16px; padding: 16px 14px !important; border-radius: 20px; }
  .ca-home .ca-type__label { font-size: 14.5px !important; }
  .ca-home .ca-type::after { width: 28px; height: 28px; right: 12px; bottom: 14px; }
}
/* D-375: the arrow in the top corner (it collided with "Medical Establishment"); whiter cards; the odd last card full width on phones */
.ca-home .ca-type { background: linear-gradient(160deg, #fff, rgba(255, 255, 255, .86)) !important; }
.ca-home .ca-type::after { top: 18px; bottom: auto !important; }
.ca-home .ca-type__label { padding-right: 0 !important; }
@media (max-width: 767px) { .ca-home .ca-types__list > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 768px) and (max-width: 1279px) { .ca-home .ca-types__list > li:nth-child(5) { grid-column-start: 1; } .ca-home .ca-types__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
