:root {
    --primary-gradient: linear-gradient(90deg, #008fda 0%, #3fd0ff 50%, #009ee8 100%);
    --primary-solid: #1773b0;
    --primary-soft: #eaf5fc;
    --text-dark: #2c3345;
    --text-light: #6d7588;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Source Sans Pro", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, #dff6ff 0%, transparent 30%),
        radial-gradient(circle at bottom right, #e9f7ff 0%, transparent 30%),
        #f4f7fb;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    padding: 22px 12px 0;
}

#app-container {
    width: 100%;
    max-width: 560px;
}

#app-container.wide-layout {
    max-width: 1600px;
}

.view {
    background: #fff;
    border-radius: 16px;
    padding: 18px 24px 24px;
    box-shadow: 0 8px 24px rgba(23, 115, 176, 0.12);
    height: calc(100vh - 44px);
    min-height: calc(100vh - 44px);
    display: flex;
    flex-direction: column;
}

.step-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 6px;
    background: #e7eef6;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
    z-index: 1000;
}

.step-progress>span {
    display: block;
    height: 100%;
    background: var(--primary-gradient);
}

.header-minimal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.back-btn {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #8ca1b7;
    cursor: pointer;
    padding: 0 8px 0 0;
}

.brand-mark {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-solid);
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
}

.brand-logo-link:hover .brand-logo,
.brand-logo-link:focus-visible .brand-logo {
    opacity: 0.88;
}

.brand-logo-link:focus-visible {
    outline: 2px solid var(--primary-solid);
    outline-offset: 4px;
    border-radius: 6px;
}

.brand-logo {
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.intake-shell .header-minimal {
    position: relative;
    justify-content: center;
    margin-bottom: 40px;
    padding: 16px 48px 12px;
    min-height: 80px;
}

.intake-shell .header-minimal .back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 8px;
}

.intake-shell .brand-logo-link {
    margin: 0 auto;
}

.intake-shell .brand-logo {
    height: 58px;
    max-width: 280px;
    display: block;
}

#app-container.wide-layout .intake-shell .brand-logo {
    height: 72px;
    max-width: 340px;
}

#app-container.wide-layout .intake-shell .header-minimal {
    margin-bottom: 48px;
    padding-top: 20px;
    min-height: 96px;
}

.hero-text {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--primary-solid);
}

.intro-view {
    height: calc(100vh - 44px);
    min-height: calc(100vh - 44px);
}

.view main {
    max-width: none;
    margin: 0;
    text-align: left;
    flex: 1;
    overflow-y: auto;
}

.intro-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: block;
    margin: 4px 0 10px;
    object-fit: cover;
}

.intro-proof {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 4px;
}

.intro-stars {
    color: #f4b400;
    font-size: 1.05rem;
    letter-spacing: 2px;
}

.intro-view header {
    margin-bottom: 24px;
}

.hero-text-dark {
    margin: 0 0 18px;
    font-size: 1.6rem;
    line-height: 1.2;
}

.sub-text,
.body-text-light {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 20px;
}

.support-text {
    color: var(--text-light);
    margin-top: 6px;
}

.step-indicator {
    text-align: center;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 6px;
}

.full {
    grid-column: 1 / -1;
}

.input-wrap label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #4d5a73;
}

.intake-step-form .input-wrap > label:not(.option-card):not(.gender-option) {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4d5a73;
    line-height: 1.4;
}

.required-mark {
    color: #e53935;
    font-weight: 700;
}

.step-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-title .title-icon {
    color: #1773b0;
    font-size: 1.2rem;
}

.text-input-field,
.custom-select,
.textarea-field {
    width: 100%;
    border: 1px solid #d9e4ef;
    border-radius: 10px;
    padding: 14px;
    font-size: 1rem;
    color: #2c3345;
    background: #fff;
}

.textarea-field {
    min-height: 110px;
    resize: vertical;
}

.options-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.input-wrap > .options-list {
    margin-bottom: 0;
}

.option-card {
    border: 1px solid #d9e4ef;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-card input[type="checkbox"],
.option-card input[type="radio"] {
    accent-color: var(--primary-solid);
}

.table-wrap {
    overflow-x: auto;
    margin: 10px 0 18px;
}

.input-wrap > .table-wrap {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #e4edf6;
    padding: 8px;
    text-align: left;
}

th {
    background: #f7fbff;
}

.footer-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 20px 16px 12px;
    width: 100%;
}

