/*
 * Health and Motor landing pages (D-055), from the owner's Figma frames "Health" (1380:6314) and "RN number"
 * (3857:5682). Same design family and hero geometry as the PI landing page, so the page loads pi-landing.css and
 * this file adds what differs: the hero photo crop and stat cards, the health members form, the motor "Types"
 * cards, the feature cards with pictures in flow, and the motor partner strip.
 */

/* ---------- Hero photo: each page's crop inside the 392px circle ---------- */
.pl-page--health .pl-visual__photo img { left: -61px; top: 30px; width: 544px; height: 363px; }
.pl-page--motor .pl-visual__photo img { left: -16px; top: 68px; width: 491px; height: 327px; }

/* Top stat card: the PI card with a Tabler icon in the badge (and, on motor, the label above the number). */
.pl-stat__badge .cy-icon { position: absolute; left: 19.64px; top: 19.64px; width: 24px; height: 24px; color: var(--cy-brand-600); }
.pl-stat--top-label { gap: 8px; }
.pl-stat--top-label .pl-stat__badge { width: 60px; height: 60px; }
.pl-stat--top-label .pl-stat__badge span { left: 10px; top: 10px; width: 40px; height: 40px; }
.pl-stat--top-label .pl-stat__badge .cy-icon { left: 18px; top: 18px; }

/* Side and bottom stat cards: icon tile + number + caption in a row (positions from the frames). */
.pdl-stat {
  position: absolute; display: flex; align-items: center; gap: 10px; margin: 0; padding: 15px 16px 15px 12px;
  background: #f5f5f4; border: 0.765px solid var(--cy-brand-600); border-radius: 16px; color: #171717;
  filter: drop-shadow(0 18.36px 19.125px rgba(0, 0, 0, 0.15));
}
.pdl-stat p { margin: 0; white-space: nowrap; }
.pdl-stat__icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12.24px; background: var(--cy-brand-600); color: var(--cy-neutral-0); }
.pdl-stat__icon .cy-icon { width: 24px; height: 24px; }
.pdl-stat--left { left: 0; top: 234px; }
.pdl-stat--bottom { left: 430px; top: 319px; }
.pdl-stat--bottom .pdl-stat__icon { width: 48px; height: 48px; }
.pl-page--motor .pdl-stat--left { top: 284px; }

