/* ============================================================
   T2U — Tradies on Demand  |  styles.css
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ul {
  list-style: none;
} */

/* ---------- Screen-reader only ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Design tokens ---------- */
:root {
  --green:        #85FE35;
  --green-dark:   #458A0A;
  --green-deep:   #024023;
  --green-perth:  #6ED41C;
  --green-light:  #EEFFDD;
  --green-pale:   #CFF7D3;
  --dark:         #1E1E1E;
  --mid:          #434343;
  --grey:         #757575;
  --grey-light:   #B3B3B3;
  --grey-bg:      #F5F5F5;
  --white:        #F3F3F3;
  --yellow:       #E7FF25;
  --coming-bg:    #682D03;
  --coming-text:  #FFF1C2;
  --border:       #D9D9D9;
}

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

/* ---- Eyebrow ---- */
.eyebrow {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--grey);
  text-align: center;
}

.eyebrow--dark {
  color: var(--grey-light);
}

/* ---- Section H2 ---- */
.section-h2 {
  font-weight: 400;
  font-size: 48px;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: var(--dark);
  text-align: center;
  margin-top: 16px;
}

.section-h2--light {
  color: var(--white);
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Button group (pill + circle) ---- */
.btn-group {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.btn-group:hover .btn-pill,
.btn-group:hover .btn-circle {
  transform: translateY(-2px);
}

/* ---- Pill button ---- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 16px 24px;
  border-radius: 80px;
  background: var(--green);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-group:hover .btn-pill {
  box-shadow: 0 8px 24px rgba(133, 254, 53, 0.4);
}

.btn-pill--tradie {
  background: var(--green-dark);
  color: var(--green-light);
}

.btn-group:hover .btn-pill--tradie {
  box-shadow: 0 8px 24px rgba(69, 138, 10, 0.4);
}

/* ---- Circle button ---- */
.btn-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.btn-circle--hero {
  background: var(--green);
}

.btn-circle--tradie {
  background: var(--green-dark);
}

.btn-group:hover .btn-circle--tradie {
  box-shadow: 0 8px 24px rgba(69, 138, 10, 0.4);
}

/* ---- Pill + circle seam ---- */
.btn-pill {
  border-radius: 80px;
}
.btn-circle {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 44px;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 44px;
}

/* Logo */
.nav__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__logo-text {
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav__logo-dot {
  position: absolute;
  top: -4px;
  right: -10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: kenBurns 8s ease forwards;
}

@keyframes kenBurns {
  to { transform: scale(1); }
}

/* Gradients */
.hero__overlay-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 53%;
  height: 100%;
  background: linear-gradient(270deg, rgba(12,15,8,0) 0%, rgba(12,15,8,0.8) 79%);
  pointer-events: none;
}

.hero__overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  opacity: 0.6;
  pointer-events: none;
}

/* Content */
.hero__content {
  position: absolute;
  left: 13vw;
  top: 50%;
  transform: translateY(calc(-50% + 30px));
  max-width: 700px;
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.3s forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 30px));
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

.hero__title {
  font-size: 96px;
  font-weight: 400;
  line-height: 96%;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__title--green {
  color: var(--green-perth);
  font-weight: 600;
  letter-spacing: 3px;
}

.hero__subtitle {
  font-size: 28px;
  font-weight: 300;
  line-height: 38px;
  color: var(--white);
  margin-bottom: 40px;
}

.btn-group--hero .btn-pill--hero {
  padding: 16px 28px;
  font-size: 18px;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 92px;
  opacity: 0;
  animation: fadeIn 0.6s ease 1.2s forwards, bounce 2s ease 1.8s infinite;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ============================================================
   BUILT FOR BETTER WORK
   ============================================================ */
.built {
  background: #fff;
  padding: 107px 40px 80px;
  text-align: center;
}

.built__cards {
  display: flex;
  justify-content: center;
  gap: 59px;
  margin-top: 57px;
  flex-wrap: wrap;
}

.built-card {
  width: 437px;
  /* min-height: 252px; */
  border: 1px solid var(--grey);
  border-radius: 16px;
  padding: 28px 29px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.built-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--green-dark);
}

.built-card__icon {
  flex-shrink: 0;
}

.built-card__title {
  font-size: 20px;
  font-weight: 400;
  line-height: 120%;
  color: var(--dark);
}

.built-card__body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--grey);
  margin-left: 1.5rem;
  margin-top: 1rem;
}

