/* ==========================================================================
   BookWellNow Affiliate Page (Figma Layout Rebuild)
   ========================================================================== */

.affiliate-page-wrapper {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background: #fff;
    line-height: 1.6;
}

.aff-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.aff-hero {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, #f8f6ff 0%, #fff 100%);
    overflow: hidden;
}

.aff-hero-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.aff-hero-content {
    flex: 1;
    max-width: 600px;
}

.aff-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #f3e8ff;
    color: #5700B4;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}
.aff-badge svg { width: 16px; height: 16px; }

.aff-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #0f172a;
    letter-spacing: -1px;
}
.aff-hero-content h1 span {
    color: #5700B4;
}

.aff-hero-content p {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 2rem;
}

.aff-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.aff-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.aff-pill svg { width: 18px; height: 18px; color: #5700B4; }

.aff-hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.aff-hero-ctas .btn {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.aff-hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin: 0 !important;
}
.aff-hero-note svg { width: 14px; height: 14px; }

/* Orbit Graphic */
.aff-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.orbit-container {
    position: relative;
    width: 450px;
    height: 450px;
}

.orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(87,0,180,0.2);
}
.ring-1 { width: 280px; height: 280px; }
.ring-2 { width: 440px; height: 440px; }

.orbit-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 120px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(87,0,180,0.1);
}
.orbit-center-inner {
    width: 80px; height: 80px;
    background: #f3e8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-item {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.orbit-item img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

/* Hardcoded positions for visual orbit */
.user-1 { width: 64px; height: 64px; top: 0; left: 50%; transform: translateX(-50%); }
.user-2 { width: 72px; height: 72px; top: 25%; right: -10px; }
.user-3 { width: 64px; height: 64px; bottom: 0; right: 25%; }
.user-4 { width: 72px; height: 72px; bottom: 15%; left: 0; }
.icon-1 { width: 40px; height: 40px; background: #5700B4; top: 15%; left: 15%; }
.icon-1 svg { width: 20px; }
.icon-2 { width: 36px; height: 36px; background: #5700B4; top: 25%; right: 25%; }
.icon-2 svg { width: 18px; }
.icon-3 { width: 44px; height: 44px; background: #5700B4; bottom: 25%; right: -5px; }
.icon-3 svg { width: 22px; }

/* ==========================================================================
   2. COMMISSION STRIP
   ========================================================================== */
.aff-strip {
    background: #5700B4;
    color: #fff;
    padding: 3rem 0;
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.strip-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
    color: #fff;
}

.strip-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #fff;
}

.strip-item p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   3. START EARNING IN 3 STEPS
   ========================================================================== */
.aff-steps {
    padding: 100px 0;
    background: #fff;
}

.steps-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 2rem;
}

.timeline-line {
    position: absolute;
    top: 52px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #e2e8f0 0, #e2e8f0 8px, transparent 8px, transparent 16px);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 250px;
    background: #fff; /* covers dashed line */
    padding: 0 10px;
}

.step-icon {
    width: 72px;
    height: 72px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    color: #5700B4;
}
.step-icon svg { width: 32px; height: 32px; }

.step-number {
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 32px;
    height: 32px;
    background: #5700B4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    border: 3px solid #fff;
}

.step-item h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.step-item p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}



/* ==========================================================================
   4. FEATURES SPLIT SECTION (BUILT FOR PEOPLE)
   ========================================================================== */
.aff-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
}
/* Vertical divider line */
.aff-features-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #e2e8f0;
    transform: translateX(-50%);
}

.aff-features-left {
    padding-right: 2rem;
}

.fs-list-new {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 2rem;
}
.fs-list-new li {
    display: flex;
    gap: 1rem;
}
.f-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3e8ff;
    color: #5700B4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.f-icon svg {
    width: 24px;
    height: 24px;
}
.f-text h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.f-text p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.aff-features-right {
    padding-left: 2rem;
}

.promo-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.promo-card {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border-color: #e2e8f0;
}
.pc-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3b0764;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.pc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f3e8ff;
    color: #5700B4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pc-icon svg {
    width: 24px;
    height: 24px;
}
.pc-text h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.pc-text p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}
.pc-arrow {
    color: #5700B4;
    opacity: 0.8;
}
.pc-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}
.promo-card:hover .pc-arrow svg {
    transform: translateX(4px);
    opacity: 1;
}

.promo-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #475569;
}
.promo-notice svg {
    width: 20px;
    height: 20px;
}
.promo-notice a {
    color: #5700B4;
    text-decoration: none;
    font-weight: 600;
}
.promo-notice a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   5. APPLICATION FORM
   ========================================================================== */
.aff-application {
    position: relative;
    z-index: 2;
    padding: 6rem 0;
}

/* LEFT SIDE */
.app-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.app-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}
.app-feature-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.app-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f3e8ff;
    color: #5700B4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.app-feature-icon svg {
    width: 24px;
    height: 24px;
}
.app-feature-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.app-feature-text p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.app-notice-box {
    background: #f3e8ff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.app-notice-icon {
    color: #5700B4;
    flex-shrink: 0;
    margin-top: 2px;
}
.app-notice-icon svg {
    width: 20px;
    height: 20px;
}
.app-notice-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #5700B4;
    margin-bottom: 0.25rem;
}
.app-notice-text p {
    font-size: 0.85rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* RIGHT SIDE (FORM CARD) */
.app-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    padding: 3rem;
}

