/* ==========================================================================
   Joint Fix Ayurvedic Funnel - Production Frontend CSS
   ========================================================================== */

:root {
    --jff-forest: #134e2f;
    --jff-emerald: #228b49;
    --jff-light-green: #e9f5ec;
    --jff-cream: #faf7f2;
    --jff-cream-dark: #f0ebe1;
    --jff-gold: #e58209;
    --jff-dark: #19241d;
    --jff-muted: #526357;
    --jff-white: #ffffff;
    --jff-radius-sm: 8px;
    --jff-radius-md: 14px;
    --jff-radius-lg: 20px;
    --jff-radius-full: 9999px;
    --jff-shadow-soft: 0 4px 20px rgba(19, 78, 47, 0.08);
    --jff-shadow-card: 0 8px 30px rgba(0, 0, 0, 0.06);
    --jff-font-hindi: 'Hind', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --jff-font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Wrapper */
.jff-funnel-page {
    width: min(100%, 520px);
    max-width: 520px;
    margin: 0 auto;
    background-color: var(--jff-cream);
    color: var(--jff-dark);
    font-family: var(--jff-font-hindi);
    font-size: 16px;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.06);
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

.jff-funnel-page *,
.jff-funnel-page *::before,
.jff-funnel-page *::after {
    box-sizing: border-box;
}

/* Header */
.jff-header {
    background: #ffffff;
    border-bottom: 1px solid #e7efe9;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.jff-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.jff-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jff-logo-leaf {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jff-brand-text {
    display: flex;
    flex-direction: column;
}

.jff-brand-title {
    font-family: var(--jff-font-ui);
    font-size: 19px;
    font-weight: 800;
    color: var(--jff-forest);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.jff-brand-sub {
    font-family: var(--jff-font-ui);
    font-size: 8.5px;
    font-weight: 700;
    color: var(--jff-emerald);
    letter-spacing: 1px;
}

.jff-step-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.jff-step-text {
    font-size: 11px;
    color: var(--jff-muted);
    font-weight: 600;
}

.jff-step-dots {
    display: flex;
    gap: 4px;
}

.jff-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4ded7;
}

.jff-dot.active {
    background: var(--jff-emerald);
    width: 14px;
    border-radius: 10px;
}

/* Feature Badges in Header */
.jff-header-features {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.jff-feat-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--jff-light-green);
    color: var(--jff-forest);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--jff-radius-full);
    white-space: nowrap;
}

/* Main Container */
.jff-main {
    padding: 16px;
}

/* Hero Typography */
.jff-hero-text, .jff-hero-copy {
    text-align: center;
    margin-bottom: 18px;
}

.jff-main-headline {
    font-size: 24px;
    font-weight: 700;
    color: var(--jff-forest);
    line-height: 1.25;
    margin: 0 0 8px 0;
}

.jff-sub-headline {
    font-size: 14px;
    color: var(--jff-muted);
    margin: 0;
    line-height: 1.45;
}

/* Video Section (Page 1) */
.jff-video-section {
    margin-bottom: 24px;
}

.jff-video-wrapper {
    position: relative;
    border-radius: var(--jff-radius-md);
    overflow: hidden;
    box-shadow: var(--jff-shadow-card);
    background: #000000;
}

.jff-video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
}

.jff-video-mockup {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #2b1f1d 0%, #3e2825 50%, #1c1413 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jff-video-bg-graphic {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 65%, rgba(255, 94, 0, 0.45) 0%, transparent 45%);
}

.jff-knee-glow {
    position: absolute;
    bottom: 25%;
    left: 36%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 180, 0, 0.9) 0%, rgba(255, 70, 0, 0.6) 50%, transparent 80%);
    filter: blur(4px);
    animation: jff-pulse 2s infinite ease-in-out;
}

@keyframes jff-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
}

.jff-video-play-btn {
    position: relative;
    z-index: 10;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 3px solid rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

.jff-video-play-btn:hover {
    transform: scale(1.08);
}

.jff-video-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 11px;
}

.jff-ctrl-timeline {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    position: relative;
}

.jff-ctrl-progress {
    height: 100%;
    background: #ff5500;
    border-radius: 2px;
}

/* किसके लिए उपयोगी? 4 Circle Icons */
.jff-useful-section {
    background: #ffffff;
    border-radius: var(--jff-radius-md);
    padding: 18px 14px;
    margin-bottom: 20px;
    box-shadow: var(--jff-shadow-soft);
}

.jff-section-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--jff-forest);
    margin: 0 0 16px 0;
}

.jff-useful-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.jff-useful-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.jff-circle-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jff-emerald), var(--jff-forest));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(19, 78, 47, 0.25);
}

.jff-useful-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--jff-dark);
    line-height: 1.25;
}

/* Media Logos */
.jff-media-section {
    text-align: center;
    margin-bottom: 24px;
}

.jff-media-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--jff-muted);
    margin-bottom: 12px;
}

.jff-media-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    align-items: center;
}

