
:root {
  --navy: #082f50;
  --navy-dark: #06243d;
  --navy-darker: #082944;  
  --teal: #008c79;
  --teal-dark: #007565;
  --mint: #eef8f6;
  --text: #123c5d;
  --muted: #557087;
  --white: #ffffff;
  --border: #d7e4e8;
  --max-width: 1180px;
  --shadow: 0 18px 50px rgba(8, 47, 80, 0.10);
  --green: #0b7562;
  --green-dark: #086352;
  --green-tint: #e7f3f1;
  --green-tint-2: #eef7f6;
  --text-body: #4a5a68;
  --text-muted: #6b7c8a;
  --border-soft: #d7e4e4;    
}

.main p, .main label {
  font-size:18px !important;
}


/* ---------- Shared typography ---------- */

.eyebrow {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #008c79;
}

/* ---------- Buttons ---------- */

.button {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  border: 0;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  width: 100%;
  background: #008c79;
  color: white;
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-light {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.8);
  color: white;
}



/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
  max-width: 100%;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../image/running.jpg");
  background-size: cover;
  background-position: bottom center;
  background-position-y: 85%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0.98) 0%,
      rgba(255,255,255,0.92) 34%,
      rgba(255,255,255,0.35) 59%,
      rgba(255,255,255,0.05) 100%);
}

.hero-content {
  min-height: 420px;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 38px;
  padding-bottom: 38px;
}

.hero-copy {
  width: min(550px, 65%);
}

.hero h2 {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 64px;
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    color: #082f50;
}

.hero h2 span {
    color: #008c79;
}

.hero-text {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
    color: #123c5d;
}


.partner-row {
  display: flex;
  align-items: center;
  gap: 0px;
}

.kwong-partner-logo, .srf-logo {
  width: 170px;
  height: auto;
  padding: 10px 12px;
  border-radius: 2px;
}

.partner-divider {
  height: 55px;
  width: 1px;
  background:#000;
  margin-left:5px;
  margin-right:5px;
}

.discount-badge {
  position: absolute;
  right: 5%;
  top: 82px;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: rotate(-7deg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  /* border: 5px solid rgba(255,255,255,0.7); */
}

.discount-badge strong {
  font-size: 60px;
  line-height: 0.9;
}

.discount-badge span {
  font-size: 30px;
  font-weight: 900;
}

.discount-badge img {
    width: 100%;
    height: auto;
}


/* ---------- Subscribe ---------- */

.subscribe-section {
  background: white;
  padding:20px 0px;
}

.subscribe-grid {
  display: flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  width:100%;
}

.subscribe-grid > div {
    width:0px;
    flex: 1 1 320px;
    min-width: 300px;
}

.intro {
  max-width: 520px;
  padding:42px;
}

.intro h2 {
  color: var(--navy);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 35px;
}

.intro p:not(.eyebrow) {
  color: var(--muted);
}

.signup-card {
  background: var(--mint);
  padding: 42px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.signup-card h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 35px;
  font-family: "Montserrat", Arial, sans-serif;
}

.card-description {
  color: var(--muted);
  margin-bottom: 24px;
}

.signup-form label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.input-wrap {
  display: flex;
  align-items: center;
  height: 54px;
  background: white;
  border: 1px solid #bfd1d7;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 12px;
}

.input-icon {
  padding-left: 16px;
  font-size: 19px;
  color: var(--teal);
}

.input-wrap input {
  width: 100%;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--text);
  background: transparent;
}

.privacy-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}



.success-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Event information ---------- */

.event-section {
  background: white;
}

.event-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 70px;
  align-items: center;
}

.event-copy h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 43px);
}

.event-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 12px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 3px;
}

.event-details {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.detail {
  min-height: 145px;
  padding: 24px 14px;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.detail:nth-child(5) {
  border-right: 0;
}

.detail-icon {
  height: 32px;
  color: var(--teal);
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 8px;
}

.detail strong {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.3;
}

.detail span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}

.event-button {
  grid-column: 1 / -1;
  margin-top: 24px;
}



/* ---------- Success + image section ---------- */
  .success-section{
    padding: 0;
    max-width: none;
    display:none;
  }

  .success-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
  }

  .success-grid{
    display:flex;
    flex-wrap:nowrap;
    min-height: 340px;
    align-items:center;
    justify-content:center;
  }
  .success-copy{
    padding: 15px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    width:100%;
    max-width: 620px;
    background: var(--green-tint);
    min-height: 320px;
  }
  .check-circle{
    width:66px;
    height:66px;
    border-radius:50%;
    background: var(--green);
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom: 18px;
  }
  .check-circle svg{ 
    width:44px; height:44px; color:#fff; 
  }
  .success-copy h3{
    font-size: 40px;
    font-weight:800;
    color: var(--navy);
    margin:0px;
  }
  .success-copy p.desc{
    font-size: 24.5px;
    color: var(--text-body);
    margin-bottom: 10px;
  }
  .code-box{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border: 1.5px dashed #8fc9bf;
    background: #f4fbfa;
    border-radius: 10px;
    padding: 16px 28px;
    margin-bottom: 22px;
    width: fit-content;
  }
  .code-box span{
    color: var(--green);
    font-weight:800;
    font-size: 22px;
    letter-spacing: 2px;
  }
  .success-copy .discount-line{
    font-size: 24.5px;
    color: var(--navy);
    margin-bottom: 12px;
  }
  .success-copy .discount-line strong{ font-weight:800; }
  .email-note{
    /*display:flex;*/
    display:none;
    align-items:center;
    gap:9px;
    font-size: 18.5px;
    color: var(--text-body);
    margin-bottom: 26px;
  }
  .email-note svg{ width:16px; height:16px; color: var(--green); flex-shrink:0; }

  .btn-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    background: var(--green);
    color:#fff;
    font-weight:700;
    font-size: 18px;
    letter-spacing:0.5px;
    padding: 16px 28px;
    border-radius: 999px;
    width: fit-content;
    transition: background .15s ease;
  }
  .btn-pill:hover{ background: var(--green-dark); color:white; text-decoration:none; }
  .btn-pill svg{ width:14px; height:14px; }

  .success-image{
    position:relative;
    background-image: url("../image/success-hillimage.png");
    background-repeat:no-repeat;
    background-size:cover;
    background-position:top left;
    width:49%;
    min-height: 320px;
  }
  .success-image .tagline{
    position:absolute;
    top: 34px;
    left: 40px;
    font-family: 'Caveat', cursive;
    font-size: 30px;
    color: #ffffff;
    line-height:1.15;
    font-weight:700;
    text-shadow: 0 2px 10px rgba(0,0,0,.25);
  }
  .success-image .tagline .underline{
    position:relative;
    display:inline-block;
  }
  .success-image .tagline .underline::after{
    content:"";
    position:absolute;
    left:-2px; right:-2px; bottom:-3px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    opacity:.85;
  }

  @media (max-width: 768px){
   .eyebrow {
    font-size: 14px;
    line-height: 1;
   }

   
   .hero h2 {
    font-size: 30px;
    line-height: 1.2;
   }

   .kwong-partner-logo, .srf-logo { 
    width: 120px;
   }

   .discount-badge {
    width:140px;
    height:140px;
   }
   .intro {
    display:none;
   }
   .signup-card {
    padding: 10px 10px;
   }

   .success-section {
    margin-top: 10px;
   }

   .success-copy {
    padding:10px 20px;
   }

   .success-image{
    display:none;
   }
  }