/* ============================================================
   TRADE CATEGORIES GRID
   ============================================================ */
.trades {
  padding: 57px 0px 107px;
}

.trades__grid {
  display: grid;
  grid-template-columns: repeat(4, 340px);
  gap: 26px 23px;
  justify-content: center;
}

/* Trade card */
.trade-card {
  width: 340px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--grey-bg);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  will-change: transform;
}

.trade-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.trade-card__info {
  padding: 26px 28px;
  min-height: 169px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trade-card__title {
  font-size: 24px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.trade-card__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--grey);
}

/* Image section */
.trade-card__image-wrap {
  position: relative;
  height: 393px;
  background: var(--green-dark);
  overflow: hidden;
  flex: 1;
}

.trade-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.trade-card:hover .trade-card__img {
  transform: scale(1.04);
}

.trade-card__img--soon {
  filter: grayscale(1) brightness(0.7);
}

.trade-card__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.trade-card__overlay--dark {
  background: rgba(0, 0, 0, 0.2);
}

/* Tag badges */
.trade-tag {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.trade-tag--launching {
  background: var(--green-deep);
  color: var(--green-pale);
}

.trade-tag--soon {
  background: var(--coming-bg);
  color: var(--coming-text);
}

/* ============================================================
   TRUST & SAFETY
   ============================================================ */
.trust {
  background: var(--dark);
  padding: 107px 0;
  text-align: center;
}

.trust .eyebrow,
.trust .section-h2 {
  padding: 0 40px;
}

.trust__cards {
  display: flex;
  justify-content: center;
  gap: 59px;
  margin-top: 90px;
  flex-wrap: wrap;
  padding: 0 40px;
}

.trust-card {
  width: 437px;
  min-height: 370px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 29px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: border-color 0.2s ease;
  align-items: flex-start;
}

.trust-card:hover {
  border-color: var(--green);
}

.trust-card__icon {
  display: flex;
  justify-content: center;
}

.trust-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-card__title {
  font-size: 20px;
  font-weight: 400;
  line-height: 120%;
  color: var(--white);
  text-align: left;
}

.trust-card__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--grey-light);
  text-align: left;
}

/* ============================================================
   CTA BANNER — "Be your own boss"
   ============================================================ */
.cta-banner-wrap {
  padding: 107px 50px;
}

