/* Cashback.co.uk clone – matches live site colours and layout */
:root {
  --primary: #290651;
  --secondary: #e6007e;
  --success: #56b38e;
  --hero-bg: #46007b;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --white: #fff;
  --bg-light: #f8f9fa;
  --bg-medium: #e9ecef;
  --border: #dee2e6;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--white);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-secondary {
  color: var(--text-muted);
}

.text-muted-link {
  color: var(--text-muted);
}

/* ========== Page content (legal, how-it-works, etc.) ========== */
.page-main {
  min-height: 50vh;
}

.page-content {
  padding: 2.5rem 0 3rem;
}

.page-content .container {
  max-width: 800px;
}

.page-content h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 1rem;
}

.page-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.75rem 0 0.5rem;
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.25rem 0 0.35rem;
}

.page-content p {
  margin: 0 0 0.75rem;
  color: var(--text-dark);
}

.page-content ul {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
}

.page-content li {
  margin-bottom: 0.35rem;
}

.page-content .btn {
  margin-top: 0.5rem;
}

/* ========== Header ========== */
.main-header {
  background: var(--white);
  padding: 1rem 0;
  border-bottom: 1px solid #dee2e6;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-logo .logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.header-logo a:hover {
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23290651' stroke-width='2'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--primary);
  font-weight: 500;
}

.btn-signup {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--secondary);
  color: var(--white);
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-signup:hover {
  opacity: 0.9;
  text-decoration: none;
  color: var(--white);
}

/* ========== Trustpilot strip (bg primary) ========== */
.trustpilot-strip {
  background: var(--primary);
  padding: 0.5rem 1rem;
}

.trustpilot-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.trustpilot-strip .trustpilot-logo,
.trustpilot-strip .trustpilot-stars {
  height: 30px;
  width: auto;
}

/* ========== Hero (purple bg) ========== */
.hero {
  background: var(--hero-bg);
  color: var(--white);
  padding: 2rem 1.5rem 3rem;
  position: relative;
}

.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 380px;
  }
}

.hero-words {
  flex: 1;
  text-align: left;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  color: var(--white);
}

.hero h2 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.btn-hero {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  border: none;
  font-size: 1.1rem;
}

.btn-hero:hover {
  background: #f8f9fa;
  text-decoration: none;
  color: var(--primary);
}

.hero-people {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  flex: 1;
}

.hero-img {
  max-height: 280px;
  width: auto;
}

.hero-laptop {
  max-height: 320px;
}

.welcome-bonus {
  position: absolute;
  left: 1rem;
  bottom: 2rem;
  background: var(--success);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
}

.welcome-bonus:hover {
  color: var(--white);
  text-decoration: none;
  opacity: 0.95;
}

.welcome-bonus-amount {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
}

.mfc-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.mfc-logo {
  max-height: 80px;
  width: auto;
}

/* ========== We paid (green strip) ========== */
.we-paid {
  background: var(--success);
  color: var(--white);
  padding: 1rem 1.5rem;
}

.we-paid-inner {
  max-width: var(--container);
  margin: 0 auto;
  font-size: 1.1rem;
  text-align: center;
  font-weight: 500;
}

.large-money-total {
  font-weight: 700;
  font-size: 1.2em;
}

/* ========== How it works ========== */
.section-how {
  background: var(--bg-medium);
  padding: 3rem 1.5rem 3rem;
}

.section-how-title {
  text-align: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.75rem;
  margin: 0 0 2rem;
  padding: 0 1rem;
}

.steps-list {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  max-width: var(--container);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--white);
  padding: 1.5rem 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

.step-card h3 {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.step-card p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.section-how-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-cta {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--secondary);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  border: none;
  font-size: 1.1rem;
}

.btn-cta:hover {
  opacity: 0.9;
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-size: 1.1rem;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}

/* ========== Reviews section ========== */
.section-reviews {
  padding: 3rem 1.5rem;
  background: var(--white);
}