.app-form-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}
.app-form-header-icon {
    width: 40px;
    height: 40px;
    background: #f3e8ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5700B4;
}
.app-form-header-icon svg {
    width: 20px;
    height: 20px;
}
.app-form-header-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.app-form-header-text p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.form-group-with-icon {
    margin-bottom: 1.5rem;
}
.form-group-with-icon label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon-wrapper svg {
    position: absolute;
    left: 1rem;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}
.input-icon-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.01);
}
.input-icon-wrapper input:focus, .input-icon-wrapper textarea:focus {
    outline: none;
    border-color: #5700B4;
    box-shadow: 0 0 0 3px rgba(87,0,180,0.1);
}
.textarea-icon-wrapper {
    align-items: flex-start;
}
.textarea-icon-wrapper svg {
    top: 14px;
}
.textarea-icon-wrapper textarea {
    width: 100%;
    padding: 12px 1rem 12px 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: #0f172a;
    resize: vertical;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.01);
}

.form-note-new {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.form-note-new svg {
    width: 16px;
    height: 16px;
}

.app-form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}
.app-form-footer span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}
.btn-login-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #5700B4;
    background: transparent;
    border: 1px solid #e9d5ff;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-login-outline:hover {
    background: #f3e8ff;
}

.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 2rem;
}
.form-checkbox input { margin-top: 4px; }
.form-checkbox label { font-size: 0.9rem; color: #64748b; font-weight: 500; }

/* ==========================================================================
   6. HOW REFERRAL BECOMES COMMISSION
   ========================================================================== */
.aff-flow {
    padding: 100px 0;
    background: #fff;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4rem;
}

.flow-step {
    text-align: center;
    width: 160px;
}
.flow-icon {
    width: 72px; height: 72px;
    background: #f3e8ff;
    color: #5700B4;
    border: 1px solid #e9d5ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.flow-icon svg { width: 32px; height: 32px; }
.flow-step h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #0f172a;
}
.flow-step p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.flow-arrow {
    color: #5700B4;
}
.flow-arrow svg { width: 24px; height: 24px; }

.flow-highlights {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}
.flow-hl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}
.flow-hl svg { width: 18px; height: 18px; color: #5700B4; }

/* ==========================================================================
   7. RESOURCES ROW
   ========================================================================== */
.aff-resources {
    padding: 80px 0;
    background: #f8fafc;
}

.resource-row {
    display: flex;
    gap: 1rem;
    margin: 3rem 0;
}

.res-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    position: relative;
    transition: box-shadow 0.2s;
}
.res-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.res-icon {
    width: 40px; height: 40px;
    color: #5700B4;
    margin-bottom: 1rem;
}
.res-icon svg { width: 100%; height: 100%; }

.res-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #0f172a;
}
.res-text p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}
.res-arrow {
    position: absolute;
    top: 50%; right: -12px;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    background: #f8fafc;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    z-index: 2;
}

/* ==========================================================================
   8. FAQ SPLIT
   ========================================================================== */
.aff-faq {
    padding: 100px 0;
    background: #fff;
}

.faq-split-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
}

.faq-left h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.faq-left p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 3rem;
}

.faq-illustration {
    position: relative;
    width: 200px;
    height: 200px;
}
.q-bubble {
    position: absolute;
    background: #f3e8ff;
    color: #5700B4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.qb-1 { width: 120px; height: 120px; font-size: 3rem; bottom: 0; left: 0; }
.qb-2 { width: 60px; height: 60px; font-size: 1.5rem; top: 20px; right: 20px; background: #e0e7ff; }
.qb-3 { width: 40px; height: 40px; font-size: 1rem; bottom: 40px; right: 0; background: #fce7f3; }

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}
.faq-question svg {
    width: 20px; height: 20px;
    color: #cbd5e1;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: #5700B4;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer p {
    padding-bottom: 1.5rem;
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

.view-all-faq {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5700B4;
    text-decoration: none;
}

/* ==========================================================================
   9. FINAL CTA
   ========================================================================== */
.aff-final-cta {
    background: #3b0764; /* Deep dark purple matching screenshot */
    padding: 60px 0;
    color: #fff;
}

.cta-layout {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 4rem;
}

.cta-text h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}
.cta-text p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 1rem;
}

.cta-stats {
    display: flex;
    gap: 2rem;
}
.cta-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cta-stat svg {
    width: 32px; height: 32px;
    color: rgba(255,255,255,0.5);
}
.cta-stat span {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.8);
}
.cta-stat strong {
    font-size: 1.125rem;
    color: #fff;
}

.cta-buttons {
    width: 250px;
}

.aff-final-cta .btn-outline:hover {
    color: #5700B4 !important;
    background: #fff !important;
}

/* ==========================================================================
   RESPONSIVE (Minimal fixes for small screens)
   ========================================================================== */
@media (max-width: 992px) {
    .aff-hero-split, .feature-split-layout, .app-split-container, .faq-split-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .strip-grid, .cta-layout {
        grid-template-columns: 1fr 1fr;
    }
    .steps-timeline {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .timeline-line { display: none; }
    .flow-diagram {
        flex-direction: column;
        gap: 1rem;
    }
    .flow-arrow svg { transform: rotate(90deg); }
    .resource-row {
        flex-direction: column;
    }
    .res-arrow { display: none; }
    .app-left { padding: 3rem; }
    .app-right { padding: 0 3rem 3rem 3rem; }
}
@media (max-width: 768px) {
    .strip-grid, .cta-layout { grid-template-columns: 1fr; }
    .fs-checklist { grid-template-columns: 1fr; }
    .cta-stats { flex-direction: column; }
}
