/* Refer-a-friend css start */
.refer-friend-hero.about-hero {
  padding-top: 0px;
  min-height: 750px;
  background: linear-gradient(90deg, #0f1a34cc 7.71%, rgba(0, 0, 0, 0) 123.47%),
    url("../images/refer-friend-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-title.white-text {
  color: #fff;
  margin-bottom: 10px;
}
.page-description.white-text,
.white-text {
  color: #fff;
}
.page-description a {
  text-decoration: none;
  font-weight: 600;
}
/* ---------- Cards ---------- */
.referral-section {
  padding-top: 30px;
}
.referral-cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.referral-card {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  padding: 20px;
  background: transparent;
  text-align: center;
}

.referral-card h3 {
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.1px;
  margin: 15px 0 10px;
}

.referral-card p {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.2px;
}

/* ---------- Icon Circles ---------- */
.icon-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
}

.icon-circle i {
  font-size: 28px;
  color: #fff;
}

.icon-circle .number {
  position: absolute;
  bottom: -12px;
  right: -12px;
  background: #fff;
  color: #1d293d;
  font-size: 24px;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.icon-circle.green {
  background-color: #4caf50;
}

.icon-circle.blue {
  background-color: #3f51b5;
}

/* ---------- Button ---------- */
.btn-primary {
  display: inline-block;
  background: #3f51b5;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  margin-top: 15px;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #5c6bc0;
}
.refer-btn {
  display: inline-flex;
  width: 225px;
  font-weight: 600;
}
/* ---------- Footer ---------- */
.referral-footer {
  margin-top: 30px;
  font-size: 14px;
  color: #fff;
}

.referral-footer a {
  color: #6fa8dc;
  text-decoration: none;
}

.referral-footer a:hover {
  text-decoration: underline;
}

/* ==== Card ==== */
.refer-wrap .card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 24px;
  padding: 0px 28px 25px;
  box-shadow: 0 6px 15px rgba(18, 51, 97, 0.06);
  box-shadow: 0px 0px 0px 18px #f1f5f9;
  border: 1px solid #ebebeb;
  margin: 35px 0 30px;
}
.actions .btn.green-btn {
  height: 48px;
  width: 250px;
  font-weight: 600;
}
/* ==== Form grid ==== */
.grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 28px;
}

.field {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.req {
  color: #e45b5b;
  margin-left: 4px;
}

/* Inputs: pill style */
input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  padding: 12px 18px;
  border-radius: 28px;
  border: 1px solid #cad5e2 !important;
  height: 48px !important;
  outline: none;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder {
  color: #a7b1bf;
}

input:focus {
  border-color: #9cc3ff;
  box-shadow: 0 0 0 3px rgba(90, 149, 255, 0.15);
}

/* Submit */
.actions {
  grid-column: 1 / -1; /* full row */
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

/* ==== Social proof ==== */
.social-proof {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

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

.avatars img,
.avatars .more {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.avatars img + img,
.avatars img + .more,
.avatars .more + img {
  margin-left: -10px;
}

.avatars .more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7f0ff;
  color: #2f5fe0;
  font-weight: 700;
  font-size: 12px;
}

.caption {
  font-size: 14px;
}
.winners-responses {
  padding: 40px 0;
  background: #f1f5f9;
}
.pw-year {
  margin-top: 40px;
}
.pw-year-title {
  display: block;
  text-align: center;
  color: #ff5a69;
  font-weight: 800;
  margin: 0 0 1.25rem;
}
.pw-year-title span {
  font-size: 20px; /* adjust as needed */
  font-weight: 700;
  text-align: center;
  background: linear-gradient(131.96deg, #ff3b3b 0%, #6600cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* for Firefox support */
  text-emphasis-color: transparent;
  vertical-align: top;
  margin-top: 15px;
  display: inline-block;
}
.testimonial-card {
  border: 1px solid #cad5e2;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  padding: 10px;
}
.testimonial-card .stars {
  min-height: 20px;
  background: url(../images/stars.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 130px;
  margin-bottom: 13px;
}
.testimonial-card .card-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.2px;
  border: none;
  margin: 0;
  min-height: 70px;
  display: flex;
  align-items: center;
}

.stars i {
  color: var(--star);
}
.card-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.2px;
}
.testimonial-footer .fw-semibold {
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0.1px;
  margin-bottom: 5px;
}
.testimonial-footer small {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.2px;
}
/* Small screen tweaks */
@media (max-width: 575.98px) {
  .testimonial-card .card-title {
    font-size: 1.05rem;
  }
  .card-text {
    font-size: 0.95rem;
  }
}

/* ==== Responsive ==== */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .title {
    font-size: 38px;
  }
  .card-divider {
    top: 58px;
  }
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .title {
    font-size: 30px;
  }
  .card {
    padding: 22px 18px 28px;
  }
  .card-divider {
    top: 56px;
    height: 8px;
  }
  .testimonial-card .card-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.2px;
    border: none;
    margin: 0;
    min-height: 65px;
    display: flex;
    align-items: center;
  }
}
/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .referral-cards {
    flex-direction: column;
    align-items: center;
  }
  .referral-section {
    padding-top: 0px;
  }
}