.jff-media-card {
    background: #ffffff;
    border: 1px solid #e5ece6;
    border-radius: var(--jff-radius-sm);
    padding: 8px 4px;
    font-family: var(--jff-font-ui);
    font-size: 12px;
    font-weight: 800;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.jff-zee-badge {
    background: #e50914;
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
}

.jff-aajtak-badge {
    background: #d8232a;
    color: #fff;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
}

.jff-ndtv-badge {
    color: #000;
    border-bottom: 2px solid #e50914;
}

/* Senior Wellness Banner (Page 1 bottom) */
.jff-lifestyle-banner {
    background: linear-gradient(135deg, #0e3b23 0%, #185c37 100%);
    border-radius: var(--jff-radius-lg);
    padding: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--jff-shadow-card);
}

.jff-lifestyle-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.jff-lifestyle-content p {
    font-size: 12.5px;
    color: #d1e7d8;
    margin: 0;
    line-height: 1.4;
}

.jff-lifestyle-couple {
    flex-shrink: 0;
}

.jff-avatar-icon {
    font-size: 38px;
    background: rgba(255,255,255,0.15);
    padding: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Page 2 & 3 Product Jar Styling */
.jff-product-jar-card {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0;
}

.jff-product-img {
    max-width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.jff-jar-graphic {
    width: 170px;
    position: relative;
    text-align: center;
}

.jff-jar-graphic.large {
    width: 200px;
}

.jff-jar-lid {
    width: 120px;
    height: 24px;
    background: linear-gradient(180deg, #1b633b, #0f4125);
    margin: 0 auto;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.jff-jar-body {
    width: 150px;
    height: 170px;
    background: linear-gradient(180deg, #175230 0%, #0d3820 100%);
    margin: 0 auto;
    border-radius: 8px 8px 18px 18px;
    padding: 14px 10px;
    box-shadow: 0 10px 25px rgba(19, 78, 47, 0.35);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jff-jar-logo {
    font-family: var(--jff-font-ui);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.jff-jar-sub {
    font-size: 7.5px;
    letter-spacing: 1px;
    color: #8ae3aa;
    margin-bottom: 12px;
}

.jff-jar-badge {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    font-size: 11px;
    padding: 3px 6px;
    margin-bottom: 10px;
    font-weight: 600;
}

.jff-jar-weight {
    font-size: 11px;
    font-weight: 700;
    color: #f7d26b;
}

/* 4 Educational Cards (Page 2) */
.jff-edu-section {
    margin-bottom: 20px;
}

.jff-edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.jff-edu-card {
    background: #ffffff;
    border-radius: var(--jff-radius-md);
    padding: 12px;
    box-shadow: var(--jff-shadow-soft);
    border: 1px solid #edf4ee;
}

.jff-edu-thumb {
    width: 100%;
    height: 70px;
    border-radius: var(--jff-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.jff-edu-thumb-knee {
    background: linear-gradient(135deg, #382420, #1f1412);
    position: relative;
}

.jff-glow-point {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff6600 0%, transparent 70%);
}

.jff-edu-thumb-mobility {
    background: linear-gradient(135deg, #bee1ff, #73b1f4);
}

.jff-edu-thumb-herbs {
    background: linear-gradient(135deg, #cdecd5, #88c89b);
}

.jff-edu-thumb-daily {
    background: linear-gradient(135deg, #faebd7, #f3cf9f);
}

.jff-thumb-emoji {
    font-size: 32px;
}

.jff-edu-card h3 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--jff-forest);
    margin: 0 0 4px 0;
    line-height: 1.25;
}

.jff-edu-card p {
    font-size: 11.5px;
    color: var(--jff-muted);
    margin: 0;
    line-height: 1.35;
}

/* Price & Offer Box (Page 2) */
.jff-offer-box {
    background: #ffffff;
    border: 2px dashed #f2b749;
    border-radius: var(--jff-radius-md);
    padding: 16px;
    margin-bottom: 22px;
    text-align: center;
    box-shadow: var(--jff-shadow-card);
    position: relative;
}

.jff-offer-tag {
    background: #fff4d9;
    color: #9c5c00;
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--jff-radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.jff-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.jff-price-values {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.jff-mrp-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.jff-live-price {
    font-size: 34px;
    font-weight: 800;
    color: var(--jff-forest);
    font-family: var(--jff-font-ui);
    line-height: 1;
}

.jff-discount-badge {
    background: linear-gradient(135deg, #e52d27, #b31217);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: var(--jff-radius-sm);
    box-shadow: 0 4px 12px rgba(229, 45, 39, 0.3);
}

.jff-offer-meta-row {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #f1f1f1;
    padding-top: 10px;
    font-size: 12px;
    color: var(--jff-muted);
}

.jff-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Page 3 Offer Header */
.jff-offer-hero {
    background: #ffffff;
    border-radius: var(--jff-radius-md);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--jff-shadow-card);
}

.jff-top-offer-pill {
    text-align: center;
    margin-bottom: 14px;
}

.jff-top-offer-pill span {
    background: #fdf3d4;
    color: #b26800;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

.jff-offer-flex {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jff-offer-jar-wrap {
    flex-shrink: 0;
}

.jff-offer-info-wrap {
    flex: 1;
}

.jff-brand-huge {
    font-size: 28px;
    font-weight: 800;
    color: var(--jff-forest);
    margin: 0 0 4px 0;
    font-family: var(--jff-font-ui);
}

.jff-offer-lead {
    font-size: 12.5px;
    color: var(--jff-muted);
    margin: 0 0 12px 0;
    line-height: 1.35;
}

.jff-price-card-p3 {
    display: flex;
    align-items: center;
    gap: 14px;
}

.jff-discount-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #116834;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--jff-font-ui);
    box-shadow: 0 4px 14px rgba(17, 104, 52, 0.35);
}

.jff-disc-percent {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.jff-disc-word {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Lead Form Styling (Reusable across pages) */
.jff-form-container {
    background: #ffffff;
    border-radius: var(--jff-radius-lg);
    padding: 22px 18px;
    box-shadow: var(--jff-shadow-card);
    border: 1px solid #eaf2eb;
    margin-bottom: 24px;
}

.jff-form-header {
    text-align: center;
    margin-bottom: 16px;
}

.jff-form-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--jff-forest);
    margin: 0 0 4px 0;
}

.jff-form-subtitle {
    font-size: 13px;
    color: var(--jff-muted);
    margin: 0;
}

.jff-lead-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jff-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.jff-input-icon {
    position: absolute;
    left: 14px;
    color: #8da494;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.jff-input {
    width: 100%;
    height: 48px;
    padding: 10px 14px 10px 44px;
    border: 1.5px solid #d8e5db;
    border-radius: var(--jff-radius-sm);
    font-size: 15px;
    font-family: var(--jff-font-hindi);
    color: var(--jff-dark);
    background: #fdfdfd;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.jff-input:focus {
    border-color: var(--jff-emerald);
    box-shadow: 0 0 0 3px rgba(34, 139, 73, 0.15);
}

.jff-field-error {
    color: #d32f2f;
    font-size: 12px;
    margin-top: -6px;
    padding-left: 6px;
}

.jff-submit-btn {
    height: 52px;
    background: linear-gradient(180deg, #186b3a 0%, #0e4423 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--jff-radius-sm);
    font-size: 17px;
    font-weight: 700;
    font-family: var(--jff-font-hindi);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(14, 68, 35, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, background 0.2s;
}

.jff-submit-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #1f7d45 0%, #11502a 100%);
}

.jff-submit-btn:active {
    transform: translateY(1px);
}

.jff-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.jff-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: jff-spin 0.8s linear infinite;
}

@keyframes jff-spin {
    to { transform: rotate(360deg); }
}

.jff-form-alert {
    padding: 12px;
    border-radius: var(--jff-radius-sm);
    font-size: 13.5px;
    line-height: 1.4;
    text-align: center;
}

.jff-form-alert.success {
    background: #e7f7ec;
    border: 1px solid #b7e3c1;
    color: #12632b;
}

.jff-form-alert.error {
    background: #fdeeee;
    border: 1px solid #f9c6c6;
    color: #b71c1c;
}

.jff-privacy-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--jff-muted);
    text-align: center;
    line-height: 1.3;
}

/* Bottom Feature Pillars (Page 2) */
.jff-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    text-align: center;
}

.jff-pillar-item {
    background: #ffffff;
    border-radius: var(--jff-radius-sm);
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 1px solid #e7efe8;
}

.jff-pillar-icon {
    font-size: 18px;
}

.jff-pillar-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--jff-dark);
}

/* Activities Section (Page 3) */
.jff-activities-section {
    margin-bottom: 24px;
}

.jff-activities-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--jff-forest);
    margin: 0 0 14px 0;
    line-height: 1.3;
}

.jff-activities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.jff-act-card {
    background: #ffffff;
    border-radius: var(--jff-radius-sm);
    padding: 6px;
    border: 1px solid #e8f0e9;
}

.jff-act-thumb {
    width: 100%;
    height: 60px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.jff-act-walking { background: linear-gradient(135deg, #d2ebff, #99cfff); }
.jff-act-stairs { background: linear-gradient(135deg, #ffe0d2, #ffab82); }
.jff-act-work { background: linear-gradient(135deg, #d2ffd6, #91e899); }
.jff-act-active { background: linear-gradient(135deg, #f9d2ff, #dc87e8); }

.jff-act-badge { font-size: 26px; }

.jff-act-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--jff-dark);
}

/* Media Queries for Desktop View */
@media (min-width: 600px) {
    .jff-funnel-page {
        margin: 20px auto;
        border-radius: var(--jff-radius-lg);
    }
}


/* Funnel pages: keep the WordPress theme chrome hidden only on these pages. */
body.jff-funnel-active { margin: 0 !important; padding: 0 !important; }
body.jff-funnel-active .jff-funnel-page { margin: 0 auto; }
body.jff-funnel-active .wp-site-blocks { padding-top: 0 !important; }
@media (min-width: 600px) {
  body.jff-funnel-active .jff-funnel-page { margin: 0 auto; border-radius: 0 0 var(--jff-radius-lg) var(--jff-radius-lg); }
}
