.cvc-bmi-widget {
    direction: rtl;
    font-family: inherit;
    max-width: 520px;
    margin: 0 auto;
}

.cvc-bmi-hero {
    text-align: center;
    padding: 36px 28px;
    border-radius: 20px;
    background: linear-gradient(145deg, #0f766e 0%, #14b8a6 45%, #5eead4 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(15, 118, 110, 0.25);
    position: relative;
    overflow: hidden;
}

.cvc-bmi-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 60%;
    height: 120%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.cvc-bmi-hero-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    color: #fff;
}

.cvc-bmi-hero-icon i,
.cvc-bmi-hero-icon svg {
    width: 32px;
    height: 32px;
    font-size: 32px;
    line-height: 1;
    color: inherit;
}

.cvc-bmi-hero-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

.cvc-bmi-hero-subtitle {
    margin: 0 0 24px;
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.92;
    position: relative;
}

.cvc-bmi-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #0f766e;
    font: inherit;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.cvc-bmi-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cvc-bmi-cta-btn svg {
    width: 20px;
    height: 20px;
    transform: scaleX(-1);
}

.cvc-bmi-form-panel,
.cvc-bmi-result-panel {
    margin-top: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    animation: cvcBmiSlideIn 0.35s ease;
}

.cvc-bmi-widget .cvc-bmi-hero[hidden],
.cvc-bmi-form-panel[hidden],
.cvc-bmi-result-panel[hidden],
.cvc-bmi-result-cta[hidden] {
    display: none !important;
}

@keyframes cvcBmiSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cvc-bmi-form-header,
.cvc-bmi-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cvc-bmi-form-header h4,
.cvc-bmi-result-header h4 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
}

.cvc-bmi-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s;
}

.cvc-bmi-close-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.cvc-bmi-field {
    margin-bottom: 16px;
}

.cvc-bmi-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.cvc-bmi-field .required {
    color: #ef4444;
}

.cvc-bmi-field input[type="text"],
.cvc-bmi-field input[type="tel"],
.cvc-bmi-field input[type="number"],
.cvc-bmi-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.cvc-bmi-field input:focus,
.cvc-bmi-field textarea:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.cvc-bmi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cvc-bmi-gender-group {
    display: flex;
    gap: 16px;
    padding-top: 4px;
}

.cvc-bmi-radio,
.cvc-bmi-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #475569;
    cursor: pointer;
}

.cvc-bmi-conditions {
    margin: 8px 0 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cvc-bmi-conditions-label {
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
}

.cvc-bmi-checkbox {
    margin-bottom: 8px;
}

.cvc-bmi-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}

.cvc-bmi-submit-btn:hover {
    opacity: 0.92;
}

.cvc-bmi-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cvc-bmi-score-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.cvc-bmi-score-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 6px solid var(--cvc-bmi-color, #14b8a6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.cvc-bmi-score-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.cvc-bmi-score-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

.cvc-bmi-status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--cvc-bmi-color, #14b8a6);
}

.cvc-bmi-consult-alert {
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    font-size: 0.92rem;
    line-height: 1.7;
}

.cvc-bmi-recommendations h5 {
    margin: 0 0 14px;
    font-size: 1rem;
    color: #0f172a;
}

.cvc-bmi-rec-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cvc-bmi-rec-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.cvc-bmi-rec-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #0f766e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.cvc-bmi-rec-item strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 0.95rem;
}

.cvc-bmi-rec-item p {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
}

.cvc-bmi-result-cta {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.cvc-bmi-booking-btn {
    background-color: #0f766e;
}

.cvc-bmi-diet-btn {
    background-color: #7c3aed;
}

.cvc-bmi-action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    border: none;
    color: #fff;
    transition: opacity 0.15s;
}

.cvc-bmi-action-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.cvc-bmi-result-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.cvc-bmi-secondary-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.cvc-bmi-secondary-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
}

@media (max-width: 480px) {
    .cvc-bmi-row {
        grid-template-columns: 1fr;
    }

    .cvc-bmi-hero {
        padding: 28px 20px;
    }

    .cvc-bmi-result-cta {
        flex-direction: column;
    }

    .cvc-bmi-result-actions {
        flex-direction: column;
    }
}
