/* ============================================================
   Absa Instant Life — landing page
   Breakpoint: 760px (mobile < 760px <= desktop)
   ============================================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Fira Sans', 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
}

a { color: #fd7b00; }
a:hover { color: #e26d00; }
input::placeholder { color: #8f8f8f; opacity: 1; }
::selection { background: #fd7b00; color: #ffffff; }

[hidden] { display: none !important; }

.accent { color: #fd7b00; }
.nowrap { white-space: nowrap; }

@keyframes absaPop {
  from { opacity: 0; transform: scale(0.86) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes absaTick {
  to { stroke-dashoffset: 0; }
}

/* ============================== Hero ============================== */

.hero {
  position: relative;
  background: #b9b6b3 url('../assets/bg-hero.jpg') 50% 86% / cover no-repeat;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 1;
}

/* Mobile-only dark fade behind the logo; height scales as the viewport narrows */
.hero-topfade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) clamp(0px, calc((760px - 100vw) * 6), 620px));
  pointer-events: none;
  z-index: 1;
}

.hero-logo {
  position: absolute;
  top: 34px;
  left: min(6.5vw, 126px);
  width: 72px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  z-index: 3;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1318px;
  margin: 0 auto;
  padding: clamp(116px, 10vw, 150px) 24px clamp(36px, 4vw, 60px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 4vw, 48px) 40px;
}

.hero-copy {
  flex: 1 1 420px;
  max-width: 560px;
  margin-right: auto;
  margin-top: clamp(10px, 3.2vw, 46px);
  color: #ffffff;
}

.hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
}

.hero-title-row h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.6px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.hero-sub-mobile { flex: 1 1 160px; }
.hero-sub-mobile p {
  margin: 0;
  max-width: 362px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  text-wrap: pretty;
}
.hero-sub-mobile strong { font-weight: 700; }

.hero-sub-desktop {
  margin: 30px 0 0;
  max-width: 400px;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.42;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  text-wrap: pretty;
}
.hero-sub-desktop strong { font-weight: 700; }
.hero-sub-cta {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
}

.hero-get30-mobile {
  margin: 26px auto 0;
  text-align: center;
  max-width: 398px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 400;
}

.hero-fsp {
  max-width: 398px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}
.hero-fsp-desktop { margin: 36px 0 0; }
.hero-fsp-mobile { margin: 24px auto 0; text-align: center; }

/* ---------- Quote form ---------- */

.quote-col {
  flex: 0 1 324px;
  min-width: 280px;
  max-width: 100%;
  color: #ffffff;
}

.form-intro {
  margin: 0 0 15px;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
}

