/* ============================
   Reality Check Score Widget
============================ */

.reality-score-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(145deg, #ffffff, #effaf4);
    border: 1px solid #e5e7eb;
    border-left: 5px solid #00a651;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 25px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.reality-score-label {
    font-size: 1rem;
    font-weight: 500 !important;
    color: #222;
}

.reality-score-label::after {
    content: "Based on real customer experiences, scored out of 10";
    display: block;
    font-size: 0.90rem;
    color: #777;
    margin-top: 6px;
    font-weight: 400;
}

.reality-score-value {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b65c, #008d47);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 166, 81, 0.25);
}

/* ============================
   Reality Feedback Block
============================ */

.reality-feedback-form {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    padding: 28px;
    margin-top: 30px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.reality-feedback-form .block-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.reality-feedback-form .block-title::after {
    content: "Help others by sharing your actual experience.";
    display: block;
    margin-top: 6px;
    font-size: 15px;
    color: #6b7280;
    font-weight: 400;
}

/* Fieldset */
.reality-feedback-form fieldset {
    border: 1px solid #edf1f5;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 25px;
    background: #fafcff;
}

body.reality-feedback-form legend {
    padding: 0 10px;
    font-size: 17px;
    font-weight: 500;
    color: #222;
}

.reality-feedback-form .fieldset-wrapper {
    margin-top: 15px;
}

/* Grouped radio containers */
.reality-feedback-form #edit-q-customer-support,
.reality-feedback-form #edit-q-hidden-cost,
.reality-feedback-form #edit-q-benefits-features,
.reality-feedback-form #edit-q-reward-system {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

/* ============================
   Rating Options
============================ */

.reality-feedback-form .form-type-radio {
    margin: 0;
}

.reality-feedback-form input[type="radio"] {
    display: none;
}

.reality-feedback-form .option {
    display: inline-block;
    padding: 10px 60px;
    border-radius: 40px;
    border: 1px solid #d7dde5;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.reality-feedback-form .option:hover {
    border-color: #00a651;
    color: #00a651;
    background: #f4fff8;
}

.reality-feedback-form input[type="radio"]:checked+.option {
    background: #00a651;
    color: #fff !important;
    border-color: #00a651;
    box-shadow: 0 6px 14px rgba(0, 166, 81, 0.25);
}

/* Error states */
.reality-error {
    border: 1px solid #ff4d4f;
    padding: 10px;
    border-radius: 6px;
    background: #fff5f5;
}

.reality-error-focus {
    border: 1px solid #8b0000;
    box-shadow:
        -1px 0 0 #e41616,
         1px 0 0 #e41616,
         0 1px 0 #e41616;
}

/* ============================
   Submit Button
============================ */
#reality-feedback-form {
    margin-top: 20px;
}

.reality-feedback-form .form-submit {
    background: linear-gradient(135deg, #00b65c, #0e7d3f);
    color: #fff;
    border: 0 !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reality-feedback-form .form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 166, 81, 0.28);
}


.reality-score-wrapper {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.reality-score-wrapper::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -45%;
    width: 22%;
    height: 200%;
    pointer-events: none;
    z-index: 2;

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 166, 81, 0.05) 30%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(0, 166, 81, 0.12) 70%,
        transparent 100%
    );

    transform: skewX(-25deg);
    filter: blur(10px);

    animation: premiumShine 5s linear infinite;
}

@keyframes premiumShine {
    from {
        left: -45%;
    }
    to {
        left: 125%;
    }
}

/* ============================
   Mobile Optimization
============================ */

@media (max-width: 768px) {

    .reality-score-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .reality-score-value {
        margin-top: 15px;
    }

    .reality-feedback-form {
        padding: 20px;
    }

    .reality-feedback-form #edit-q-customer-support,
    .reality-feedback-form #edit-q-hidden-cost,
    .reality-feedback-form #edit-q-benefits-features,
    .reality-feedback-form #edit-q-reward-system {
        flex-direction: column;
    }

    .reality-feedback-form .option {
        display: block;
        width: 100%;
        text-align: center;
    }

    .reality-score-label {
        font-size: 1.1rem;
    }

    .reality-score-label::after {
        font-size: 0.95rem;
    }
}