.wls-calculator * {
    box-sizing: border-box;
}

.wls-calculator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.wls-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--wls-brand-color, #438194);
    text-align: center;
    margin-bottom: 5px;
}

.wls-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #8e8e93;
    text-align: center;
    margin-bottom: 30px;
}

.wls-subtitle::before {
    content: "Brought to you by ";
}

.wls-section {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.wls-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.wls-form-group {
    margin-bottom: 20px;
}

.wls-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.wls-input, .wls-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fafafa;
    transition: all 0.2s;
}

.wls-input:focus, .wls-select:focus {
    outline: none;
    border-color: var(--wls-brand-color, #438194);
    background-color: white;
}

.wls-height-inputs {
    display: flex;
    gap: 15px;
}

.wls-height-input {
    flex: 1;
    position: relative;
}

.wls-height-label {
    position: absolute;
    right: 15px;
    top: 12px;
    color: #8e8e93;
    font-size: 14px;
}

.wls-form-row {
    display: flex;
    gap: 20px;
}

.wls-form-row .wls-form-group {
    flex: 1;
}

/* Medication Notice Box */
.wls-medication-notice {
    background-color: #fffbf0;
    border: 1px solid #ffe0b2;
    border-left: 4px solid #ff9800;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.wls-notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.wls-notice-content h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #5d4037;
}

.wls-notice-content p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #5d4037;
    line-height: 1.6;
}

.wls-notice-content ul {
    margin: 10px 0 10px 20px;
    font-size: 13px;
    color: #5d4037;
    line-height: 1.6;
}

.wls-notice-content li {
    margin-bottom: 5px;
}