.field {
  display: block;
  width: 100%;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 3px;
  background: rgba(255,255,255,0.96);
  padding: 0 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 15px;
  color: #3d3d3d;
  outline: none;
}
.field:focus {
  border-color: #fd7b00;
  box-shadow: 0 0 0 3px rgba(253,123,0,0.35), 0 2px 8px rgba(0,0,0,0.18);
}
.field.invalid { border-color: #ff5252; }

.field-email { margin: 0; }

.field-select {
  margin: 16px 0 0;
  padding: 0 9px;
  cursor: pointer;
}
.field-select.placeholder { color: #8f8f8f; }
.field-select option { color: #3d3d3d; }

.field-error {
  font-size: 13px;
  font-weight: 600;
  color: #ffc9c9;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.err-inline { margin: -10px 0 13px 2px; }
.err-below  { margin: 8px 0 0 2px; }
.err-terms  { margin: 12px 0 0 2px; }

.btn-submit {
  display: block;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 3px;
  margin: 17px 0 0;
  background: linear-gradient(180deg, #ff8c26 0%, #ff780f 55%, #f56d04 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.4px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.35);
  filter: brightness(1.05);
}
.btn-submit:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  filter: brightness(0.97);
}
.btn-submit:disabled {
  cursor: default;
  filter: grayscale(0.15) brightness(0.92);
  transform: none;
}

.api-error {
  margin: 14px 0 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(96,10,18,0.6);
  border: 1px solid rgba(255,82,82,0.55);
  border-left: 4px solid #ff5252;
  border-radius: 6px;
  padding: 13px 15px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3);
  animation: absaPop 0.35s ease-out both;
}
.api-error-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff5252;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.api-error-title { display: block; font-size: 14.5px; font-weight: 700; }
.api-error-text {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
  border-radius: 3px;
}
.checks label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.42;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.checks input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex: none;
  margin: 1px 0 0;
  accent-color: #fd7b00;
  border-radius: 3px;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}
.checks input[type="checkbox"].invalid {
  box-shadow: 0 0 0 3px rgba(255,82,82,0.85);
}
.check-text { max-width: 250px; }
.check-text.invalid { color: #ffb4b4; }
.check-text a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
}
.check-text a:hover { color: #ffd7b0; }

.success-card {
  background: linear-gradient(170deg, rgba(30,14,17,0.62) 0%, rgba(30,14,17,0.48) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.22);
  border-top: 4px solid #fd7b00;
  border-radius: 8px;
  padding: 42px 28px 36px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
  animation: absaPop 0.45s cubic-bezier(0.18, 0.9, 0.32, 1.2) both;
}
.success-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff8c26 0%, #ff780f 55%, #f56d04 100%);
  box-shadow: 0 8px 22px rgba(245,109,4,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: absaPop 0.5s 0.12s cubic-bezier(0.18, 0.9, 0.32, 1.3) both;
}
.tick-path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: absaTick 0.45s 0.4s ease-out forwards;
}
.success-title {
  margin: 22px 0 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.success-rule {
  width: 40px;
  height: 3px;
  background: #fd7b00;
  border-radius: 2px;
  margin: 14px auto 0;
}
.success-card p {
  margin: 16px auto 0;
  max-width: 250px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}

/* ====================== Offer (red section) ====================== */

.offer {
  background: #dc0032;
  color: #ffffff;
  text-align: center;
  padding: clamp(48px, 6vw, 72px) 24px clamp(44px, 5.5vw, 64px);
}
.offer-inner { max-width: 1270px; margin: 0 auto; }
.offer-kicker { color: #fd7b00; font-size: 17px; font-weight: 600; }
.offer h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
}
.offer-lead {
  margin: 18px auto 0;
  max-width: 870px;
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}
.offer-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px 40px;
  margin-top: 60px;
}
.offer-card { flex: 1 1 280px; max-width: 380px; margin: 0 auto; }
.offer-icon {
  width: 126px;
  height: 126px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.offer-icon img { height: 62px; width: auto; display: block; }
.offer-card h3 { margin: 22px 0 10px; font-size: 21px; font-weight: 700; }
.offer-card p {
  margin: 0 auto;
  max-width: 330px;
  font-size: 15.5px;
  line-height: 1.5;
}
.offer-card p.wide { max-width: 345px; }

/* ============================ Benefits ============================ */

.benefits {
  position: relative;
  background: #8f938f url('../assets/bg-benefits.webp') 50% 97% / cover no-repeat;
  background-attachment: fixed;
}
.benefits-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1;
}
.benefits-topfade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 55%);
  pointer-events: none;
  z-index: 1;
}
.benefits-inner {
  position: relative;
  z-index: 2;
  max-width: 1318px;
  margin: 0 auto;
  padding: clamp(40px, 12vw, 138px) 24px clamp(52px, 6vw, 84px);
  text-align: center;
  color: #ffffff;
}
.benefits-kicker {
  color: #fd7b00;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.benefits h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.rule-orange {
  width: 56px;
  height: 4px;
  background: #fd7b00;
  margin: 20px auto 0;
}
.benefits-lead {
  margin: 22px auto 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  text-wrap: pretty;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 267px));
  justify-content: center;
  gap: 22px 24px;
  max-width: 920px;
  margin: 44px auto 0;
}
.benefit-card {
  background: linear-gradient(180deg, #ff8c26 0%, #ff780f 60%, #f56d04 100%);
  min-height: 112px;
  padding: 20px 22px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 12px 28px rgba(60,5,25,0.28), inset 0 1px 0 rgba(255,255,255,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(60,5,25,0.38), inset 0 1px 0 rgba(255,255,255,0.30);
}
.benefit-card > span {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}
.benefit-card .hl { color: #500a28; font-weight: 700; }

/* ============================ We do more ============================ */

.more {
  display: flex;
  flex-wrap: wrap;
  background: #ffffff;
}
.more-left {
  flex: 1 1 420px;
  background: #d91730;
  color: #ffffff;
  padding: clamp(40px, 7vw, 86px) clamp(20px, 4.4vw, 86px) clamp(44px, 7.5vw, 92px) clamp(24px, 14vw, 275px);
  display: flex;
}
.more-left-inner { max-width: 432px; }
.more-kicker { font-size: 13.5px; font-weight: 700; letter-spacing: 1px; }
.more-left h2 {
  margin: 44px 0 0;
  font-size: clamp(29px, 3.8vw, 38px);
  line-height: 1.2;
  font-weight: 800;
}
.more-tagline {
  margin: 10px 0 0;
  font-size: clamp(29px, 3.8vw, 38px);
  line-height: 1.2;
  font-weight: 500;
  font-style: italic;
}
.rule-left { margin: 26px 0 0; }
.more-lead {
  margin: 26px 0 0;
  max-width: 400px;
  font-size: 15.5px;
  line-height: 1.55;
}
.more-list {
  margin: 46px 0 0;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 15.5px;
  line-height: 1.5;
}
.more-item { display: flex; gap: 13px; }
.more-item .dash {
  flex: none;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: #fd7b00;
  margin-top: 9px;
}
.btn-pill {
  display: inline-block;
  margin: 56px 0 0;
  border: 0;
  border-radius: 29px;
  background: linear-gradient(180deg, #ff8c26 0%, #ff780f 55%, #f56d04 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.6px;
  padding: 19px 46px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.35);
  filter: brightness(1.05);
}
.btn-pill:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  filter: brightness(0.97);
}

.more-right {
  flex: 1 1 420px;
  background: #ffffff;
  display: flex;
}
.steps {
  max-width: 500px;
  margin: auto;
  padding: 64px 28px;
  display: flex;
  flex-direction: column;
}
.step { display: flex; gap: 23px; align-items: stretch; }
.step-last { align-items: flex-start; }
.step-track {
  flex: none;
  width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-num {
  width: 78px;
  height: 78px;
  flex: none;
  border-radius: 50%;
  background: #f29a02;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(242,154,2,0.30);
}
.step-line {
  width: 2px;
  flex: 1;
  margin: 10px 0;
  background: repeating-linear-gradient(#d9d9d9 0 6px, transparent 6px 13px);
}
.step-body { padding: 2px 0 46px; }
.step-last .step-body { padding: 2px 0 0; }
.step-body h3 { margin: 0; font-size: 21px; font-weight: 700; color: #3d3d3d; }
.step-body p {
  margin: 9px 0 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.45;
  color: #5a5a5a;
}

/* ============================== Footer ============================== */

.site-footer {
  background: #3a0a16;
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 26px 24px 28px;
  font-size: 13.5px;
  line-height: 1.5;
}
.footer-line { margin-top: 7px; }
.site-footer a { color: #ff9d4d; text-decoration: none; }
.site-footer a:hover { color: #ffffff; }
.footer-underwritten { margin-top: 8px; color: rgba(255,255,255,0.75); }
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.footer-links a { font-weight: 600; font-size: 14px; padding: 4px 2px; }
.footer-links .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  flex: none;
}

/* ==================== Responsive: desktop >= 760px ==================== */

@media (min-width: 760px) {
  .hero-topfade,
  .hero-sub-mobile,
  .hero-get30-mobile,
  .hero-fsp-mobile,
  .footer-mobile { display: none; }
}

/* ==================== Responsive: mobile < 760px ==================== */

@media (max-width: 759.98px) {
  .hero-sub-desktop,
  .hero-fsp-desktop,
  .footer-desktop { display: none; }

  .hero-logo { left: calc(50vw - 36px); }

  .quote-col { flex-basis: 100%; }

  .form-intro { max-width: 100%; font-size: 13px; }

  .field { height: 46px; font-size: 16px; }

  .checks {
    background: rgba(0,0,0,0.4);
    padding: 12px;
  }
  .checks input[type="checkbox"] { width: 22px; height: 22px; }

  /* fixed background attachment is unreliable on mobile browsers */
  .benefits { background-attachment: scroll; }
}
