/* ==========================================================================
   JIVAK WELLNESS CARE - ONLINE PATIENT QUESTIONNAIRE STYLES
   Color Palette:
   - Primary: Natural Healthcare Green (#25845A)
   - Secondary: Soft Mint Green (#EAF5EF)
   - Dark Text: #24332C
   - Clean Background: #FFFFFF / #F9FAF9
   ========================================================================== */

.jpq-wrapper {
    max-width: 1000px;
    margin: 30px auto 60px;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #24332C;
    box-sizing: border-box;
}

.jpq-wrapper * {
    box-sizing: border-box;
}

/* TOP HEADER */
.jpq-header {
    text-align: center;
    margin-bottom: 30px;
}

.jpq-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.jpq-brand-pill {
    display: inline-block;
    background: #EAF5EF;
    color: #25845A;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(37, 132, 90, 0.3);
}

.jpq-lang-switcher {
    display: inline-flex;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    overflow: hidden;
    padding: 2px;
}

.jpq-lang-btn {
    border: none;
    background: transparent;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.jpq-lang-btn.active {
    background: #25845A;
    color: #ffffff;
}

.jpq-main-title {
    font-family: 'Cinzel', serif, Georgia, 'Times New Roman';
    font-size: 32px;
    color: #24332C;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.jpq-subtitle {
    font-size: 15px;
    color: #4b5563;
    max-width: 720px;
    margin: 0 auto 26px;
    line-height: 1.6;
}

/* PROGRESS BAR & STEP INDICATORS */
.jpq-progress-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 4px 14px rgba(36, 51, 44, 0.04);
}

.jpq-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 10px;
}

.jpq-step-counter {
    color: #25845A;
}

.jpq-percent-label {
    color: #64748b;
}

.jpq-progress-track {
    width: 100%;
    height: 8px;
    background: #EAF5EF;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.jpq-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #25845A, #34a873);
    border-radius: 10px;
    transition: width 0.35s ease;
}

.jpq-step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.jpq-step-dot {
    flex: 1;
    min-width: 44px;
    height: 38px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.jpq-step-dot.active {
    background: #EAF5EF;
    border-color: #25845A;
    color: #25845A;
    box-shadow: 0 0 0 1.5px #25845A;
}

.jpq-step-dot.completed {
    background: #25845A;
    border-color: #25845A;
    color: #ffffff;
}

/* FORM CARD */
.jpq-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 38px 40px;
    box-shadow: 0 12px 35px rgba(36, 51, 44, 0.05);
}

.jpq-step-pane {
    display: none;
}

.jpq-step-pane.active {
    display: block;
    animation: jpqFadeIn 0.3s ease-in-out;
}

@keyframes jpqFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.jpq-sec-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1.5px solid #EAF5EF;
}

.jpq-sec-icon {
    width: 48px;
    height: 48px;
    background: #EAF5EF;
    color: #25845A;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.jpq-sec-heading h2 {
    font-size: 20px;
    color: #24332C;
    margin: 0 0 4px;
    font-weight: 700;
}

.jpq-sec-heading p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.jpq-sub-heading {
    font-size: 15px;
    font-weight: 700;
    color: #24332C;
    margin: 18px 0 12px;
}

/* FORM GRIDS & FIELDS */
.jpq-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.jpq-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.jpq-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jpq-field label {
    font-size: 13px;
    font-weight: 700;
    color: #24332C;
}

.jpq-field .jpq-note {
    font-weight: normal;
    color: #64748b;
    font-size: 11.5px;
}

.jpq-field input,
.jpq-field select,
.jpq-field textarea {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #24332C !important;
    background-color: #fbfdfc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 9px !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.jpq-field select {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2325845A' d='M1.41 0L6 4.58L10.59 0L12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 8px !important;
    padding-right: 36px !important;
    cursor: pointer !important;
}

.jpq-field textarea {
    height: auto !important;
    min-height: 75px !important;
    resize: vertical !important;
}

.jpq-field input:focus,
.jpq-field select:focus,
.jpq-field textarea:focus {
    border-color: #25845A !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 132, 90, 0.12) !important;
}

/* OTP INPUT COMBO */
.jpq-input-action-wrap {
    display: flex;
    gap: 8px;
}

.jpq-input-action-wrap input {
    flex: 1;
}

