/* Provider /refer page — scoped interactive styles (flip cards + tab stepper).
   Loaded ONLY on refer.html. .btn/.badge/.divider renamed to .rbtn/.rbadge/.rdivider
   to avoid colliding with the site's global style.css. */

.refer-wrap { max-width: 820px; margin: 0 auto; padding: 8px 4px 24px; }

/* Typography */
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8A8073; margin-bottom: 6px; }
.section-heading { font-size: 26px; font-weight: 800; color: #2E2722; margin-bottom: 6px; line-height: 1.2; }
.section-sub { font-size: 14px; color: #8A8073; margin-bottom: 24px; line-height: 1.6; }
.rdivider { border: none; border-top: 1px solid #E4DACA; margin: 40px 0; }

/* Flip cards */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
@media (max-width: 580px) { .why-grid { grid-template-columns: 1fr; } }
.flip-card { height: 180px; perspective: 900px; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.45s cubic-bezier(.4,0,.2,1); border-radius: 14px; }
.flip-card:hover .flip-inner, .flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 18px; text-align: center; }
.flip-front { background: #FFFDF9; border: 1.5px solid #E4DACA; gap: 10px; }
.flip-back { background: #C56A3C; transform: rotateY(180deg); border: 1.5px solid #C56A3C; }
.flip-icon { font-size: 30px; line-height: 1; }
.flip-label { font-size: 14px; font-weight: 700; color: #2E2722; line-height: 1.3; }
.flip-hint { font-size: 10px; color: #aaa; display: block; margin-top: 2px; }
.flip-back p { font-size: 13px; color: #fff; line-height: 1.6; }

/* Stepper */
.step-track { display: flex; align-items: center; gap: 0; margin-bottom: 16px; position: relative; }
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; cursor: pointer; }
.step-item:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: 50%; width: 100%; height: 2px; background: #E4DACA; z-index: 0; transition: background 0.3s; }
.step-item.done:not(:last-child)::after { background: #2E7D5B; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ccc; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #999; z-index: 1; transition: all 0.25s; position: relative; }
.step-dot.active { background: #C56A3C; border-color: #C56A3C; color: #fff; box-shadow: 0 0 0 4px rgba(197,106,60,0.18); }
.step-dot.done { background: #2E7D5B; border-color: #2E7D5B; color: #fff; }
.step-name { font-size: 10px; font-weight: 600; color: #aaa; margin-top: 5px; text-align: center; white-space: nowrap; }
.step-item.active .step-name { color: #C56A3C; }
.step-item.done .step-name { color: #2E7D5B; }

/* Tab buttons */
.tab-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tab-btn { flex: 1; min-width: 130px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid #E4DACA; background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: #8A8073; display: flex; align-items: center; gap: 7px; transition: all 0.18s; outline: none; }
.tab-btn:hover { border-color: #C56A3C; color: #C56A3C; background: #F3E9D8; }
.tab-btn.active { background: #F3E9D8; border-color: #C56A3C; color: #C56A3C; }

/* Panels */
.tab-panel { display: none; background: #FFFDF9; border: 1.5px solid #E4DACA; border-radius: 14px; padding: 24px 26px; animation: panelIn 0.22s ease; }
.tab-panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.panel-row { display: flex; align-items: flex-start; gap: 18px; }
@media (max-width: 480px) { .panel-row { flex-direction: column; align-items: center; text-align: center; } }
.panel-icon { font-size: 40px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.panel-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; color: #2E2722; }
.panel-body p { font-size: 14px; color: #6B6258; line-height: 1.65; margin-bottom: 14px; }

/* Badges */
.rbadge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; margin-bottom: 8px; }
.rbadge-green { background: #E6F6EE; color: #2E7D5B; }
.rbadge-blue { background: #F3E9D8; color: #C56A3C; }

/* Buttons */
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rbtn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 9px; font-size: 13px; font-weight: 700; text-decoration: none; transition: opacity 0.15s, transform 0.12s; border: none; cursor: pointer; }
.rbtn:hover { opacity: 0.88; transform: translateY(-1px); }
.rbtn-primary { background: #C56A3C; color: #fff; }
.rbtn-outline { background: #fff; color: #2E2722; border: 1.5px solid #ccc; }

/* Trust strip */
.trust-strip { display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 18px 24px; background: #F3E9D8; border-radius: 14px; margin-top: 36px; border: 1px solid #E4DACA; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #6B6258; white-space: nowrap; }

.phi-note { font-size: 12px; color: #8A8073; margin-top: 14px; line-height: 1.5; }

/* "What this means for your practice" benefit cards */
.bene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .bene-grid { grid-template-columns: 1fr; } }
.bene-card { background: #FFFDF9; border: 1.5px solid #E4DACA; border-radius: 14px; padding: 22px 20px; }
.bene-card .bene-icon { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.bene-card h3 { font-size: 16px; font-weight: 800; color: #2E2722; margin-bottom: 7px; }
.bene-card p { font-size: 13.5px; color: #6B6258; line-height: 1.6; }
.bene-card em { color: #C56A3C; font-style: normal; font-weight: 700; }