.btn-primary,
.btn-secondary {
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
}

.btn-primary.btn-continue,
#btn-step-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    height: 54px;
    min-height: 54px;
    padding: 0 36px;
    margin: 0 auto;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(23, 115, 176, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary.btn-continue .btn-chevron,
#btn-step-primary .btn-chevron,
.btn-primary.btn-continue span:not(.btn-label),
#btn-step-primary span:not(.btn-label) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    opacity: 0.95;
}

.btn-primary.btn-continue:hover,
#btn-step-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(23, 115, 176, 0.3);
}

.btn-primary.btn-continue:active,
#btn-step-primary:active {
    transform: translateY(0);
}

.cta-center {
    display: flex;
    justify-content: center;
}

.btn-secondary {
    background: #edf3f9;
    color: #3f4e66;
}

.footer-meta {
    margin-top: 16px;
    color: #95a3b8;
    font-size: 0.82rem;
    text-align: center;
    width: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 24px;
    margin: 20px 0 30px;
}

.product-card {
    border: 1px solid rgba(31, 56, 86, 0.08);
    border-radius: 28px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 24px 54px rgba(31, 56, 86, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
}

.product-card h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    line-height: 1.25;
    color: #102938;
}

.product-subtitle {
    margin: 0;
    font-size: 0.92rem;
    color: #5c6c7f;
    line-height: 1.5;
}

.product-price-wrap {
    margin: 20px 0 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef4fb;
}

.product-price {
    margin: 0;
    font-weight: 800;
    font-size: 2rem;
    color: #0f2f3a;
}

.price-label {
    display: inline-block;
    margin-top: 6px;
    color: #6f7f92;
    font-size: 0.92rem;
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    margin-bottom: 18px;
    object-fit: cover;
}

.product-content {
    margin: 0 0 14px;
    font-size: 0.96rem;
    color: #495969;
    line-height: 1.65;
}

.feature-list {
    margin: 12px 0 20px;
    padding-left: 22px;
    color: #495969;
    font-size: 0.95rem;
    line-height: 1.7;
}

.feature-list li {
    margin-bottom: 10px;
}

.product-sku {
    margin: 0 0 18px;
    font-size: 0.82rem;
    color: #7c8a9d;
}

.product-start {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.98rem;
    border-radius: 14px;
    background: #ffffff;
    color: #0f2f3a;
    border: 1px solid #d9e4ef;
    cursor: pointer;
    font-weight: 700;
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.product-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(16, 56, 86, 0.08);
    background: #f7fbff;
}

.product-card-footer {
    margin-top: auto;
}

.product-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(16, 56, 86, 0.08);
    background: #f4fbf6;
}

.product-start span {
    margin-left: 8px;
}

.product-card .feature-list li::marker {
    color: #0f8b44;
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 720px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 720px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.height-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.canvas-wrap {
    border: 1px solid #d9e4ef;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 10px;
}

.input-wrap > .canvas-wrap {
    margin-bottom: 0;
}

#sig-canvas {
    width: 100%;
    height: 160px;
    display: block;
    background: #fff;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Intake card layout (steps 1–4 mockups) ----- */

.step-card-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a2332;
}

.step-card-subtitle {
    margin: 0 0 22px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.45;
}

.section-heading-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a2332;
}

.section-heading-row .section-icon {
    font-size: 1.15rem;
}

.input-soft {
    background: #f0f7fc !important;
}

.two-col-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 520px) {
    .two-col-row {
        grid-template-columns: 1fr;
    }
}

.gender-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.gender-option {
    position: relative;
    border: 2px solid #e4edf6;
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.gender-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gender-option .gender-symbol {
    display: block;
    font-size: 2rem;
    margin-bottom: 6px;
}

.gender-option .gender-symbol.male {
    color: #1fa971;
}

.gender-option .gender-symbol.female {
    color: #9aa5b5;
}

.gender-option span.label-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.gender-option.is-selected {
    border-color: #1fa971;
    box-shadow: 0 0 0 1px rgba(31, 169, 113, 0.25);
}

.footer-disclaimer {
    margin-top: 18px;
    padding: 14px;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-light);
    background: #f7fafc;
    border-radius: 12px;
}

.phone-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 10px;
    align-items: end;
}