.cta-banner {
  max-width: 1423px;
  min-height: 490px;
  border-radius: 16px;
  background: linear-gradient(99.01deg, #E7FF25 26.59%, #DFEB83 93.09%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.cta-banner__content {
  position: relative;
  z-index: 2;
  padding: 66px 64px;
  max-width: 750px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.cta-banner__title {
  font-size: 48px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.cta-banner__subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--dark);
  text-align: left;
}

.cta-banner__list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.cta-banner__list li {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tick {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--green-dark);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Banner image — right side */
.cta-banner__image {
  position: absolute;
  right: 0;
  top: auto;
  bottom: 0;
  width: 58%;
  pointer-events: none;
}

.cta-banner__img {
  width: 100%;
  height: calc(100% + 41px);
  object-fit: cover;
  border-radius: 0 16px 16px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  border-top: 25px solid #fff;
  min-height: 191px;
  padding: 53px 41px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.footer__copy {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #B2B2B2;
  margin-bottom: 0;
}

.mobile-btn{
  display: none;
}

/* ============================================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — ≤ 1400px
   ============================================================ */
@media (max-width: 1400px) {
  .hero__title {
    font-size: 72px;
  }

  .hero__content {
    left: 0;
    padding: 0 120px;
    max-width: 100%;
  }

  .trades {
    padding: 57px 60px 107px;
  }

  .trades__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .trade-card {
    width: 100%;
  }

  .built__cards {
    padding: 0 60px;
    gap: 24px;
  }

  .trust .eyebrow,
  .trust .section-h2 {
    padding: 0 60px;
  }

  .trust__cards {
    padding: 0 60px;
    gap: 24px;
  }

  .cta-banner-wrap {
    padding: 80px 60px;
  }
}

/* ============================================================
   RESPONSIVE — ≤ 1100px
   ============================================================ */
@media (max-width: 1100px) {
  .trades__grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }

  .trade-card__image-wrap {
    height: 280px;
  }

  .trades {
    padding: 57px 40px 107px;
  }

  .cta-banner__image {
    width: 50%;
    opacity: 0.6;
  }
}

/* ============================================================
   RESPONSIVE — ≤ 900px (tablet)
   ============================================================ */
@media (max-width: 900px) {
  /* Nav */
  .nav {
    padding: 20px 24px;
  }
  .nav.scrolled {
    padding: 14px 24px;
  }

  /* Hero */
  .hero__title {
    font-size: 52px;
  }
  .hero__subtitle {
    font-size: 20px;
  }
  .hero__content {
    padding: 0 24px;
    left: 0;
  }
  .hero__scroll-indicator {
    left: 24px;
  }

  /* Section headings */
  .section-h2 {
    font-size: 36px;
  }

  /* Built */
  .built {
    padding: 80px 24px;
  }
  .built__cards {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  .built-card {
    width: 100%;
    max-width: 560px;
  }

  /* Trust */
  .trust .eyebrow,
  .trust .section-h2 {
    padding: 0 24px;
  }
  .trust__cards {
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    gap: 24px;
  }
  .trust-card {
    width: 100%;
    max-width: 560px;
  }

  /* CTA Banner */
  .cta-banner-wrap {
    padding: 60px 24px;
  }
  .cta-banner {
    min-height: auto;
  }
  .cta-banner__content {
    padding: 40px 28px;
    max-width: 100%;
  }
  .cta-banner__title {
    font-size: 36px;
  }
  .cta-banner__image {
    display: none;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}

/* ============================================================
   RESPONSIVE — ≤ 600px (mobile)
   ============================================================ */
@media (max-width: 600px) {
  /* Hero */
  .hero__title {
    font-size: 40px;
    line-height: 105%;
  }
  .hero__subtitle {
    font-size: 18px;
    line-height: 1.5;
  }
  .hero__content {
    padding: 0 20px;
    bottom: 0;
    top: auto;
  }
  .hero__overlay-left {
    width: 100%;
  }
  .hero__img{
    object-position: 62% center;
  }
  .built-card{
    flex-direction: row;
    padding: 28px 22px;
  }
  .built-card__content {
    margin-top: 1rem;
  }
  .trust-card {
    flex-direction: row;
    min-height: auto;
  }
  .trust-card__icon svg{
    width: 100%;
    height: auto;
  }
  .cta-banner__list{
    text-align: left;
  }

  /* Nav — hide pill text, keep circle */
  .desktop-btn, nav .btn-circle, .hero__scroll-indicator{
    display: none;
  }
  .mobile-btn{
    display: block;
  }
  /* .btn-pill__text {
    display: none;
  } */
  /* .btn-pill--nav {
    padding: 0;
    width: 0;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
  } */
  .btn-circle {
    border-radius: 50%;
  }

  /* Built */
  .built {
    padding-top: 60px;
  }

  /* Trades */
  .trades {
    padding: 40px 16px 80px;
  }
  .trades__grid {
    grid-template-columns: 1fr;
  }
  .trade-card {
    width: 100%;
  }
  .trade-card__image-wrap {
    height: 340px;
  }

  /* Trust */
  .trust {
    padding: 60px 0;
  }
  .trust .eyebrow,
  .trust .section-h2 {
    padding: 0 16px;
  }
  .trust__cards {
    padding: 0 16px;
  }

  /* CTA */
  .cta-banner-wrap {
    padding: 40px 16px;
  }
  .cta-banner__title {
    font-size: 30px;
  }

  /* Footer */
  .footer {
    padding: 40px 20px;
  }
}

/* ============================================================
   TRADES SWIPER
   ============================================================ */

/* ---- Desktop (>600px): make swiper-wrapper layout-transparent ---- */
/* display:contents removes the wrapper's own box so the
   .swiper-slide articles participate directly in the CSS grid */
@media (min-width: 601px) {
  .trades__grid > .swiper-wrapper {
    display: contents;
  }
  .trades__grid > .swiper-pagination {
    display: none;
  }
}

/* ---- Mobile (≤600px): horizontal slider ---- */
@media (max-width: 600px) {
  /* Section clips the peek-overflow from adjacent slides */
  .trades {
    overflow: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* When Swiper has initialised, switch from grid → Swiper layout */
  .trades__grid.swiper-initialized {
    display: block;
    overflow: visible;   /* let adjacent slides peek out */
    padding: 0 20px;     /* left edge indent matches old section padding */
  }

  /* Swiper needs the wrapper to be flex (it sets this itself,
     but we ensure it's never display:contents on mobile) */
  .trades__grid.swiper-initialized .swiper-wrapper {
    display: flex;
    align-items: stretch;
  }

  /* Each slide fills the swiper slot */
  .trades__grid.swiper-initialized .swiper-slide {
    height: auto;
    width: auto; /* Swiper controls width via slidesPerView */
  }

  /* ---- Pagination dots ---- */
  .trades__grid .swiper-pagination {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding: 0;
  }

  .trades .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: var(--grey-light);
    opacity: 1;
    border-radius: 50%;
    transition: width 0.3s ease, border-radius 0.3s ease, background 0.3s ease;
  }

  .trades .swiper-pagination-bullet-active {
    background: var(--green-dark);
    width: 24px;
    border-radius: 4px;
  }
}

/* ============================================================
   MODALS — shared + per-modal styles
   ============================================================ */

/* Full-screen modal container (shared) */
.event-modal,
.ea-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(16px);
  /* visibility delay matches the opacity fade so it hides only after fully invisible */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  overscroll-behavior: contain;
}

.ea-modal__form-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  padding: 16px 40px;
  background: #fff;
  border-top: 1px solid #EBEBEB;
  min-height: 72px;
  z-index: 10;
}

.event-modal .form-label{
  margin-bottom: 1.5rem;
}

.event-modal.is-open,
.ea-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  /* visibility becomes visible immediately on open (no delay) */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}

body.modal-open {
  overflow: hidden;
}

/* ---- Modal header (shared) ---- */
.event-modal__header,
.ea-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid #EBEBEB;
  flex-shrink: 0;
  background: #fff;
  z-index: 10;
  position: relative;
}

