/* Forma Ideale BMI Calculator */
.fibmi-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--fibmi-bg, #fff0f5);
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.fibmi-container::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: rgba(232, 76, 136, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.fibmi-container::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: rgba(232, 76, 136, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.fibmi-step {
    position: relative;
    z-index: 1;
}

/* Header */
.fibmi-header {
    text-align: center;
    margin-bottom: 30px;
}

.fibmi-heart-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: rgba(232, 76, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fibmi-primary, #e84c88);
}

.fibmi-heart-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fibmi-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.2;
}

.fibmi-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Cards */
.fibmi-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Input Groups */
.fibmi-input-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.fibmi-input-group:last-child {
    margin-bottom: 0;
}

.fibmi-input-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(232, 76, 136, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fibmi-primary, #e84c88);
    margin-top: 24px;
}

.fibmi-input-icon svg {
    width: 28px;
    height: 28px;
    max-width: 100%;
    max-height: 100%;
}

.fibmi-input-wrapper {
    flex: 1;
}

.fibmi-input-wrapper label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.fibmi-required {
    color: var(--fibmi-primary, #e84c88);
}

.fibmi-input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    font-size: 16px;
    color: #1a1a2e;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fibmi-input-wrapper input:focus {
    outline: none;
    border-color: var(--fibmi-primary, #e84c88);
    box-shadow: 0 0 0 3px rgba(232, 76, 136, 0.1);
}

.fibmi-input-wrapper input::placeholder {
    color: #aaa;
    font-size: 14px;
}

/* Result Card */
.fibmi-result-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.fibmi-result-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 20px;
}

/* Gauge */
.fibmi-gauge-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
}

.fibmi-gauge {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.fibmi-gauge-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 8;
}

.fibmi-gauge-fill {
    fill: none;
    stroke: var(--fibmi-secondary, #00bfa5);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 1s ease-out;
}

.fibmi-gauge-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.fibmi-bmi-value {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--fibmi-secondary, #00bfa5);
    line-height: 1;
}

.fibmi-bmi-label {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    background: rgba(0, 191, 165, 0.1);
    color: var(--fibmi-secondary, #00bfa5);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.fibmi-message {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons - Gradient with white circle icon */
.fibmi-btn-continue,
.fibmi-btn-submit {
    width: 100%;
    height: 64px;
    padding: 0;
    background: linear-gradient(90deg, #f06292 0%, #e91e63 40%, #c2185b 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.35);
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding-left: 6px;
    letter-spacing: 0.5px;
  	max-width:70%;
  	margin:auto;
}

.fibmi-btn-continue:hover:not(:disabled),
.fibmi-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.45);
}

.fibmi-btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fibmi-btn-icon-circle {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: auto;
    margin-left: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fibmi-btn-icon-circle svg {
    width: 22px;
    height: 22px;
    stroke: #e91e63;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/*.fibmi-btn-continue span:first-child,
.fibmi-btn-submit span:first-child {
    flex: 1;
    text-align: center;
    padding-right: 58px;
}*/

/* Step 2 - Options */
.fibmi-options-card {
    padding: 16px;
}

.fibmi-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 16px;
    margin-bottom: 12px;
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.fibmi-option:last-child {
    margin-bottom: 0;
}

.fibmi-option:hover {
    border-color: rgba(232, 76, 136, 0.3);
    background: rgba(232, 76, 136, 0.02);
}

.fibmi-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.fibmi-radio {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.fibmi-option input[type="radio"]:checked + .fibmi-radio {
    border-color: var(--fibmi-primary, #e84c88);
    background: var(--fibmi-primary, #e84c88);
}

.fibmi-option input[type="radio"]:checked + .fibmi-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.fibmi-option input[type="radio"]:checked ~ .fibmi-option-text {
    color: var(--fibmi-primary, #e84c88);
    font-weight: 600;
}

.fibmi-option input[type="radio"]:checked ~ .fibmi-radio {
    border-color: var(--fibmi-primary, #e84c88);
}

.fibmi-option-text {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    transition: all 0.3s ease;
}

/* Loading */
.fibmi-loading {
    text-align: center;
    padding: 60px 20px;
}

.fibmi-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(232, 76, 136, 0.1);
    border-top-color: var(--fibmi-primary, #e84c88);
    border-radius: 50%;
    animation: fibmi-spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes fibmi-spin {
    to { transform: rotate(360deg); }
}

.fibmi-loading p {
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 640px) {
    .fibmi-container {
        max-width: 100%;
        padding: 20px 16px;
    }

    .fibmi-title {
        font-size: 26px;
    }

    .fibmi-card {
        padding: 18px;
    }

    .fibmi-input-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .fibmi-gauge-wrapper {
        width: 150px;
        height: 150px;
    }

    .fibmi-bmi-value {
        font-size: 40px;
    }
}

/* Animations */
@keyframes fibmi-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fibmi-step {
    animation: fibmi-fadeIn 0.5s ease-out;
}
