
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }

:root {
  --green: #548b59;
  --orange: #e88300;
  --teal: #225d64;
  --ink: #202326;
  --muted: #62686a;
  --paper: #ffffff;
  --soft: #f6f5ef;
  --line: #e6e3d9;
  --shadow: 0 10px 30px rgba(28, 48, 45, .10);
  --radius: 18px;
}

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

a { color: inherit; }
img { max-width: 100%; }

.site-header {
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-shell {
  width: min(1180px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}

.brand-logo {
  width: 180px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus { color: var(--teal); }

.main-nav .active { color: var(--teal); }

.nav-donate {
  background: var(--green);
  color: white !important;
  padding: 11px 21px;
  border-radius: 12px;
}

.mobile-menu {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
}

.hero {
  position: relative;
  min-height: 310px;
  background:
    linear-gradient(rgba(30,48,44,.24), rgba(30,48,44,.24)),
    url("./assets/hero-woodland.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  color: white;
}

.hero-inner {
  width: min(1020px, calc(100% - 36px));
  margin: 0 auto;
  text-align: center;
  padding: 46px 0;
}

.hero h1 {
  max-width: 860px;
  margin: 0 auto 12px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
  color: var(--teal);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(255,255,255,.22);
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.4;
  font-weight: 600;
  text-shadow: 0 2px 5px rgba(0,0,0,.28);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 33px;
}

.hero-btn,
.action-btn {
  border: 0;
  border-radius: 11px;
  padding: 13px 25px;
  min-width: 190px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: transform .15s ease, filter .15s ease;
}

.hero-btn:hover,
.action-btn:hover { transform: translateY(-1px); filter: brightness(.98); }
.green { background: var(--green); }
.orange { background: var(--orange); }
.teal { background: var(--teal); }

.listing-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.section-heading {
  text-align: center;
  color: var(--teal);
  margin: 0 0 34px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.dog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 62px;
}

.dog-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
  min-width: 0;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card-image {
  width: 100%;
  aspect-ratio: 1.22 / 1;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 17px 17px 16px;
}

.card-body h2 {
  margin: 0 0 5px;
  font-size: 24px;
  line-height: 1.15;
}

.card-meta {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.card-summary {
  margin: 0 0 15px;
  min-height: 40px;
  font-size: 13px;
  line-height: 1.5;
  color: #3f4445;
}

.meet-button {
  display: inline-block;
  color: white;
  border-radius: 9px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
}

.asm-source {
  position: fixed !important;
  left: -100000px !important;
  top: -100000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Dog profile */
.profile-hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.76) 48%, rgba(255,255,255,.18) 100%),
    url("./assets/hero-woodland.jpg") center / cover no-repeat;
}

.profile-hero-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 45px;
  padding: 35px 0;
}

.profile-copy h1 {
  color: var(--teal);
  margin: 0 0 10px;
  font-size: clamp(42px, 7vw, 65px);
  font-weight: 800;
}

.profile-subtitle {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-status {
  margin: 0 0 23px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: inline-block;
  background: rgba(34,93,100,.88);
  border-radius: 9px;
  padding: 8px 12px;
}

.profile-hero-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 18px;
  display: block;
}

.profile-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.profile-page {
  background: #fff;
}

.profile-container {
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
}

.back-row {
  padding: 20px 0 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
}

.gallery-section {
  padding: 36px 0 44px;
}

.decorated-heading {
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 800;
}

.decorated-heading::before,
.decorated-heading::after {
  content: "";
  width: min(180px, 22vw);
  height: 2px;
  background: var(--green);
}

.hero-image {
  display: block;
  width: 100%;
  max-width: 820px;
  height: min(520px, 60vw);
  min-height: 300px;
  object-fit: contain;
  border-radius: 14px;
  margin: 0 auto;
  background: #f3f2ec;
}

.gallery {
  max-width: 820px;
  margin: 13px auto 0;
}

.gallery-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 1px 8px;
}

.gallery-thumb {
  flex: 0 0 105px;
  width: 105px;
  height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  background: #ddd;
}

.gallery-thumb.is-active { border-color: var(--orange); }

.about-section {
  background:
    linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)),
    url("./assets/soft-foliage.jpg") center / cover no-repeat;
  padding: 48px 0 50px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr);
  gap: 38px;
  align-items: start;
}

.about-title {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
}

.bio {
  line-height: 1.65;
  font-size: 15px;
}

.bio p:first-child { margin-top: 0; }