.event-modal__close,
.ea-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: #888;
  transition: background 0.15s ease, color 0.15s ease;
}

.event-modal__close:hover,
.ea-modal__close:hover {
  background: #f0f0f0;
  color: var(--dark);
}

/* ---- Event modal: scrollable body (single form) ---- */
.event-modal__scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

/* ---- Early access modal: steps viewport (clips slide transitions) ---- */
.ea-modal__steps-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* ---- Individual step panels ---- */
.modal-step {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  /* NO transition — exits are instant to prevent overlap */
}

.modal-step.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Enter-from-right animation (going forward) */
@keyframes stepEnterForward {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Enter-from-left animation (going back) */
@keyframes stepEnterBack {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}

.modal-step.is-entering-forward {
  animation: stepEnterForward 0.28s ease-out forwards;
}

.modal-step.is-entering-back {
  animation: stepEnterBack 0.28s ease-out forwards;
}

/* ---- Shared content wrapper ---- */
.event-modal__content,
.ea-modal__content {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0px 40px 56px;
}
.modal-step-1 .ea-modal__content{
	padding-top: 64px;
}

.event-modal__title,
.ea-modal__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 12px;
}

.event-modal__subtitle,
.ea-modal__subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--grey);
  margin-bottom: 40px;
}

/* ---- Role selection cards (Step 1) ---- */
.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 24px;
  background: #fff;
  border: 1.5px solid #E5E5E5;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.role-card:hover {
  border-color: #B5E88A;
  box-shadow: 0 4px 16px rgba(69, 138, 10, 0.08);
}

.role-card.is-selected {
  border-color: var(--green-dark);
  box-shadow: 0 4px 20px rgba(69, 138, 10, 0.12);
}

.role-card__icon {
  color: #B8B8B8;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.role-card.is-selected .role-card__icon {
  color: var(--green-dark);
}

.role-card__title {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.role-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role-card__list li {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.4;
  padding-left: 14px;
  position: relative;
}

.role-card__list li::before {
  content: '\00B7';
  position: absolute;
  left: 2px;
  font-size: 18px;
  line-height: 1.1;
  color: var(--grey-light);
}

/* ---- Form (Steps 2a & 2b) ---- */
.event-modal__form,
.ea-modal__form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* margin-bottom: 1.5rem; */
}