.jpq-btn-verify-otp {
    background: #EAF5EF;
    border: 1px solid #25845A;
    color: #25845A;
    border-radius: 9px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.jpq-btn-verify-otp:hover {
    background: #25845A;
    color: #ffffff;
}

/* METRIC LIVE BANNER (STEP 2) */
.jpq-metric-live-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: #EAF5EF;
    border: 1px solid rgba(37, 132, 90, 0.3);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: center;
}

.jpq-metric-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
}

.jpq-metric-val {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #25845A;
    margin: 4px 0 2px;
}

/* CHIPS & CHECKBOX GRIDS */
.jpq-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.jpq-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jpq-chip-toggle {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    gap: 8px;
}

.jpq-chip-toggle input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    accent-color: #25845A;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
}

.jpq-chip-toggle:hover {
    border-color: #25845A;
    background: #ffffff;
}

.jpq-chip-toggle.selected {
    background: #EAF5EF;
    border-color: #25845A;
    color: #25845A;
    font-weight: 700;
}

/* RADIO GRID (GOALS) */
.jpq-radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.jpq-goal-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: #24332C;
    transition: all 0.2s ease;
}

.jpq-goal-card input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    accent-color: #25845A;
    margin: 0 !important;
    padding: 0 !important;
}

.jpq-goal-card:hover {
    border-color: #25845A;
    background: #ffffff;
}

.jpq-goal-card.active {
    background: #EAF5EF;
    border-color: #25845A;
    color: #25845A;
    box-shadow: 0 0 0 1px #25845A;
}

/* STEP 6: UPLOADS GRID */
.jpq-upload-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 13px;
    color: #334155;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 10px;
}

.jpq-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.jpq-upload-card {
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.jpq-upload-card:hover {
    border-color: #25845A;
    background: #fbfdfc;
}

.jpq-upload-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.slot-icon {
    font-size: 18px;
}

.slot-name {
    font-size: 13.5px;
    color: #24332C;
}

.jpq-dropzone {
    text-align: center;
    padding: 14px 10px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.jpq-dropzone:hover {
    background: #EAF5EF;
}

.drop-msg {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #25845A;
}

.drop-sub {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.jpq-upload-status {
    margin-top: 10px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
}

.jpq-upload-status.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.jpq-upload-status.error {
    background: #fee2e2;
    color: #991b1b;
}

/* STEP 7: DYNAMIC CONDITION BRANCHES */
.jpq-cond-branch {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #25845A;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
}

.jpq-branch-title {
    font-size: 16px;
    font-weight: 700;
    color: #25845A;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* CONSENT BOX */
.jpq-consent-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jpq-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    line-height: 1.5;
}

.jpq-consent-item input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    min-height: 17px !important;
    accent-color: #25845A;
    margin-top: 2px !important;
    flex-shrink: 0;
}

/* NAVIGATION BAR */
.jpq-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1.5px solid #EAF5EF;
    flex-wrap: wrap;
    gap: 14px;
}

.jpq-btn-prev {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jpq-btn-prev:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.jpq-btn-save-draft {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jpq-btn-save-draft:hover {
    background: #EAF5EF;
    border-color: #25845A;
    color: #25845A;
}

.jpq-btn-next {
    background: #25845A;
    border: 1.5px solid #25845A;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 132, 90, 0.25);
}

.jpq-btn-next:hover {
    background: #1e6d49;
    border-color: #1e6d49;
    transform: translateY(-1px);
}

.jpq-btn-submit {
    background: linear-gradient(135deg, #25845A, #1b6343);
    border: 1.5px solid #d4af37;
    color: #ffffff;
    padding: 13px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(37, 132, 90, 0.35);
}

.jpq-btn-submit:hover {
    background: #165337;
    transform: translateY(-2px);
}

/* SUCCESS MODAL / SCREEN */
.jpq-success-wrap {
    margin-top: 30px;
}

.jpq-success-card {
    background: #ffffff;
    border: 2px solid #25845A;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(37, 132, 90, 0.12);
}

.jpq-success-icon {
    width: 72px;
    height: 72px;
    background: #EAF5EF;
    color: #25845A;
    border-radius: 50%;
    font-size: 38px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border: 3px solid #25845A;
}

.jpq-success-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: #24332C;
    margin: 0 0 8px;
}

.jpq-success-id {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 16px;
}

.jpq-success-id strong {
    color: #25845A;
    font-size: 17px;
}

.jpq-success-desc {
    font-size: 15px;
    color: #334155;
    max-width: 680px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.jpq-success-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin: 0 auto 28px;
    max-width: 760px;
}

.jpq-success-metrics-grid span {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}

.jpq-success-metrics-grid strong {
    display: block;
    font-size: 20px;
    color: #25845A;
    margin-top: 4px;
}

.jpq-success-next-steps {
    text-align: left;
    background: #EAF5EF;
    border: 1px solid rgba(37, 132, 90, 0.3);
    border-radius: 12px;
    padding: 20px 26px;
    max-width: 760px;
    margin: 0 auto 28px;
}

.jpq-success-next-steps h4 {
    margin: 0 0 10px;
    color: #24332C;
    font-size: 15px;
}

.jpq-success-next-steps ol {
    margin: 0;
    padding-left: 20px;
    font-size: 13.5px;
    color: #24332C;
    line-height: 1.7;
}

.jpq-success-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.jpq-btn-whatsapp-large {
    background: #25D366;
    color: #ffffff !important;
    padding: 13px 26px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.jpq-btn-whatsapp-large:hover {
    background: #1ebc59;
    transform: translateY(-2px);
}

.jpq-btn-reset-form {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 820px) {
    .jpq-form-card {
        padding: 24px 20px;
    }
    .jpq-grid-2,
    .jpq-grid-3,
    .jpq-checkbox-grid,
    .jpq-radio-grid,
    .jpq-upload-grid,
    .jpq-metric-live-banner,
    .jpq-success-metrics-grid {
        grid-template-columns: 1fr;
    }
    .jpq-field {
        grid-column: span 1 !important;
    }
    .jpq-main-title {
        font-size: 24px;
    }
    .jpq-nav-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .jpq-nav-bar > div {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .jpq-btn-prev, .jpq-btn-next, .jpq-btn-submit, .jpq-btn-save-draft {
        width: 100%;
        text-align: center;
    }
}


/* ========================================================
   AI PROCESSING OVERLAY & ANIMATION
   ======================================================== */
.jpq-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.jpq-processing-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: jpqPopIn 0.3s ease-out;
}

@keyframes jpqPopIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.jpq-ai-pulse-icon {
    font-size: 46px;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: #EAF5EF;
    border: 3px solid #25845A;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: jpqPulse 1.8s infinite;
}

@keyframes jpqPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 132, 90, 0.5); }
    70% { box-shadow: 0 0 0 18px rgba(37, 132, 90, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 132, 90, 0); }
}

.jpq-processing-card h3 {
    font-size: 22px;
    color: #24332C;
    margin: 0 0 8px;
    font-weight: 700;
}

.jpq-processing-card p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 22px;
    line-height: 1.5;
}