/* ---------- Health quote form ---------- */
.pdl-form { display: flex; flex-direction: column; gap: 24px; }
.pdl-form__fields { display: flex; flex-direction: column; gap: 16px; }
.pdl-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.pdl-field__label { margin: 0; padding: 0; font: 400 var(--cy-fs-xs)/16px var(--cy-font); color: var(--cy-neutral-1000); }
.pdl-name { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.pdl-name .cy-input, .pdl-plain { width: 100%; height: 48px; padding: 0 16px; border: 1px solid #757575; border-radius: 12px; font: 400 var(--cy-fs-md)/16px var(--cy-font); }
.pdl-name .cy-input::placeholder, .pdl-plain::placeholder { color: #757575; }
.pl-input > .cy-icon { position: absolute; left: 16px; top: 12px; width: 24px; height: 24px; color: var(--cy-brand-600); pointer-events: none; }
.pdl-form .error { display: block; margin-top: 4px; font-size: var(--cy-fs-xs); line-height: 16px; }
.pdl-form .error:empty { display: none; }

/* Gender: two toggles (radio buttons). Selected = pink with a filled tick. */
.pdl-gender { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pdl-choice { position: relative; display: flex; align-items: center; gap: 8px; height: 48px; margin: 0; padding: 0 16px; border-radius: 12px; background: var(--cy-neutral-100); font: 400 var(--cy-fs-md)/16px var(--cy-font); cursor: pointer; }
.pdl-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pdl-choice__mark { display: flex; width: 24px; height: 24px; color: var(--cy-neutral-1000); }
.pdl-choice__mark .cy-icon { width: 24px; height: 24px; }
.pdl-choice__mark .is-on { display: none; }
.pdl-choice:has(input:checked) { background: var(--cy-brand-50); }
.pdl-choice:has(input:checked) .pdl-choice__mark { color: var(--cy-brand-600); }
.pdl-choice:has(input:checked) .is-on { display: block; }
.pdl-choice:has(input:checked) .is-off { display: none; }
.pdl-choice:has(input:focus-visible) { outline: 2px solid var(--cy-brand-600); outline-offset: 2px; }

/* Members: round toggles (checkboxes) with a caption; a ticked one is pink with a tick badge. */
.pdl-members { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 8px; margin: 0; padding: 0; list-style: none; }
.pdl-member { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 56px; margin: 0; cursor: pointer; text-align: center; font: 400 var(--cy-fs-xs)/16px var(--cy-font); }
.pdl-member input { position: absolute; opacity: 0; pointer-events: none; }
.pdl-member__disc { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cy-neutral-100); color: var(--cy-neutral-1000); }
.pdl-member__disc .cy-icon { width: 24px; height: 24px; }
.pdl-member__disc .pdl-member__tick { position: absolute; top: -4px; right: -6px; display: none; width: 20px; height: 20px; color: var(--cy-brand-600); background: var(--cy-neutral-0); border-radius: 50%; }
.pdl-member:has(input:checked) .pdl-member__disc { background: var(--cy-brand-50); color: var(--cy-brand-600); }
.pdl-member:has(input:checked) .pdl-member__disc .pdl-member__tick { display: block; }
.pdl-member:has(input:focus-visible) .pdl-member__disc { outline: 2px solid var(--cy-brand-600); outline-offset: 2px; }
.pdl-members--more { justify-content: flex-start; gap: 12px 20px; }
.pdl-members--more .pdl-member { width: 64px; }
.pdl-add { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--cy-brand-600); border-radius: 32px; background: var(--cy-neutral-0); font: 400 var(--cy-fs-xs)/16px var(--cy-font); color: var(--cy-neutral-1000); cursor: pointer; }
.pdl-add .cy-icon { width: 16px; height: 16px; }
.pdl-add[aria-expanded="true"] .cy-icon { transform: rotate(45deg); }
.pdl-children { display: flex; flex-wrap: wrap; gap: 12px; }
.pdl-children label { display: flex; align-items: center; gap: 8px; margin: 0; font: 400 var(--cy-fs-xs)/16px var(--cy-font); }
.pdl-children select { height: 36px; padding: 0 28px 0 10px; border: 1px solid #757575; border-radius: 8px; font: 400 var(--cy-fs-md)/16px var(--cy-font); background: var(--cy-neutral-0); }

/* ---------- Motor quote card: registration field and partner strip ---------- */
.pdl-reg .pl-input > .cy-icon { top: 8px; width: 32px; height: 32px; }
.pdl-reg .pl-input .cy-input { padding-left: 60px; text-transform: uppercase; }
.pdl-reg .pl-input .cy-input::placeholder { text-transform: none; }
.pdl-partners { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 18px 0 0; }
.pdl-partners__title { margin: 0; font: 500 var(--cy-fs-md)/20px var(--cy-font); }
.pdl-partners__logos { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; }
.pdl-partners__logos img { display: block; object-fit: contain; }
.pdl-partners__logos { flex-wrap: wrap; justify-content: center; }

/* Motor: "or" + a brand-new car link under Continue, as on motor.coveryou.in's own form (D-064). */
.pdl-newcar { display: flex; flex-direction: column; gap: 16px; }
.pdl-newcar__or { display: flex; align-items: center; gap: 12px; font: 400 var(--cy-fs-sm)/20px var(--cy-font); color: var(--cy-neutral-500); }
.pdl-newcar__or::before, .pdl-newcar__or::after { content: ""; flex: 1; height: 1px; background: var(--cy-neutral-200); }
.pdl-newcar__btn { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px; border: 1px dashed var(--cy-brand-300); border-radius: 12px;
  background: var(--cy-brand-50); color: var(--cy-neutral-1000); text-decoration: none; transition: border-color .15s, background-color .15s; }
.pdl-newcar__btn:hover, .pdl-newcar__btn:focus-visible { border-style: solid; border-color: var(--cy-brand-600); background: var(--cy-brand-100); color: var(--cy-neutral-1000); text-decoration: none; }
.pdl-newcar__btn > .cy-icon { flex: none; width: 24px; height: 24px; color: var(--cy-brand-600); }
.pdl-newcar__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pdl-newcar__text b { font: 600 var(--cy-fs-lg)/22px var(--cy-font); }
.pdl-newcar__text small { font: 400 var(--cy-fs-sm)/18px var(--cy-font); color: var(--cy-neutral-600); }
.pdl-newcar__btn > .pdl-newcar__go { margin-left: auto; }

/* ---------- Motor: types of car insurance (node 5211:5603) ---------- */
.pdl-types { padding-block: var(--cy-section-y); }
.pdl-types__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: var(--cy-section-head) 0 0; padding: 0; list-style: none; }
.pdl-type { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 12px; background: var(--cy-neutral-0); filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.25)); }
.pdl-type__head { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 var(--cy-fs-lg)/24px var(--cy-font); letter-spacing: 0; color: var(--cy-neutral-1000); }
.pdl-type__head .cy-icon { flex-shrink: 0; width: 32px; height: 32px; color: var(--cy-brand-600); }
.pdl-type__text { margin: 0; font-size: var(--cy-fs-md); line-height: 20px; }
.pdl-type__note { margin: 0; font-size: var(--cy-fs-xs); line-height: 16px; color: #757575; }

/* ---------- Key features: picture + caption in a 209px card ---------- */
.pdl-features { margin: var(--cy-section-head) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.pdl-feature { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 212px; padding: 24px 20px; border-radius: 12px; background: var(--cy-neutral-0); box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); text-align: center; }
.pl-page--motor .pdl-feature { min-height: 226px; }
.pdl-feature__art { position: relative; display: block; flex-shrink: 0; }
.pdl-feature__art img { display: block; width: 100%; height: 100%; }
.pdl-feature__art--stack img { position: absolute; width: auto; height: auto; }
.pdl-feature p { margin: 0; font: 500 var(--cy-fs-xs)/16px var(--cy-font); }

/* Why photo: the PI page size, 432x306, on every product page (owner, 23 Oct, D-063).
   OLD (the Figma frames, 432x222 health and 432x262 motor):
   .pl-page--health .pdl-why__photo { height: 222px; }
   .pl-page--motor .pdl-why__photo { height: 262px; }
   @media (max-width: 1199px) { .pl-page .pdl-why__photo { height: auto; } .pl-page--health .pdl-why__photo { aspect-ratio: 432 / 222; } .pl-page--motor .pdl-why__photo { aspect-ratio: 432 / 262; } } */

/* How it works: the PI step circle, with each picture placed as in the frame. */
.pdl-how .pl-step__circle img { position: absolute; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1199px) {
  .pdl-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pdl-types__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pdl-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .pdl-feature { min-height: 0; padding: 20px 12px; }
  .pdl-name { gap: 8px; }
  .pdl-name .cy-input { padding: 0 10px; }
  .pdl-members { justify-content: flex-start; }
}
/* Six members don't fit one row on a phone: two even rows of three (the extra four in one row). */
@media (max-width: 479px) {
  .pdl-members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; }
  .pdl-members--more { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
}