/* CF7 wraps each input — make it block-level */
.event-modal .wpcf7-form-control-wrap,
.ea-modal .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Inputs — targets both static HTML and CF7 output */
.form-control,
.event-modal .wpcf7-form-control:not([type="submit"]),
.ea-modal .wpcf7-form-control:not([type="submit"]) {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--dark);
  background: #fff;
  border: 1px solid #D5D5D5;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder,
.event-modal .wpcf7-form-control::placeholder,
.ea-modal .wpcf7-form-control::placeholder {
  color: #B3B3B3;
}

.form-control:focus,
.event-modal .wpcf7-form-control:focus,
.ea-modal .wpcf7-form-control:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(69, 138, 10, 0.12);
}

/* Select / dropdown */
.form-select,
.event-modal .wpcf7-select,
.ea-modal .wpcf7-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
  cursor: pointer;
}

/* Side-by-side row (tradie form: Service + Company Size) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* CF7 validation */
.event-modal .wpcf7-not-valid,
.ea-modal .wpcf7-not-valid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.event-modal .wpcf7-not-valid-tip,
.ea-modal .wpcf7-not-valid-tip {
  font-size: 13px;
  color: #e53e3e;
  margin-top: 4px;
  display: block;
}

/* ---- CF7 form steps: scroll ---- */
#eaStepHomeowner,
#eaStepTradie {
  overflow-y: auto;
}

#eaStepHomeowner .wpcf7,
#eaStepTradie .wpcf7 {
  padding: 64px 40px 0;
}

@media (max-width: 900px) {
  #eaStepHomeowner .wpcf7,
  #eaStepTradie .wpcf7 { padding: 48px 24px 0; }

  .ea-modal__form-footer { padding: 14px 24px; }
}

@media (max-width: 600px) {
  #eaStepHomeowner .wpcf7,
  #eaStepTradie .wpcf7 { padding: 32px 16px 0; }

  .ea-modal__form-footer {
    padding: 12px 16px;
    min-height: 64px;
    justify-content: space-between;
  }
}

/* ---- Sticky footer ---- */
.event-modal__footer,
.ea-modal__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 40px;
  background: #fff;
  border-top: 1px solid #EBEBEB;
  min-height: 72px;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 10;
}

/* Footer panels — one visible at a time */
.modal-footer-panel {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

.modal-footer-panel.is-active {
  display: flex;
}

/* Back button (outlined) */
.btn-back-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  border: 1.5px solid #D0D0D0;
  border-radius: 80px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn-back-modal:hover {
  border-color: #888;
  background: #f7f7f7;
}

/* Register Interest / Next button (filled green) */
.btn-register,
.event-modal .wpcf7-submit,
.ea-modal .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--green-dark);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  border: none;
  border-radius: 80px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn-register:hover:not(:disabled),
.event-modal .wpcf7-submit:hover,
.ea-modal .wpcf7-submit:hover {
  background: #3a7208;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(69, 138, 10, 0.3);
}

.btn-register:disabled {
  background: #D5D5D5;
  color: #999;
  cursor: not-allowed;
}

/* ---- Modal responsive ---- */
@media (max-width: 900px) {
  .event-modal__header,
  .ea-modal__header {
    padding: 16px 24px;
  }
  .event-modal__content,
  .ea-modal__content {
    padding: 48px 24px 48px;
  }
  .event-modal__footer,
  .ea-modal__footer {
    padding: 14px 24px;
  }
}

@media (max-width: 600px) {
  .event-modal__header,
  .ea-modal__header {
    padding: 14px 16px;
  }
  .event-modal__content,
  .ea-modal__content {
    padding: 32px 16px 40px;
  }
  .event-modal__title,
  .ea-modal__title {
    font-size: 28px;
  }
  .event-modal__subtitle,
  .ea-modal__subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }
  .event-modal__form,
  .ea-modal__form {
    gap: 22px;
  }
  .event-modal__footer,
  .ea-modal__footer {
    padding: 12px 16px;
    min-height: 64px;
  }
  .role-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .btn-back-modal,
  .btn-register,
  .event-modal .wpcf7-submit,
  .ea-modal .wpcf7-submit {
    padding: 13px 22px;
    font-size: 15px;
  }
  .modal-footer-panel.is-active {
    justify-content: space-between;
  }
}
