/* ============================================
   Xummer eSIM – Affiliate Program Styles
   ============================================ */

/* ── Affiliate Hero ── */
.affiliate-hero {
  background: linear-gradient(rgba(17, 28, 53, 0.85), rgba(30, 58, 138, 0.85)), url('../../images/affiliate/hero-banner.png');
  background-size: cover;
  background-position: center;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  color: white;
}

.aff-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.aff-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ── Custom Orange Outline Button ── */
.btn-outline-orange-custom {
  background-color: #ffffff;
  color: #4a5568;
  border: 1.5px solid #e2e8f0;
  border-radius: 50rem;
  transition: all 0.2s ease;
  font-weight: 600;
}

.btn-outline-orange-custom:hover {
  background-color: #fff8f3;
  color: var(--orange);
  border-color: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 105, 8, 0.15);
}

/* ── Why Partner Section ── */
.benefit-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
  height: 100%;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  background: #fff8f3;
  color: var(--orange);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

/* ── Who We Look For Section ── */
.who-card {
  border-left: 4px solid var(--orange);
  padding: 20px 20px 20px 30px;
  background: #f8fafc;
  border-radius: 0 16px 16px 0;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════════
   3D COVERFLOW TESTIMONIAL CAROUSEL
   ══════════════════════════════════════════════ */

.affiliate-showcase {
  background: #ffffff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.showcase-heading-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  padding: 6px 20px;
  border: 1px solid rgba(255, 105, 8, 0.25);
  border-radius: 50rem;
  margin-bottom: 20px;
}

.showcase-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
}

.showcase-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 500px;
  margin: 0 auto;
}

/* ── 3D Stage ── */
.coverflow-stage {
  position: relative;
  width: 100%;
  height: 520px;
  perspective: 1200px;
  margin: 60px 0 40px;
}

.coverflow-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Individual card in the 3D space */
.cf-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  transform: translate(-50%, -50%);
  transition: all 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  pointer-events: none;
  filter: blur(2px) brightness(0.92);
  z-index: 1;
  cursor: pointer;
}

/* Card states driven by JS data-attributes */
.cf-card[data-pos="0"] {
  transform: translate(-50%, -50%) scale(1) rotateY(0deg);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  filter: none;
  cursor: default;
}

.cf-card[data-pos="-1"] {
  transform: translate(calc(-50% - 370px), -50%) scale(0.82) rotateY(12deg);
  opacity: 0.7;
  z-index: 5;
  pointer-events: auto;
  filter: blur(0.5px) brightness(0.95);
  cursor: pointer;
}

.cf-card[data-pos="1"] {
  transform: translate(calc(-50% + 370px), -50%) scale(0.82) rotateY(-12deg);
  opacity: 0.7;
  z-index: 5;
  pointer-events: auto;
  filter: blur(0.5px) brightness(0.95);
  cursor: pointer;
}

.cf-card[data-pos="-2"] {
  transform: translate(calc(-50% - 640px), -50%) scale(0.65) rotateY(20deg);
  opacity: 0.35;
  z-index: 2;
  pointer-events: auto;
  filter: blur(2px) brightness(0.88);
  cursor: pointer;
}

.cf-card[data-pos="2"] {
  transform: translate(calc(-50% + 640px), -50%) scale(0.65) rotateY(-20deg);
  opacity: 0.35;
  z-index: 2;
  pointer-events: auto;
  filter: blur(2px) brightness(0.88);
  cursor: pointer;
}

/* ── Card Inner Styling (Light Mode) ── */
.cf-card-inner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 40px 35px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 440px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.4s ease;
}

.cf-card[data-pos="0"] .cf-card-inner {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e0;
}

/* Flag — full rectangular with rounded corners, NOT cropped circle */
.cf-flag {
  position: absolute;
  top: 20px;
  left: 24px;
  width: 34px;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.cf-avatar-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--orange), #6366f1);
  margin: 0 auto 24px;
  box-shadow: 0 8px 30px rgba(255, 105, 8, 0.15);
}

.cf-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
}

.cf-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.cf-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.cf-quote-icon {
  font-size: 2.5rem;
  color: #e2e8f0;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  line-height: 1;
}

.cf-text {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.75;
  flex-grow: 1;
}

/* ── Navigation Arrows ── */
.cf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: all 0.25s ease;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cf-nav:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 105, 8, 0.25);
}

.cf-nav.disabled {
  opacity: 0.25;
  pointer-events: none;
  cursor: default;
}

.cf-nav-prev {
  left: 20px;
}

.cf-nav-next {
  right: 20px;
}

/* ── Dot Indicators ── */
.cf-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.cf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
}

.cf-dot.active {
  width: 32px;
  border-radius: 20px;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 105, 8, 0.3);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .coverflow-stage {
    height: 480px;
    perspective: 900px;
  }

  .cf-card {
    width: 320px;
  }

  .cf-card[data-pos="-1"] {
    transform: translate(calc(-50% - 280px), -50%) scale(0.78) rotateY(10deg);
  }

  .cf-card[data-pos="1"] {
    transform: translate(calc(-50% + 280px), -50%) scale(0.78) rotateY(-10deg);
  }

  .cf-card[data-pos="-2"],
  .cf-card[data-pos="2"] {
    opacity: 0;
    pointer-events: none;
  }

  .cf-nav-prev {
    left: 5px;
  }

  .cf-nav-next {
    right: 5px;
  }
}

@media (max-width: 575.98px) {
  .coverflow-stage {
    height: 460px;
    perspective: 800px;
  }

  .cf-card {
    width: 290px;
  }

  .cf-card-inner {
    padding: 30px 24px 28px;
    min-height: 400px;
  }

  .cf-card[data-pos="-1"] {
    transform: translate(calc(-50% - 190px), -50%) scale(0.75) rotateY(8deg);
    opacity: 0.5;
  }

  .cf-card[data-pos="1"] {
    transform: translate(calc(-50% + 190px), -50%) scale(0.75) rotateY(-8deg);
    opacity: 0.5;
  }

  .cf-nav {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .cf-nav-prev {
    left: 2px;
  }

  .cf-nav-next {
    right: 2px;
  }

  .showcase-title {
    font-size: 2rem;
  }

  .cf-avatar-ring {
    width: 120px;
    height: 120px;
  }
}


/* ── 2-Step Contract Flow Styles ── */
.contract-wrapper {
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  min-height: 600px;
}

.step-container {
  padding: 50px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  transform: translateX(50px);
}

.step-container.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  position: relative;
}

.step-container.exit {
  transform: translateX(-50px);
}

.contract-terms-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  height: 350px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Custom Scrollbar for terms */
.contract-terms-box::-webkit-scrollbar {
  width: 6px;
}

.contract-terms-box::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.contract-terms-box::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 8px;
}

.terms-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #fff8f3;
  border-radius: 12px;
  border: 1px solid #feebc8;
}

.custom-cb {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--orange);
}

/* App form styling */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
  color: var(--orange);
}

.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 0.25rem rgba(255, 105, 8, 0.1);
}

@media (max-width: 767.98px) {
  .step-container {
    padding: 30px 20px;
  }

  .aff-hero-title {
    font-size: 2.2rem;
  }
}