@media (max-width: 520px) {
    .phone-row {
        grid-template-columns: 1fr;
    }
}

.dob-row {
    display: grid;
    grid-template-columns: 1.2fr 0.75fr 1fr;
    gap: 14px;
}

@media (max-width: 520px) {
    .dob-row {
        grid-template-columns: 1fr;
    }
}

.info-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-top: 18px;
    background: #eaf5fc;
    border: 1px solid #c5dff3;
    border-radius: 12px;
    color: #155f89;
    font-size: 0.9rem;
    line-height: 1.45;
}

.info-banner .info-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1773b0;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-with-suffix {
    display: flex;
    align-items: stretch;
    border: 1px solid #d9e4ef;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.input-with-suffix .text-input-field {
    border: none;
    border-radius: 0;
    flex: 1;
    min-width: 0;
}

.input-with-suffix .field-suffix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f2f6fa;
    color: #7b8799;
    font-size: 0.88rem;
    font-weight: 600;
}

.bmi-panel {
    margin-top: 20px;
    padding: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbfe 0%, #eef4f9 100%);
    border: 1px solid rgba(23, 115, 176, 0.12);
    text-align: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(23, 115, 176, 0.08);
}

.bmi-panel[hidden] {
    display: none !important;
}

.bmi-panel--enter {
    animation: bmiPanelIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bmiPanelIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bmi-panel-body {
    padding: 22px 18px 20px;
}

.bmi-panel-label {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7b8799;
}

.bmi-panel .bmi-value {
    margin: 0;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1fa971;
    font-variant-numeric: tabular-nums;
}

.bmi-value--tick {
    animation: bmiValueTick 0.4s ease;
}

@keyframes bmiValueTick {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.06);
    }
    100% {
        transform: scale(1);
    }
}

.bmi-chart {
    margin: 18px 0 14px;
    padding: 0 4px;
}

