/* =====================================================
   Frontend styles for Smart Feedback Flow
   - Cleaned, theme-safe, no !important
   - Smooth transitions for positive/negative sections
   - Fully commented for clarity
   ===================================================== */

/* --- Feedback Container Wrapper --- */
.sff-wrap {
    max-width: 80%;
    margin: 30px auto;
    padding: 25px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
    text-align: center;
    border: 1px solid #f0f4f8;
}

/* Smooth transition for the form */
.sff-wrap form {
    transition: all 0.4s ease;
    overflow-anchor: none;
    padding: 0px 20px;
}

/* --- Title --- */
.sff-wrap h2.sff-title {
    font-size: 35px;
    color: #0b3b66;
    margin-bottom: 20px;
    padding: 0 15px;
    text-transform: capitalize;
    line-height: 1.2;
}

/* --- Star Rating Section --- */
.sff-wrap .sff-stars {
    margin-bottom: 20px;
}

/* Star buttons (default state) */
.sff-wrap .sff-star {
    display: inline-block;
    font-size: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #cfcfcf;
    margin: 0 6px;
    transition: color 0.35s ease, transform 0.25s ease;
    padding: 5px;
}

/* Active star (when selected) */
.sff-wrap button.sff-star.active {
    color: #f5a623;
    transform: scale(1.2);
}

/* Hover effect for stars */
.sff-wrap button.sff-star:hover {
    color: #f5a623;
    transform: scale(1.3);
}

/* --- Form Inputs --- */
.sff-wrap #sff-form label {
    display: block;
    text-align: left;
    margin: 25px 0 12px;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

/* Textarea input styling */
.sff-wrap #sff-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e6eef6;
    font-size: 15px;
    resize: vertical;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

/* --- Dynamic Note (admin-editable text) --- */
.sff-wrap .sff-note {
    margin: 15px 0 10px 0;
    color: #111827;
}


/* Smooth toggle for positive/negative feedback sections */
.sff-positive,
.sff-negative {
    display: none;
    padding: 20px 40px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Visible state triggered by JS class toggle */
.sff-positive.visible,
.sff-negative.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Visible state (triggered by JS class toggle) */
.sff-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
/* --- Warning Message (Validation/Errors) --- */
.sff-wrap .sff-warning {
    color: #b91c1c;
    margin-bottom: 8px;
}

/* --- Buttons (Submit / Positive link) --- */
.sff-wrap .sff-positive a.sff-btn,
.sff-wrap button.sff-submit {
    display: inline-block;
    background: linear-gradient(90deg, #0b6fa8, #00a3e0);
    color: #fff;
    padding: 12px 16px;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    margin: 10px 0;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Button hover effect */
.sff-wrap .sff-positive a.sff-btn:hover,
.sff-wrap button.sff-submit:hover {
    background: linear-gradient(90deg, #0082c8, #00b0f0);
    color: #f2f2f2;
    box-shadow: 0 4px 12px rgba(0, 163, 224, 0.35);
}

/* --- Thank You Message --- */
.sff-wrap #sff-thankyou  {
    padding: 100px 40px;
    transition: box-shadow 0.5s ease, transform 0.5s ease;
    font-size: 22px;
    color: #065f46;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 0px;
}
/* Subtle glow effect when thank-you appears */
.sff-wrap #sff-thankyou.visible {
    box-shadow: 0 8px 25px rgba(6, 95, 70, 0.25);
    border-radius: 12px;
    transform: scale(1.02);
}

/* --- Mobile Responsive Adjustments --- */
@media (max-width: 767px) {
    .sff-wrap .sff-star {
        font-size: 30px;
        margin: 0 3px;
    }
    .sff-wrap {
        max-width: 90%;
        margin: 30px auto;
        padding: 15px;
    }
    .sff-positive,
    .sff-negative {
        padding: 20px 20px;
    }
}