.facts-card {
  background: rgba(84,139,89,.15);
  border: 1px solid rgba(84,139,89,.26);
  border-radius: 26px;
  padding: 24px;
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
}

.fact strong {
  display: block;
  color: var(--teal);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px;
}

.fact span {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.personality-section {
  padding: 44px 0 52px;
}

.traits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 850px;
  margin: 0 auto 28px;
}

.trait {
  background: #f5f1df;
  border-radius: 23px;
  padding: 24px 20px;
  text-align: center;
  font-weight: 700;
  line-height: 1.35;
}

.trait:nth-child(2) { background: #fff0d6; }
.trait:nth-child(3) { background: #e9f0ec; }

.apply-center {
  text-align: center;
  margin-top: 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 22px;
  background: rgba(255,255,255,.92);
}

.footer-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #3d4443;
}

.footer-email {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.status {
  padding: 18px;
  border-radius: 10px;
  background: white;
}

@media (max-width: 900px) {
  .main-nav { gap: 16px; font-size: 13px; }
  .brand-logo { width: 150px; }
  .dog-grid { gap: 28px 25px; }
  .profile-hero-inner { grid-template-columns: 1fr .9fr; }
}

@media (max-width: 760px) {
  .nav-shell { min-height: 68px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 24px; }
  .nav-donate { border-radius: 0; }
  .mobile-menu { display: block; margin-left: auto; }

  .dog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0 32px;
  }
  .profile-hero-image {
    height: 280px;
    order: -1;
  }
  .about-grid { grid-template-columns: 1fr; }
  .traits { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 520px) {
  .brand-logo { width: 142px; }
  .hero { min-height: 355px; }
  .hero-actions { gap: 12px; }
  .hero-btn { width: min(100%, 290px); }
  .dog-grid { grid-template-columns: 1fr; gap: 24px; }
  .listing-section { padding-top: 38px; }
  .card-summary { min-height: 0; }
  .facts-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gallery-thumb { flex-basis: 88px; width: 88px; height: 68px; }
  .footer-inner { flex-direction: column; text-align: center; }
}


/* V5 refinements */
.card-body {
  display: flex;
  flex-direction: column;
  min-height: 215px;
}

.card-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 8px 0 18px;
}

.card-fact strong {
  display: block;
  font-size: 10px;
  letter-spacing: .55px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 2px;
}

.card-fact span {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: #343839;
}

.card-body .meet-button {
  margin-top: auto;
  align-self: flex-start;
}

.profile-image-frame {
  justify-self: end;
  width: min(100%, 390px);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(84,139,89,.18);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(34,64,57,.16);
}

.profile-hero-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.gallery-note {
  text-align: center;
  margin: 11px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.facts-card .fact[data-empty="true"] {
  opacity: .68;
}

.personality-section {
  background: #fff;
}

.personality-copy {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.65;
  color: #404647;
}

.site-footer {
  background: #fff;
  padding: 24px 0;
}

.footer-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mini-logo {
  width: 95px;
  height: auto;
  display: block;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-email {
  font-size: 12px;
}

.footer-center {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.social-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--teal);
  font-weight: 800;
  font-size: 12px;
  border: 1px solid var(--line);
}

.footer-right {
  text-align: right;
  font-size: 12px;
  color: #4d5354;
}

@media (max-width: 760px) {
  .profile-image-frame {
    justify-self: center;
    width: min(100%, 360px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left {
    justify-content: center;
  }

  .footer-right {
    text-align: center;
  }
}


/* V6 refinements */
/* Centre incomplete final rows while preserving the three-card desktop rhythm. */
.dog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 44px 62px;
}

.dog-card {
  flex: 0 1 calc((100% - 124px) / 3);
  width: calc((100% - 124px) / 3);
}

/* Hero portrait: a restrained family-album / mounted-photo treatment. */
.profile-image-frame {
  position: relative;
  justify-self: end;
  width: min(100%, 390px);
  padding: 7px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.92);
  background: linear-gradient(145deg, #fffdf8 0%, #ffffff 54%, #f1eee5 100%);
  box-shadow:
    0 3px 5px rgba(34,64,57,.10),
    0 14px 24px rgba(34,64,57,.16),
    0 26px 46px rgba(34,64,57,.10);
  transform: rotate(-.35deg);
}

.profile-image-frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 7%;
  right: 7%;
  bottom: -8px;
  height: 18px;
  border-radius: 50%;
  background: rgba(31,55,50,.13);
  filter: blur(9px);
}

.profile-hero-image {
  height: 300px;
  border-radius: 9px;
}

/* Portrait photos remain fully visible without making the gallery excessively tall. */
.hero-image {
  width: 100%;
  max-width: 820px;
  height: clamp(320px, 48vw, 500px);
  min-height: 0;
  object-fit: contain;
}

/* About Me now leads directly to the adoption action. */
.about-apply {
  text-align: center;
  padding: 34px 18px 48px;
  background: #fff;
}

/* Canva-inspired footer: email at left, social destinations at right. */
.site-footer {
  padding: 20px 0 22px;
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  gap: 28px;
}

.footer-email-icon,
.social-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.footer-email-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.footer-email-icon svg {
  width: 23px;
  height: 23px;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.social-link {
  min-width: 28px;
  height: 34px;
  color: var(--teal);
  font-weight: 800;
  font-size: 19px;
}

.social-link svg {
  width: 29px;
  height: 29px;
  display: block;
}

.social-link[aria-disabled="true"] {
  cursor: default;
}

@media (max-width: 900px) {
  .dog-card {
    flex-basis: calc((100% - 25px) / 2);
    width: calc((100% - 25px) / 2);
  }
  .dog-grid { gap: 28px 25px; }
}

@media (max-width: 760px) {
  .profile-image-frame {
    justify-self: center;
    width: min(100%, 360px);
    transform: rotate(-.25deg);
  }
  .footer-inner { flex-direction: row; text-align: initial; }
}

@media (max-width: 520px) {
  .dog-card { flex-basis: 100%; width: 100%; }
  .dog-grid { gap: 24px; }
  .hero-image { height: clamp(300px, 112vw, 430px); }
  .footer-inner { gap: 18px; }
  .footer-socials { gap: 8px; }
  .social-link { min-width: 25px; }
}


/* V7 footer — matches the supplied Canva footer icon treatment. */
.site-footer {
  padding: 13px 0 15px;
  background: #fff;
}

.footer-inner {
  width: min(1180px, calc(100% - 36px));
  min-height: 62px;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}

.footer-icon:hover,
.footer-icon:focus {
  transform: translateY(-2px);
  opacity: .9;
}

.footer-email-icon {
  width: 58px;
  height: 58px;
  background: transparent;
  border-radius: 0;
}

.footer-email-icon img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}

.footer-socials {
  gap: 14px;
}

.social-link {
  min-width: auto;
  height: 54px;
  color: inherit;
}

.social-link img {
  display: block;
  width: auto;
  height: 46px;
  object-fit: contain;
}

.social-link[aria-label="Threads"] img {
  height: 40px;
}

.social-link[aria-label="YouTube"] img {
  height: 46px;
  max-width: 78px;
}

.social-link[aria-label="TikTok"] img {
  height: 43px;
}

@media (max-width: 520px) {
  .footer-inner {
    gap: 15px;
  }

  .footer-email-icon {
    width: 48px;
    height: 48px;
  }

  .footer-email-icon img {
    width: 46px;
    height: 46px;
  }

  .footer-socials {
    gap: 8px;
  }

  .social-link {
    height: 43px;
  }

  .social-link img {
    height: 38px;
  }

  .social-link[aria-label="Threads"] img {
    height: 34px;
  }

  .social-link[aria-label="YouTube"] img {
    height: 38px;
    max-width: 63px;
  }

  .social-link[aria-label="TikTok"] img {
    height: 36px;
  }
}

/* V8: refined social artwork */
.footer-socials { display:flex; align-items:center; gap:16px; }
.social-link { width:48px; height:48px; flex:0 0 auto; }
.social-link img { width:46px; height:46px; object-fit:contain; }
.social-link[aria-label="Threads"] img { width:42px; height:42px; }
.social-link[aria-label="YouTube"] { width:66px; }
.social-link[aria-label="YouTube"] img { width:66px; height:46px; max-width:none; }
@media (max-width:520px) {
  .footer-socials { gap:9px; }
  .social-link { width:38px; height:38px; }
  .social-link img { width:36px; height:36px; }
  .social-link[aria-label="Threads"] img { width:33px; height:33px; }
  .social-link[aria-label="YouTube"] { width:52px; }
  .social-link[aria-label="YouTube"] img { width:52px; height:36px; max-width:none; }
}


/* V9 final footer refinement */
.site-footer {
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
  padding: 14px 0;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(310px, 1fr) auto minmax(310px, 1fr);
  align-items: center;
  column-gap: 28px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-width: 0;
}

.footer-email-text {
  color: #28666d;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.footer-email-text:hover,
.footer-email-text:focus {
  text-decoration: underline;
}

.footer-socials {
  justify-self: center;
}

.footer-copyright {
  justify-self: end;
  color: #666;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 12px;
    padding: 5px 0;
  }

  .footer-contact,
  .footer-socials,
  .footer-copyright {
    justify-self: center;
  }

  .footer-copyright {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding: 18px 0;
  }

  .footer-inner {
    width: min(100% - 24px, 1180px);
    row-gap: 14px;
  }

  .footer-contact {
    gap: 8px;
  }

  .footer-email-text {
    font-size: 13px;
  }

  .footer-copyright {
    font-size: 12px;
    white-space: normal;
  }
}


/* V10 — Elysium application wrapper */
.apply-page {
  background: #fff;
}

.apply-container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.apply-intro {
  background:
    linear-gradient(rgba(255,255,255,.70), rgba(255,255,255,.86)),
    url("./assets/soft-foliage.jpg") center / cover no-repeat;
  padding: 28px 0 34px;
}

.apply-intro .back-link {
  margin-bottom: 22px;
}

.apply-eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.apply-intro h1 {
  margin: 0;
  color: var(--teal);
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.05;
  font-weight: 800;
}

.apply-lead {
  max-width: 820px;
  margin: 14px 0 24px;
  color: #424849;
  font-size: 17px;
  line-height: 1.65;
}

.support-panel {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  max-width: 940px;
  padding: 18px 20px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(84,139,89,.28);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(34,64,57,.08);
}

.support-panel-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 21px;
  line-height: 1;
}

.support-panel strong {
  display: block;
  color: var(--teal);
  margin: 1px 0 4px;
  font-size: 15px;
}

.support-panel p {
  margin: 0;
  color: #4a5051;
  font-size: 14px;
  line-height: 1.55;
}

.support-panel a {
  color: var(--teal);
  font-weight: 700;
}

.form-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}

