/* Referral Scheme page (cr8ease.com/referral-scheme)
   Loaded from the page via @push('styles'), after main.css / app.min.css.
   Change the three colours below to re-theme the whole page. */

.referral-paid,
.referral-form-section {
  --ref-dark: #013C56;
  --ref-accent: #00D0FF;
  --ref-tint: #e6f9ff;
  --ref-bg: #eef6f9;
  --ref-line: #cfe0e7;
}

/* ===== 1. When will you be paid? (steps) ===== */
.referral-paid {
  background: #fff;
  padding: 80px 0 90px;
  overflow: hidden;
}
.referral-paid-inner { max-width: 1000px; margin: 0 auto; }

/* Intro highlight banner */
.referral-paid .referral-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 50px;
  padding: 22px 30px;
  background: var(--ref-dark);
  border-left: 6px solid var(--ref-accent);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(1, 60, 86, .18);
}
.referral-paid .referral-intro i {
  flex: 0 0 auto;
  font-size: 28px;
  color: var(--ref-accent);
}
.referral-paid .referral-intro p {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.referral-steps-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.referral-steps-content { flex: 1 1 auto; }

.referral-paid h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ref-dark);
  margin: 0 0 30px;
}

.referral-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.referral-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
  padding: 0;
}
.referral-steps li:last-child { margin-bottom: 0; }

.referral-steps .step-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--ref-dark);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ref-accent);
}
.referral-steps h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ref-dark);
  margin: 0;
}

/* Decorative circle with amount */
.referral-steps-visual {
  position: relative;
  flex: 0 0 320px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--ref-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.referral-amount {
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  color: var(--ref-accent);
  text-shadow: 8px 8px 0 var(--ref-dark);
}

/* Text below the steps */
.referral-paid-text {
  max-width: 700px;
  margin: 60px auto 0;
  text-align: center;
}
.referral-paid p { font-size: 16px; line-height: 1.8; color: var(--ref-dark); margin-bottom: 22px; }
.referral-paid p:last-child { margin-bottom: 0; }
.referral-paid p a { color: var(--ref-dark); font-weight: 600; text-decoration: underline; }

/* ===== 2. Referral form ===== */
.referral-form-section {
  background: var(--ref-bg);
  padding: 60px 0;
}
.referral-form-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ref-dark);
  text-align: left;
  margin: 0 0 30px;
}
.referral-form-wrap { max-width: 860px; margin: 0 auto; }
.referral-form-heading {
  font-size: 15px;
  font-weight: 500;
  color: var(--ref-dark);
  margin: 0 0 10px;
}
.referral-form-wrap .row { --bs-gutter-x: 16px; --bs-gutter-y: 0; }
.ref-field { margin-bottom: 16px; }
.ref-field input[type="text"],
.ref-field input[type="email"],
.ref-field input[type="tel"] {
  display: block;
  width: 100%;
  height: 46px;
  padding: 8px 14px;
  font-size: 15px;
  color: #333;
  background: #fff;
  border: 1px solid var(--ref-line);
  border-radius: 50px;
  box-shadow: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.ref-field input::placeholder { color: #6b7f89; }
.ref-field input:focus {
  outline: 0;
  border-color: var(--ref-dark);
  box-shadow: 0 0 0 3px rgba(1, 60, 86, .15);
}
.ref-divider { border-top: 1px solid var(--ref-line); margin: 10px 0 20px; }
.ref-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ref-dark);
  font-weight: 400;
  cursor: pointer;
}
.ref-check input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: var(--ref-dark);
}
.ref-recaptcha { margin: 15px 0 20px; }
.ref-submit {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
    border-radius: 50px;
  cursor: pointer;
  background: linear-gradient(to left, #013C56 0%, #0a5a7d 100%);
  transition: opacity .25s ease;
}
.ref-submit:hover { opacity: .9; }
.ref-submit:focus-visible { outline: 3px solid var(--ref-accent); outline-offset: 2px; }
.ref-submit[disabled] { opacity: .6; cursor: not-allowed; }
.ref-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* Success / error message box */
#referralMessage .form-msg-box {
  position: relative;
  margin: 0 0 20px;
  padding: 14px 46px 14px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
  border-left-width: 5px;
  border-radius: 4px;
}
#referralMessage .form-msg-box.success {
  background: #e8f6ee;
  border-color: #2e9e5b;
  color: #1b6b3a;
}
#referralMessage .form-msg-box.error {
  background: #fff;
  border-color: #d9423a;
  color: #a1261f;
}
#referralMessage .form-msg-box button {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: inherit;
  background: none;
  border: 0;
  opacity: .6;
  cursor: pointer;
}
#referralMessage .form-msg-box button:hover { opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .referral-steps-visual { flex-basis: 240px; width: 240px; height: 240px; }
  .referral-amount { font-size: 80px; text-shadow: 6px 6px 0 var(--ref-dark); }
}
@media (max-width: 767px) {
  .referral-form-section { padding: 40px 0; }
  .referral-form-title { margin-bottom: 20px; }
  .referral-paid { padding: 45px 0 55px; }
  .referral-paid h2 { margin-bottom: 24px; }
  .referral-steps-wrap { flex-direction: column; align-items: flex-start; gap: 30px; }
  .referral-steps-visual { align-self: center; flex-basis: 200px; width: 200px; height: 200px; }
  .referral-amount { font-size: 64px; text-shadow: 5px 5px 0 var(--ref-dark); }
  .referral-paid-text { margin-top: 40px; }

  .referral-paid .referral-intro { margin-bottom: 35px; padding: 18px 20px; gap: 12px; }
  .referral-paid .referral-intro i { font-size: 22px; }
  .referral-paid .referral-intro p { font-size: 18px; }
}