.wls-calculate-button {
    width: 100%;
    padding: 18px;
    background-color: var(--wls-brand-color, #438194);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}

.wls-calculate-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.wls-calculate-button:active {
    transform: translateY(0);
}

/* BMI Card */
.wls-bmi-card {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    margin-top: 30px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    text-align: center;
}

.wls-bmi-value {
    font-size: 64px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -2px;
}

.wls-bmi-label {
    font-size: 15px;
    color: #6e6e73;
    margin-top: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.wls-bmi-category {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    background-color: #f5f5f7;
    color: #6e6e73;
    font-size: 14px;
    font-weight: 600;
}

/* Chart */
.wls-chart-container {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.wls-chart-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 25px;
    text-align: center;
}

.wls-chart-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.wls-chart-label {
    width: 90px;
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    flex-shrink: 0;
}

.wls-bar-container {
    flex: 1;
}

.wls-bar {
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 600;
    min-width: 90px;
    transition: all 0.3s;
    white-space: nowrap;
    color: white;
}

/* Chart Colors - Base */
.wls-bar-current {
    background: linear-gradient(135deg, #78909c 0%, #546e7a 100%);
}

.wls-bar-ideal {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
}

/* Surgery bars - progressive blues */
.wls-bar-surgery-1 {
    background: linear-gradient(135deg, #90caf9 0%, #64b5f6 100%);
}

.wls-bar-surgery-2 {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
}

.wls-bar-surgery-3 {
    background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
}

.wls-bar-surgery-4 {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

/* Medication bars - progressive purples */
.wls-bar-med-1 {
    background: linear-gradient(135deg, #ce93d8 0%, #ba68c8 100%);
}

.wls-bar-med-2 {
    background: linear-gradient(135deg, #ba68c8 0%, #ab47bc 100%);
}

.wls-bar-med-3 {
    background: linear-gradient(135deg, #ab47bc 0%, #8e24aa 100%);
}

/* Results */
.wls-results-container {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.wls-results-title {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 25px;
}

.wls-result-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f7;
}

.wls-result-label {
    font-size: 15px;
    color: #6e6e73;
    font-weight: 500;
}

.wls-result-value {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

/* Treatment comparison cards */
.wls-comparison-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.wls-treatment-column {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e5ea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wls-treatment-column.surgery {
    border-top: 4px solid #2196f3;
}

.wls-treatment-column.medication {
    border-top: 4px solid #ab47bc;
}

.wls-treatment-title {
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f5f7;
}

.wls-treatment-result {
    font-size: 13px;
    color: #1d1d1f;
    margin-bottom: 10px;
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.wls-treatment-result span {
    color: #6e6e73;
    font-weight: 500;
    flex-shrink: 0;
}

.wls-treatment-result strong {
    color: #1d1d1f;
    font-weight: 600;
    text-align: right;
}

.wls-post-bmi-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    margin-top: 10px;
    background-color: #e3f2fd;
    color: #1565c0;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.wls-treatment-note {
    font-size: 11px;
    color: #8e8e93;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f7;
    line-height: 1.4;
    text-align: center;
}

/* Cost Comparison */
.wls-cost-container {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.wls-cost-title {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 25px;
}

.wls-cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.wls-cost-card {
    padding: 20px;
    border-radius: 12px;
    background-color: white;
    border: 1px solid #e5e5ea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wls-cost-card.surgery {
    border-top: 4px solid #2196f3;
}

.wls-cost-card.medication {
    border-top: 4px solid #ab47bc;
}

.wls-cost-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f5f7;
}

.wls-cost-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
}

.wls-cost-label {
    color: #6e6e73;
    font-weight: 500;
}

.wls-cost-value {
    font-weight: 600;
    color: #1d1d1f;
}

.wls-cost-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #e5e5ea;
    font-size: 14px;
}

.wls-cost-total .wls-cost-value {
    font-size: 18px;
    font-weight: 700;
    color: #2196f3;
}

.wls-cost-badge {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 6px;
    background-color: #f5f5f7;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wls-cost-insight {
    background-color: #fffbf0;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ffe0b2;
    border-left: 4px solid #ff9800;
    margin-bottom: 20px;
}

.wls-cost-insight-title {
    font-size: 16px;
    font-weight: 600;
    color: #5d4037;
    margin-bottom: 12px;
}

.wls-cost-insight-text {
    font-size: 14px;
    color: #5d4037;
    line-height: 1.8;
}

.wls-cost-insight-text strong {
    font-weight: 600;
}

/* Disclaimers Container */
.wls-disclaimers-container {
    background-color: white;
    border-radius: 12px;
    border: 1px solid #e5e5ea;
    margin: 30px auto 20px auto;
    max-width: 850px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wls-disclaimer-section {
    padding: 20px;
    font-size: 13px;
    line-height: 1.7;
    color: #5d4037;
    background-color: #fff8f0;
}

.wls-disclaimer-section + .wls-disclaimer-section {
    border-top: 2px solid #ffe0b2;
    background-color: #f0f9ff;
    color: #01579b;
}

.wls-disclaimer-section strong {
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 8px;
}

.wls-powered-by {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
}

.wls-powered-by a {
    color: #8e8e93;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.wls-powered-by a:hover {
    color: var(--wls-brand-color, #438194);
}

/* ---- COMMITMENT SECTION ---- */
.wls-commitment-section .wls-section-title {
    margin-bottom: 24px;
}

.wls-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wls-radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s;
    background: #fafafa;
}

.wls-radio-option:hover {
    border-color: var(--wls-brand-color, #438194);
    background: #f0f8fa;
}

.wls-radio-option input[type="radio"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--wls-brand-color, #438194);
    cursor: pointer;
}

.wls-radio-option:has(input:checked) {
    border-color: var(--wls-brand-color, #438194);
    background: #eef7f9;
    box-shadow: 0 0 0 2px rgba(67,129,148,0.15);
}

.wls-radio-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wls-radio-label strong {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

.wls-radio-label span {
    font-size: 13px;
    color: #6e6e73;
}

.wls-commitment-info {
    margin-top: 24px;
    padding: 14px 16px;
    background: #f0f9ff;
    border-left: 4px solid var(--wls-brand-color, #438194);
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #1d3a44;
    line-height: 1.6;
}

.wls-commitment-info strong {
    font-weight: 600;
}

/* Commitment badge on BMI card */
.wls-commitment-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--wls-brand-color, #438194) 0%, #2d6b7a 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.wls-hidden {
    display: none;
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .wls-calculator {
        padding: 10px;
    }

    .wls-title {
        font-size: 22px;
    }

    .wls-subtitle {
        font-size: 12px;
    }

    .wls-section {
        padding: 16px;
    }

    .wls-medication-notice {
        flex-direction: column;
        gap: 10px;
    }

    .wls-form-row {
        flex-direction: column;
        gap: 0;
    }

    .wls-comparison-container {
        grid-template-columns: 1fr;
    }

    .wls-cost-grid {
        grid-template-columns: 1fr;
    }

    .wls-chart-label {
        width: 70px;
        font-size: 11px;
    }

    .wls-bar {
        height: 36px;
        font-size: 12px;
        padding: 0 10px;
        min-width: 70px;
    }

    .wls-bmi-value {
        font-size: 48px;
    }

    .wls-bmi-card {
        padding: 24px;
    }

    .wls-results-container,
    .wls-chart-container,
    .wls-cost-container {
        padding: 20px;
    }

    .wls-results-title,
    .wls-chart-title,
    .wls-cost-title {
        font-size: 18px;
    }

    .wls-treatment-title,
    .wls-cost-card-title {
        font-size: 14px;
    }

    .wls-calculate-button {
        font-size: 16px;
        padding: 16px;
    }

    .wls-radio-option {
        padding: 12px 14px;
    }

    .wls-radio-label strong {
        font-size: 13px;
    }

    .wls-radio-label span {
        font-size: 12px;
    }

    .wls-commitment-badge {
        font-size: 12px;
        padding: 5px 14px;
    }
}

/* ---- TABLET ---- */
@media (min-width: 769px) and (max-width: 1024px) {
    .wls-comparison-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .wls-cost-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}