.form-heading-row h2 {
  margin: 0;
  color: var(--teal);
  font-size: 28px;
}

.direct-form-link {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.apply-form-section {
  padding: 28px 0 52px;
}

.asm-form-shell {
  width: 100%;
  overflow: hidden;
  background: #f2f2f2;
  border: 1px solid #e0ded6;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(34,64,57,.10);
}

.asm-application-frame {
  display: block;
  width: 100%;
  height: 76vh;
  min-height: 920px;
  border: 0;
  background: #fff;
}

.apply-form-help {
  margin: 12px 4px 0;
  color: #686d6e;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 760px) {
  .apply-intro {
    padding-top: 22px;
  }

  .support-panel {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 15px;
  }

  .support-panel-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .form-heading-row {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .asm-form-shell {
    border-radius: 12px;
  }

  .asm-application-frame {
    height: 78vh;
    min-height: 780px;
  }
}

@media (max-width: 520px) {
  .apply-container {
    width: min(100% - 22px, 1120px);
  }

  .apply-intro h1 {
    font-size: 36px;
  }

  .apply-lead {
    font-size: 15px;
  }

  .support-panel {
    grid-template-columns: 1fr;
  }

  .support-panel-mark {
    display: none;
  }

  .asm-application-frame {
    height: 82vh;
    min-height: 720px;
  }
}


/* V11 — responsive application flow */
.mobile-form-handoff {
  display: none;
}

.mobile-continue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 7px 18px rgba(84,139,89,.18);
}

.mobile-continue-button:hover,
.mobile-continue-button:focus {
  filter: brightness(.98);
}

.mobile-form-copy {
  margin: 8px 0 17px;
  max-width: 520px;
  color: #555b5c;
  font-size: 14px;
  line-height: 1.55;
}

.mobile-tab-note {
  margin: 10px 0 0;
  color: #737879;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .desktop-form-heading,
  .desktop-tablet-form {
    display: none !important;
  }

  .mobile-form-handoff {
    display: block;
    margin-top: 28px;
    padding: 21px 19px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(34,93,100,.16);
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(34,64,57,.07);
  }

  .mobile-form-handoff h2 {
    margin: 0;
    color: var(--teal);
    font-size: 24px;
    line-height: 1.2;
  }

  .mobile-continue-button {
    width: 100%;
  }

  .apply-intro {
    padding-bottom: 38px;
  }
}

/* V12 — clearer mobile application wording */
.mobile-lead { display:none; }
@media (max-width:600px) {
  .desktop-tablet-lead { display:none; }
  .mobile-lead { display:inline; }
}
