/* =====================================================
   PFCL Weight Loss — Frontend Styles
   Caramel/leather brown brand palette from PFCL theme.
   Deep crimson accents.
===================================================== */

:root {
    --pfcl-dark:    #1c0f05;
    --pfcl-brown:   #5c3d1e;
    --pfcl-tan:     #c8a06e;
    --pfcl-cream:   #faf4ec;
    --pfcl-crimson: #8b2020;
    --pfcl-green:   #2a7a2a;
    --pfcl-border:  #e0d0bc;
    --pfcl-radius:  8px;
    --pfcl-shadow:  0 2px 12px rgba(28,15,5,0.10);
}

/* ----- BUTTONS ----- */
.pfcl-btn-primary {
    display: inline-block;
    background: var(--pfcl-crimson);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: var(--pfcl-radius);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}
.pfcl-btn-primary:hover { background: #6e1a1a; transform: translateY(-1px); }

.pfcl-btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--pfcl-crimson) !important;
    padding: 12px 24px;
    border-radius: var(--pfcl-radius);
    border: 2px solid var(--pfcl-crimson);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.pfcl-btn-secondary:hover { background: #fdf0f0; }

.pfcl-btn-danger {
    display: inline-block;
    background: #c0392b;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: var(--pfcl-radius);
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.pfcl-btn-ad {
    display: inline-block;
    background: var(--pfcl-tan);
    color: var(--pfcl-dark) !important;
    padding: 10px 20px;
    border-radius: var(--pfcl-radius);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* ----- QUIZ ----- */
.pfcl-wl-quiz-wrap {
    max-width: 640px;
    margin: 0 auto;
    font-family: inherit;
}

.pfcl-quiz-progress-wrap {
    background: var(--pfcl-border);
    border-radius: 99px;
    height: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}
.pfcl-quiz-progress-bar {
    height: 100%;
    background: var(--pfcl-crimson);
    border-radius: 99px;
    transition: width 0.4s ease;
}
.pfcl-quiz-step-counter {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

.pfcl-quiz-step { display: none; }
.pfcl-quiz-step.active { display: block; }

.pfcl-quiz-question {
    font-size: 22px;
    font-weight: 700;
    color: var(--pfcl-dark);
    margin-bottom: 8px;
}
.pfcl-quiz-note {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.pfcl-quiz-choices { display: flex; flex-direction: column; gap: 10px; }

.pfcl-quiz-choice {
    background: #fff;
    border: 2px solid var(--pfcl-border);
    border-radius: var(--pfcl-radius);
    padding: 14px 18px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: var(--pfcl-dark);
}
.pfcl-quiz-choice:hover { border-color: var(--pfcl-tan); background: var(--pfcl-cream); }
.pfcl-quiz-choice.selected { border-color: var(--pfcl-crimson); background: #fdf5f5; font-weight: 600; }

.pfcl-bmi-inputs { display: flex; flex-direction: column; gap: 12px; }
.pfcl-bmi-row    { display: flex; gap: 12px; }

.pfcl-input {
    border: 2px solid var(--pfcl-border);
    border-radius: var(--pfcl-radius);
    padding: 12px 14px;
    font-size: 16px;
    color: var(--pfcl-dark);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.pfcl-input:focus { border-color: var(--pfcl-tan); }
.pfcl-input-full { width: 100%; box-sizing: border-box; }

.pfcl-bmi-result {
    background: var(--pfcl-cream);
    border: 1px solid var(--pfcl-border);
    border-radius: var(--pfcl-radius);
    padding: 10px 14px;
    font-size: 15px;
}

.pfcl-quiz-consent { font-size: 13px; color: #666; margin-top: 12px; }

.pfcl-quiz-loading { text-align: center; padding: 40px; }
.pfcl-spinner {
    width: 40px; height: 40px;
    border: 4px solid var(--pfcl-border);
    border-top-color: var(--pfcl-crimson);
    border-radius: 50%;
    animation: pfcl-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes pfcl-spin { to { transform: rotate(360deg); } }

.pfcl-quiz-result { padding: 30px; background: var(--pfcl-cream); border-radius: var(--pfcl-radius); }
.pfcl-quiz-result h2 { color: var(--pfcl-dark); }

/* ----- PLANS ----- */
.pfcl-wl-plans-wrap { max-width: 960px; margin: 0 auto; }
.pfcl-plans-header  { text-align: center; margin-bottom: 32px; }
.pfcl-plans-note    { background: #fff8e1; border-left: 4px solid var(--pfcl-tan); padding: 10px 14px; font-size: 14px; }

.pfcl-plans-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.pfcl-plan-card {
    background: #fff;
    border: 2px solid var(--pfcl-border);
    border-radius: 12px;
    padding: 28px 24px;
    width: 280px;
    box-shadow: var(--pfcl-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pfcl-plan-card.pfcl-plan-popular { border-color: var(--pfcl-crimson); }

.pfcl-plan-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--pfcl-crimson);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 99px;
    white-space: nowrap;
}

.pfcl-plan-header h3 { font-size: 18px; color: var(--pfcl-dark); margin: 0 0 4px; }
.pfcl-plan-sublabel  { font-size: 14px; color: #666; margin: 0; }

.pfcl-price-amount { font-size: 42px; font-weight: 800; color: var(--pfcl-dark); }
.pfcl-price-label  { font-size: 14px; color: #888; margin-left: 4px; }
.pfcl-plan-refill  { font-size: 14px; color: #555; }
.pfcl-price-note   { font-size: 12px; color: #888; display: block; }

.pfcl-plan-includes { list-style: none; padding: 0; margin: 0; font-size: 14px; color: #444; }
.pfcl-plan-includes li::before { content: "&#10003; "; color: var(--pfcl-green); font-weight: 700; }
.pfcl-plan-includes li { padding: 3px 0; }

.pfcl-plan-guarantee { font-size: 13px; color: #444; background: var(--pfcl-cream); border-radius: 6px; padding: 8px 10px; }
.pfcl-plan-disclaimer { font-size: 11px; color: #888; margin-top: 6px; }

.pfcl-plan-select { width: 100%; text-align: center; }

/* Checkout modal */
.pfcl-modal-wrap {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pfcl-modal-inner {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    position: relative;
}
.pfcl-modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none;
    font-size: 24px; cursor: pointer; color: #888;
}
.pfcl-checkout-note, .pfcl-checkout-disclaimer { font-size: 13px; color: #666; margin-top: 10px; }

/* ----- PATIENT PORTAL ----- */
.pfcl-portal-wrap { max-width: 720px; margin: 0 auto; }

.pfcl-portal-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--pfcl-border);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.pfcl-tab-btn {
    background: none; border: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.pfcl-tab-btn.active { color: var(--pfcl-crimson); border-bottom-color: var(--pfcl-crimson); }
.pfcl-tab-btn:hover  { color: var(--pfcl-dark); }

.pfcl-tab-panel { display: none; }
.pfcl-tab-panel.active { display: block; }

.pfcl-portal-status-card {
    background: var(--pfcl-cream);
    border: 1px solid var(--pfcl-border);
    border-radius: var(--pfcl-radius);
    padding: 20px 24px;
    margin-bottom: 20px;
}
.pfcl-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
}
.pfcl-status-active    { background: #d4edda; color: #155724; }
.pfcl-status-cancelled { background: #f8d7da; color: #721c24; }

.pfcl-portal-notice {
    border-radius: var(--pfcl-radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}
.pfcl-notice-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.pfcl-notice-action  { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

.pfcl-mbg-notice   { color: var(--pfcl-green); font-weight: 600; }
.pfcl-mbg-progress { color: #666; font-size: 14px; }

.pfcl-form-group { margin-bottom: 18px; }
.pfcl-form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--pfcl-dark); }

.pfcl-rating-row { display: flex; gap: 8px; margin-top: 4px; }
.pfcl-rating-btn {
    width: 44px; height: 44px;
    border: 2px solid var(--pfcl-border);
    border-radius: 50%;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: var(--pfcl-dark);
}
.pfcl-rating-btn.selected { border-color: var(--pfcl-crimson); background: #fdf5f5; color: var(--pfcl-crimson); }

.pfcl-progress-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.pfcl-progress-stat {
    background: var(--pfcl-cream);
    border: 1px solid var(--pfcl-border);
    border-radius: var(--pfcl-radius);
    padding: 14px 20px;
    text-align: center;
}
.pfcl-progress-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--pfcl-crimson); }
.pfcl-progress-stat span   { font-size: 13px; color: #666; }

.pfcl-success { color: var(--pfcl-green); font-weight: 600; }
.pfcl-error   { color: var(--pfcl-crimson); font-weight: 600; }

/* ----- WELLNESS DIRECTORY ----- */
.pfcl-wl-wellness-wrap { margin: 32px 0; }
.pfcl-wellness-title   { font-size: 22px; color: var(--pfcl-dark); margin-bottom: 4px; }
.pfcl-wellness-location { font-size: 14px; color: #666; margin-bottom: 16px; }

.pfcl-wellness-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.pfcl-wellness-card {
    background: #fff;
    border: 1px solid var(--pfcl-border);
    border-radius: var(--pfcl-radius);
    padding: 18px 20px;
    width: calc(50% - 8px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--pfcl-shadow);
    transition: box-shadow 0.2s;
}
.pfcl-wellness-card:hover { box-shadow: 0 4px 20px rgba(28,15,5,0.15); }
@media (max-width: 600px) { .pfcl-wellness-card { width: 100%; } }

.pfcl-wellness-icon   { font-size: 28px; }
.pfcl-wellness-type   { font-size: 12px; font-weight: 700; color: var(--pfcl-tan); text-transform: uppercase; letter-spacing: 0.5px; }
.pfcl-wellness-name   { font-size: 16px; font-weight: 700; color: var(--pfcl-dark); margin: 2px 0; }
.pfcl-wellness-location-line { font-size: 13px; color: #666; margin: 0; }
.pfcl-wellness-offer  { font-size: 13px; color: var(--pfcl-green); font-weight: 600; margin: 0; }
.pfcl-wellness-cta    { align-self: flex-start; }
.pfcl-wellness-footer { margin-top: 12px; font-size: 14px; }
.pfcl-wellness-empty  { color: #888; font-style: italic; }

/* ----- ADS ----- */
.pfcl-wl-ad-slots {
    display: flex;
    gap: 16px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.pfcl-wl-ad-card {
    background: var(--pfcl-cream);
    border: 1px solid var(--pfcl-border);
    border-radius: var(--pfcl-radius);
    overflow: hidden;
    flex: 1;
    min-width: 220px;
    max-width: 320px;
}
.pfcl-ad-image   { width: 100%; height: 120px; object-fit: cover; }
.pfcl-ad-body    { padding: 14px 16px; }
.pfcl-ad-label   { font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 4px; }
.pfcl-ad-headline { font-size: 15px; font-weight: 600; color: var(--pfcl-dark); margin: 0 0 10px; }

/* ----- CONTENT PAGE BLOCKS ----- */
.pfcl-wl-content-page { max-width: 800px; margin: 0 auto; }
.pfcl-content-intro, .pfcl-content-medication,
.pfcl-content-how-it-works, .pfcl-content-faq { margin-bottom: 40px; }

.pfcl-how-it-works { padding-left: 0; list-style: none; counter-reset: steps; }
.pfcl-how-it-works li { padding: 12px 0 12px 48px; border-bottom: 1px solid var(--pfcl-border); position: relative; }
.pfcl-how-it-works li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute; left: 0; top: 12px;
    width: 30px; height: 30px;
    background: var(--pfcl-crimson); color: #fff;
    border-radius: 50%; font-weight: 700; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}

.pfcl-quiz-cta-box {
    background: var(--pfcl-cream);
    border: 2px solid var(--pfcl-border);
    border-radius: 12px;
    padding: 28px 32px;
    text-align: center;
    margin: 32px 0;
}
.pfcl-quiz-cta-box h3 { font-size: 22px; color: var(--pfcl-dark); margin-bottom: 10px; }
.pfcl-cta-disclaimer  { font-size: 12px; color: #888; margin-top: 12px; }

.pfcl-faq-item    { border-bottom: 1px solid var(--pfcl-border); padding: 16px 0; }
.pfcl-faq-item h3 { font-size: 17px; color: var(--pfcl-dark); margin-bottom: 6px; }
.pfcl-faq-item p  { font-size: 15px; color: #444; }

.pfcl-content-disclaimer { font-size: 13px; color: #888; border-top: 1px solid var(--pfcl-border); padding-top: 16px; margin-top: 40px; }

/* ----- TRUST BADGES ----- */
.pfcl-mbg-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--pfcl-cream);
    border: 1px solid var(--pfcl-border);
    border-radius: var(--pfcl-radius);
    padding: 14px 18px;
    margin: 20px 0;
}
.pfcl-mbg-icon   { font-size: 28px; color: var(--pfcl-green); }
.pfcl-mbg-text   { font-size: 14px; }
.pfcl-mbg-text strong { display: block; font-size: 16px; color: var(--pfcl-dark); }
.pfcl-mbg-text span   { color: #555; }

/* ----- HOW IT WORKS GRID ----- */
.pfcl-how-it-works-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.pfcl-hiw-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 20px 16px;
    background: var(--pfcl-cream);
    border-radius: var(--pfcl-radius);
    border: 1px solid var(--pfcl-border);
}
.pfcl-hiw-num {
    width: 40px; height: 40px;
    background: var(--pfcl-crimson); color: #fff;
    border-radius: 50%;
    font-weight: 800; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
.pfcl-hiw-step h4 { font-size: 15px; color: var(--pfcl-dark); margin-bottom: 6px; }
.pfcl-hiw-step p  { font-size: 13px; color: #555; margin: 0; }

/* ----- STATS BAR ----- */
.pfcl-stats-bar {
    display: flex;
    gap: 0;
    background: var(--pfcl-dark);
    border-radius: var(--pfcl-radius);
    overflow: hidden;
    margin: 24px 0;
    flex-wrap: wrap;
}
.pfcl-stat-item {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 18px 12px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.pfcl-stat-item:last-child { border-right: none; }
.pfcl-stat-value { display: block; font-size: 26px; font-weight: 800; color: var(--pfcl-tan); }
.pfcl-stat-label { display: block; font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* ----- AFFILIATE / GEO LINKS ----- */
.pfcl-affiliate-link, .pfcl-btn-geo {
    display: inline-block;
    color: var(--pfcl-crimson) !important;
    font-weight: 600;
    text-decoration: underline;
    font-size: 15px;
    cursor: pointer;
}

/* ----- DISCLAIMER ----- */
.pfcl-wl-disclaimer { font-size: 13px; color: #888; font-style: italic; }

/* ----- RESPONSIVE ----- */
@media (max-width: 640px) {
    .pfcl-plans-grid { flex-direction: column; align-items: center; }
    .pfcl-plan-card  { width: 100%; max-width: 360px; }
    .pfcl-stats-bar  { flex-direction: column; }
    .pfcl-stat-item  { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .pfcl-how-it-works-grid { flex-direction: column; }
}