.bmi-scale-zones {
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.bmi-zone {
    font-size: 0;
    line-height: 0;
}

.bmi-zone--under {
    flex: 3.5 1 0;
    background: linear-gradient(90deg, #90caf9, #64b5f6);
}

.bmi-zone--normal {
    flex: 6.5 1 0;
    background: linear-gradient(90deg, #66bb6a, #43a047);
}

.bmi-zone--over {
    flex: 5 1 0;
    background: linear-gradient(90deg, #ffb74d, #ffa726);
}

.bmi-zone--obese {
    flex: 10 1 0;
    background: linear-gradient(90deg, #ef5350, #e53935);
}

.bmi-marker-track {
    position: relative;
    height: 28px;
    margin-top: -6px;
}

.bmi-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary-solid);
    box-shadow: 0 2px 10px rgba(23, 115, 176, 0.35);
    transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, transform 0.35s ease;
}

.bmi-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-solid);
    margin-top: 1px;
}

.bmi-marker[data-category="under"] {
    border-color: #42a5f5;
}

.bmi-marker[data-category="under"]::after {
    border-top-color: #42a5f5;
}

.bmi-marker[data-category="normal"] {
    border-color: #43a047;
}

.bmi-marker[data-category="normal"]::after {
    border-top-color: #43a047;
}

.bmi-marker[data-category="over"] {
    border-color: #fb8c00;
}

.bmi-marker[data-category="over"]::after {
    border-top-color: #fb8c00;
}

.bmi-marker[data-category="obese"] {
    border-color: #e53935;
}

.bmi-marker[data-category="obese"]::after {
    border-top-color: #e53935;
}

.bmi-panel--enter .bmi-marker {
    animation: bmiMarkerPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes bmiMarkerPop {
    from {
        opacity: 0;
        transform: scale(0.4) translateY(-6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bmi-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #8a96a8;
    font-variant-numeric: tabular-nums;
}

.bmi-panel .bmi-category {
    margin: 4px 0 6px;
    font-size: 0.95rem;
    color: #5c6678;
}

.bmi-panel .bmi-category strong {
    color: #1a2332;
}

.bmi-panel .bmi-status {
    margin: 10px 0 0;
    font-size: 0.88rem;
    color: #1fa971;
    font-weight: 600;
    line-height: 1.45;
}

.bmi-panel[data-bmi-category="under"] .bmi-value {
    color: #1e88e5;
}

.bmi-panel[data-bmi-category="normal"] .bmi-value {
    color: #2e7d32;
}

.bmi-panel[data-bmi-category="over"] .bmi-value {
    color: #ef6c00;
}

.bmi-panel[data-bmi-category="obese"] .bmi-value {
    color: #e53935;
}

.bmi-panel.bmi-warn .bmi-status {
    color: #c62828;
}

@media (prefers-reduced-motion: reduce) {
    .bmi-panel--enter,
    .bmi-value--tick,
    .bmi-panel--enter .bmi-marker {
        animation: none;
    }

    .bmi-marker {
        transition: left 0.2s ease;
    }
}

.payment-page-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a2332;
}

.payment-page-sub {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.order-summary-box {
    background: #f4f6f8;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.order-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
    color: #2c3345;
}

.order-line.discount {
    margin-top: 6px;
    color: #1fa971;
    font-weight: 600;
}

.order-line.discount #order-discount-amount {
    color: #1fa971;
}

.order-line.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dde4ee;
    font-weight: 700;
}

.coupon-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.coupon-row.is-applied .text-input-field {
    background: #f4f9f4;
    border-color: #c1e3c4;
    color: #1fa971;
    font-weight: 600;
}

.coupon-feedback {
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

.coupon-feedback[hidden] {
    display: none !important;
}

.coupon-feedback.is-success {
    background: #e8f7ec;
    color: #1d7a3d;
    border: 1px solid #c4e7cc;
}

.coupon-feedback.is-error {
    background: #fdecec;
    color: #b3261e;
    border: 1px solid #f4c2c0;
}

.coupon-row .text-input-field {
    flex: 1;
}

.btn-outline {
    border: 1px solid #cfd9e6;
    border-radius: 10px;
    background: #fff;
    padding: 0 18px;
    font-weight: 600;
    color: #2c3345;
    cursor: pointer;
    white-space: nowrap;
}

.btn-outline:hover {
    background: #f7fbff;
}

.divider-soft {
    height: 1px;
    background: #e8eef5;
    margin: 18px 0;
}

.security-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 14px;
    background: #eaf5fc;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #155f89;
    line-height: 1.45;
}

.checkbox-plain {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #4d5a73;
}

.checkbox-plain input {
    margin-top: 3px;
}

/* ----- Single-page intake & product catalog (preview.html + logo theme) ----- */

.intake-step[hidden],
.intake-step:not(.active) {
    display: none !important;
}

.intake-step.active {
    display: block;
}

.intake-main {
    width: 100%;
}

#app-container.wide-layout .intake-shell {
    background: transparent;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
    height: auto;
    min-height: calc(100vh - 44px);
}

#app-container.wide-layout .intro-only:not(.intro-proof-wrap) {
    display: none;
}

#app-container.wide-layout .intake-main {
    overflow: visible;
}

.product-catalog {
    width: 100%;
}

.product-type-section {
    margin-bottom: 64px;
}

.product-type-header {
    text-align: center;
    margin-bottom: 36px;
}

.product-type-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #0b2a42;
    letter-spacing: -0.5px;
}

.product-type-desc {
    margin: 0;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.5;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 44px;
}

.pricing-card {
    position: relative;
    background: #fff;
    border-radius: 28px;
    padding: 48px 40px 44px;
    border: 1px solid rgba(23, 115, 176, 0.08);
    box-shadow: 0 10px 30px rgba(23, 115, 176, 0.08), 0 2px 8px rgba(23, 115, 176, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(23, 115, 176, 0.14), 0 8px 16px rgba(23, 115, 176, 0.08);
}

.pricing-card.popular {
    background: var(--primary-gradient);
    color: #fff;
    transform: scale(1.02);
    border-color: transparent;
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-8px);
}

.pricing-card .badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #fff;
    color: var(--primary-solid);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    letter-spacing: 0.4px;
}

.pricing-card .plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 18px;
    padding-top: 10px;
    color: #0b2a42;
    line-height: 1.25;
}

.pricing-card.popular .plan-name {
    color: #fff;
}

.pricing-card .plan-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0 0 32px;
    line-height: 1.55;
}

.pricing-card.popular .plan-desc {
    color: rgba(255, 255, 255, 0.85);
}

.pricing-card .price {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin: 0 0 16px;
}

.pricing-card .price h2 {
    margin: 0;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: #0b2a42;
}

.pricing-card.popular .price h2 {
    color: #fff;
}

