/* Allergy Question Styles */
.allergy-question-section {
    background: #fef6fb;
    border-radius: 20px;
    padding: 32px 28px 26px;
    margin: 24px 0;
    text-align: center;
}

/* ── Icon + sparkles ── */
.allergy-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.allergy-warning-icon {
    width: 58px;
    height: 58px;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid rgba(251, 61, 178, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #FB3DB2;
    box-shadow: 0 2px 16px rgba(251, 61, 178, 0.12);
}

/* Sparkles — precisely placed around icon */
.allergy-sparkle {
    position: absolute;
    color: #FB3DB2;
    line-height: 1;
    pointer-events: none;
}

.allergy-sparkle--tl {
    top:  -8px;
    left: -8px;
    font-size: 10px;
}
.allergy-sparkle--tr {
    top:  -10px;
    right: -4px;
    font-size: 7px;
    opacity: 0.7;
}
.allergy-sparkle--bl {
    bottom: -4px;
    left:   -10px;
    font-size: 7px;
    opacity: 0.7;
}
.allergy-sparkle--br {
    bottom: -6px;
    right:  -8px;
    font-size: 10px;
}

/* ── Question label ── */
.allergy-question-label {
    display: block;
    font-weight: 700;
    font-size: 18px;
    color: #2d1020;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

/* ── Options row ── */
.allergy-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 10px;
}

/* Hide native radio */
.allergy-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.allergy-option {
    position: relative;
}

/* ── Pill button — default (unselected) ── */
.allergy-option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 36px;
    border: 1.5px solid #e0e0e0;
    border-radius: 50px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #9e9e9e;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    min-width: 120px;
    user-select: none;
}

/* Custom radio circle */
.allergy-option-label::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    background: #fff;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

/* ── Pill button — selected ── */
.allergy-option:has(.allergy-radio:checked) .allergy-option-label {
    border-color: #FB3DB2;
    background: #fff0f9;
    color: #FB3DB2;
}

.allergy-option:has(.allergy-radio:checked) .allergy-option-label::before {
    border-color: #FB3DB2;
    background: #FB3DB2;
    box-shadow: inset 0 0 0 4px #fff0f9;
}

/* ── Hover on unselected ── */
.allergy-option:not(:has(.allergy-radio:checked)) .allergy-option-label:hover {
    border-color: #FB3DB2;
    color: #FB3DB2;
}

.allergy-option:not(:has(.allergy-radio:checked)) .allergy-option-label:hover::before {
    border-color: #FB3DB2;
}

/* ── Error message ── */
.allergy-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: #c53030;
    display: none;
    margin-top: 10px;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .allergy-question-section {
        padding: 24px 18px 20px;
    }

    .allergy-options {
        gap: 10px;
    }

    .allergy-option-label {
        padding: 11px 24px;
        min-width: 100px;
        font-size: 14px;
    }
}