.reviews-two-col {
  max-width: var(--container);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .reviews-two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.review-block {
  text-align: center;
}

.review-block h2 {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.review-block h3 {
  color: var(--success);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.review-block p {
  color: var(--text-dark);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.section-reviews-title {
  text-align: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.75rem;
  margin: 0 0 1rem;
  padding: 0 1rem;
}

.trustpilot-widget {
  text-align: center;
}

.trustpilot-widget img {
  margin: 0 auto;
  display: inline-block;
  height: 30px;
  width: auto;
}

/* ========== Register (magenta bg) ========== */
.section-register {
  background: var(--secondary);
  color: var(--white);
  padding: 2.5rem 1.5rem 3rem;
}

.section-register-title {
  text-align: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  padding: 0 1rem;
}

.register-card-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.register-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.register-card-body {
  padding: 2rem 1.5rem;
}

.register-logo-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.register-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.signup-form .form-row {
  margin-bottom: 1rem;
}

.form-row-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-with-label {
  position: relative;
}

.signup-form input[type="text"],
.signup-form input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.signup-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.signup-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.gender-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gender-option {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  display: block;
}

.gender-option:hover,
.gender-option:focus-within {
  border-color: var(--primary);
}

.gender-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-option-inner {
  font-weight: 500;
  color: var(--text-dark);
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  text-align: center;
}

.form-disclaimer a {
  color: var(--primary);
}

.btn-submit {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-submit:hover {
  opacity: 0.9;
}

.register-login {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

.register-login a {
  color: var(--primary);
}

/* ========== Footer ========== */
.main-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 1.5rem;
}

.footer-row {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-row {
    grid-template-columns: 1fr 2fr 1fr 1fr;
    align-items: start;
  }
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.footer-navigation {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-navigation a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-navigation a:hover {
  color: var(--white);
}

.footer-follow-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.footer-copy-col {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copy-col p {
  margin: 0 0 0.25rem;
}

/* ========== Thank you modal ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.modal-open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.modal-text {
  margin: 0 0 1.25rem;
  color: var(--text-dark);
}

.modal-close {
  margin: 0;
}

/* ========== Cookie consent (bottom banner) ========== */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.cookie-consent.cookie-consent-visible {
  display: flex;
}

.cookie-consent-backdrop {
  display: none;
}

.cookie-consent-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.25rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
}

.cookie-consent-text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.45;
}

.cookie-consent-text a {
  color: var(--primary);
  font-weight: 500;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cookie-consent-actions .btn {
  margin: 0;
}

@media (min-width: 480px) {
  .cookie-consent-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .cookie-consent-text {
    margin: 0;
    flex: 1;
    min-width: 200px;
  }

  .cookie-consent-actions {
    margin: 0;
    flex-shrink: 0;
  }
}

/* ========== Tasks preview (Take a look) ========== */
.tasks-preview-main {
  padding: 2rem 0 3rem;
  min-height: 50vh;
}

.tasks-preview-level-label {
  text-align: center;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 1rem;
}

.level-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.level-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-medium);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.level-dot:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}

.level-dot-active {
  background: var(--primary);
  color: var(--white);
}

.tasks-preview-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin: 0 0 0.5rem;
}

.tasks-preview-intro {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.task-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .task-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .task-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.task-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.task-card-img {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 0.75rem;
  border-radius: 8px;
}

.task-card-partner {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.task-card-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.task-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.task-card-cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--secondary);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  font-size: 0.95rem;
}

.task-card-cta:hover {
  opacity: 0.9;
  text-decoration: none;
  color: var(--white);
}

.task-card-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.tasks-preview-join {
  text-align: center;
  margin: 0;
}

.tasks-preview-join .btn {
  margin-top: 0.5rem;
}

/* ========== Mobile ========== */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .header-nav {
    width: 100%;
  }

  .main-navigation {
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0.75rem;
  }

  .main-navigation.is-open {
    display: flex;
  }

  .header-nav .btn-signup {
    width: 100%;
    text-align: center;
  }

  .mfc-badge {
    position: static;
    margin-top: 1rem;
  }

  .mfc-logo {
    max-height: 50px;
  }

  .welcome-bonus {
    position: static;
    margin-top: 1rem;
  }

  .form-row-inline {
    grid-template-columns: 1fr;
  }
}