.pricing-card .price span {
    font-size: 0.95rem;
    margin-bottom: 6px;
    opacity: 0.85;
}

.pricing-card .save {
    display: inline-block;
    margin: 20px 0 34px;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary-solid);
    font-size: 0.88rem;
    font-weight: 600;
}

.pricing-card.popular .save {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.pricing-card .features {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    flex: 1;
}

.pricing-card .features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.92rem;
    color: #425466;
    line-height: 1.45;
}

.pricing-card.popular .features li {
    color: rgba(255, 255, 255, 0.92);
}

.pricing-card .features li::before {
    content: "✓";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dff1ff;
    color: var(--primary-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-card.popular .features li::before {
    background: #fff;
    color: var(--primary-solid);
}

.pricing-card .product-image {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 14px;
    object-fit: cover;
    max-height: 160px;
}

.pricing-card .btn.btn-primary,
.pricing-card .product-start {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin-top: auto;
    padding-top: 10px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 10px 20px rgba(23, 115, 176, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: auto;
}

.pricing-card .btn.btn-primary:hover,
.pricing-card .product-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(23, 115, 176, 0.32);
}

.pricing-card.popular .btn.btn-primary,
.pricing-card.popular .product-start {
    background: #fff;
    color: var(--primary-solid);
    box-shadow: none;
}

.pricing-card.popular .btn.btn-primary:hover,
.pricing-card.popular .product-start:hover {
    background: #f3f9ff;
}

.product-catalog-loading {
    text-align: center;
    color: var(--text-light);
    padding: 48px 16px;
    font-size: 1.05rem;
}

.product-catalog-empty {
    text-align: center;
    color: var(--text-light);
    padding: 24px;
}

@media (max-width: 768px) {
    .product-type-title {
        font-size: 1.5rem;
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
}

/* Bootstrap validation with intake fields */
.intake-step-form.was-validated .form-control:invalid,
.intake-step-form.was-validated .form-select:invalid,
.intake-step-form .form-control.is-invalid,
.intake-step-form .form-select.is-invalid,
.intake-step-form input[type="radio"].is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.12);
}

.intake-step-form.was-validated .form-control:valid,
.intake-step-form.was-validated .form-select:valid {
    border-color: #86c5e8;
}

.intake-step-form .invalid-feedback {
    display: none;
    font-size: 0.85rem;
    margin-top: 6px;
}

.intake-step-form.was-validated .form-control:invalid ~ .invalid-feedback,
.intake-step-form.was-validated .form-select:invalid ~ .invalid-feedback {
    display: block;
}

.intake-step-form .invalid-feedback.is-visible {
    display: block;
}

#signature-invalid-feedback {
    display: none;
}

.canvas-wrap.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.12);
}

.canvas-wrap.is-invalid + #signature-invalid-feedback {
    display: block;
}

.gender-picker .gender-option.is-invalid {
    border-color: #dc3545;
}

.intake-step-form .form-label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #4d5a73;
}

/* Terms link inside consent option card */
#open-terms-link {
    color: var(--primary-solid, #1773b0);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#open-terms-link:hover,
#open-terms-link:focus {
    color: #0e5a8a;
}

/* Terms & Conditions modal */
.tos-modal .modal-content {
    border-radius: 14px;
    border: none;
    box-shadow: 0 18px 48px rgba(15, 39, 67, 0.18);
}

.tos-modal .modal-header {
    border-bottom: 1px solid #eef2f7;
    padding: 16px 22px;
}

.tos-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2332;
}

.tos-modal .modal-footer {
    border-top: 1px solid #eef2f7;
    padding: 14px 22px;
}

.tos-body {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #2c3345;
    padding: 18px 22px;
    max-height: 70vh;
}

.tos-body h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2332;
    margin: 18px 0 8px;
}

.tos-body h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a2332;
    margin: 16px 0 6px;
}

.tos-body p {
    margin: 0 0 10px;
}

.tos-body ul {
    margin: 0 0 12px 20px;
    padding: 0;
}

.tos-body ul li {
    margin-bottom: 4px;
}

.tos-body a {
    color: var(--primary-solid, #1773b0);
}

.tos-body hr {
    border-top: 1px solid #e4ecf3;
    margin: 22px 0;
}

@media (max-width: 575.98px) {
    .tos-body {
        font-size: 0.85rem;
        padding: 14px 16px;
    }
}