.jpq-ai-steps-list {
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jpq-ai-step {
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jpq-ai-step span {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    background: #EAF5EF;
    color: #25845A;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
}

.jpq-ai-loader-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.jpq-ai-loader-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #25845A, #10b981, #25845A);
    background-size: 200% 100%;
    animation: jpqShimmer 1.5s infinite linear;
}

@keyframes jpqShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================================
   AI GENERATED RESULT CONTAINER
   ======================================================== */
.jpq-result-wrap {
    margin-top: 20px;
}

.jpq-result-card {
    background: #ffffff;
    border: 2px solid #25845A;
    border-radius: 20px;
    padding: 36px 30px;
    box-shadow: 0 16px 40px rgba(37, 132, 90, 0.12);
}

.jpq-result-header {
    text-align: center;
    margin-bottom: 28px;
    border-bottom: 1px solid #edf2f0;
    padding-bottom: 20px;
}

.jpq-result-badge {
    display: inline-block;
    background: #EAF5EF;
    color: #25845A;
    border: 1px solid #25845A;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.jpq-result-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: #24332C;
    margin: 0 0 8px;
}

.jpq-result-subtitle {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
}

.jpq-result-subtitle strong {
    color: #25845A;
}

/* MACRO SUMMARY CARDS */
.jpq-macro-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.jpq-macro-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.jpq-macro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.jpq-macro-card.main-cal {
    background: #EAF5EF;
    border-color: #25845A;
}

.jpq-macro-card .m-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.jpq-macro-card.main-cal .m-label {
    color: #25845A;
}

.jpq-macro-card .m-val {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #24332C;
    line-height: 1.1;
}

.jpq-macro-card.main-cal .m-val {
    color: #25845A;
}

.jpq-macro-card .m-unit {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    margin-top: 4px;
}

/* METABOLIC BENCHMARK BAR */
.jpq-metabolic-bench-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: #334155;
    gap: 12px;
    margin-bottom: 26px;
}

.jpq-metabolic-bench-bar strong {
    color: #25845A;
}

/* STEP 7 EXPORT TOOLBAR */
.jpq-export-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 30px;
    gap: 16px;
    flex-wrap: wrap;
}

.jpq-export-label strong {
    display: block;
    font-size: 15px;
    color: #24332C;
    margin-bottom: 2px;
}

.jpq-export-label span {
    font-size: 12.5px;
    color: #64748b;
}

.jpq-export-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.jpq-btn-download-pdf {
    background: #25845A;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 12px rgba(37, 132, 90, 0.2);
}

.jpq-btn-download-pdf:hover {
    background: #1e6d49;
    transform: translateY(-1px);
}

.jpq-btn-print {
    background: #ffffff;
    color: #334155;
    border: 1.5px solid #cbd5e1;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.jpq-btn-print:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.jpq-btn-email {
    background: #f0fdf4;
    color: #166534;
    border: 1.5px solid #86efac;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.jpq-btn-email:hover {
    background: #dcfce7;
}

.jpq-btn-whatsapp {
    background: #25D366;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.jpq-btn-whatsapp:hover {
    background: #1ebc59;
}

/* 7-DAY NAVIGATION TABS */
.jpq-seven-days-sec {
    margin-bottom: 30px;
}

.jpq-days-tabs-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.jpq-day-tab-btn {
    flex: 1;
    min-width: 120px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.jpq-day-tab-btn strong {
    display: block;
    font-size: 13.5px;
    color: #334155;
}

.jpq-day-tab-btn small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.jpq-day-tab-btn:hover {
    background: #EAF5EF;
    border-color: #25845A;
}

.jpq-day-tab-btn.active {
    background: #25845A;
    border-color: #25845A;
    box-shadow: 0 4px 12px rgba(37, 132, 90, 0.25);
}

.jpq-day-tab-btn.active strong {
    color: #ffffff;
}

.jpq-day-tab-btn.active small {
    color: rgba(255, 255, 255, 0.85);
}

/* DAY ACTIVE CONTENT */
.jpq-day-header-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #EAF5EF;
    border-left: 4px solid #25845A;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.jpq-day-badge {
    background: #25845A;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.jpq-day-focus-title {
    margin: 0;
    font-size: 14px;
    color: #24332C;
    font-weight: 600;
}

/* 5 MEALS GRID */
.jpq-meals-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.jpq-meal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.jpq-meal-card:hover {
    border-color: #25845A;
    box-shadow: 0 4px 14px rgba(37, 132, 90, 0.08);
}

.jpq-meal-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.jpq-meal-type-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #25845A;
}

.jpq-meal-type-badge .m-icon {
    font-size: 18px;
}

.jpq-meal-time {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
}

.jpq-meal-title {
    font-size: 15.5px;
    color: #1e293b;
    margin: 0 0 6px;
    font-weight: 700;
}

.jpq-meal-desc {
    font-size: 13.5px;
    color: #475569;
    margin: 0 0 12px;
    line-height: 1.55;
}

.jpq-meal-macros-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.m-cal-badge {
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
}

.m-macro-tag {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.m-macro-tag.p {
    background: #fee2e2;
    color: #991b1b;
}

.m-macro-tag.c {
    background: #fef9c3;
    color: #854d0e;
}

.m-macro-tag.f {
    background: #dbeafe;
    color: #1e40af;
}

/* TOTALS SUMMARY BAR */
.jpq-day-totals-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #475569;
    flex-wrap: wrap;
}

.jpq-day-totals-summary .tot-label {
    font-weight: 700;
    color: #24332C;
}

.jpq-day-totals-summary .tot-item strong {
    color: #25845A;
}

/* CLINICAL FOOTER NOTE */
.jpq-clinical-footer-note {
    background: #fbfdfc;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

/* EMAIL MODAL BACKDROP */
.jpq-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.jpq-modal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* ========================================================
   PRINT STYLESHEET
   ======================================================== */
@media print {
    body * {
        visibility: hidden !important;
    }
    #jpqPrintablePlan, #jpqPrintablePlan * {
        visibility: visible !important;
    }
    #jpqPrintablePlan {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        display: block !important;
        background: #ffffff !important;
        padding: 0 !important;
    }
}
