/* ========================================
   FEEDBACK MODAL STYLES
   ======================================== */
.amv-feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    /* higher than page stuff */
    display: none;
    /* hidden by default */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    align-items: center;
    /* vertical center */
    justify-content: center;
    /* horizontal center */
    padding: 16px;
    /* mobile breathing room */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show state */
.amv-feedback-modal.show,
.amv-feedback-modal.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Background Tint/Overlay */
.amv-feedback-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* Darker tint as requested */
    backdrop-filter: blur(4px);
    z-index: 1;
}

.amv-feedback-modal__content {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.amv-feedback-modal.active .amv-feedback-modal__content,
.amv-feedback-modal.show .amv-feedback-modal__content {
    transform: scale(1);
    visibility: visible !important;
}

.amv-feedback-success-msg {
    font-size: 20px;
    color: #000000;
    line-height: 1.5;
    margin-bottom: 24px;
    font-family: 'Roboto', sans-serif;
}

.amv-feedback-question {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 32px;
    font-family: 'Roboto', sans-serif;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* Star Rating */
.amv-star-rating {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}

.amv-star {
    cursor: pointer;
    transition: transform 0.2s ease;
    /* Font fallback for stars if SVGs are missing */
    font-size: 48px;
    color: #e0e0e0;
    line-height: 1;
}

/* Star SVG Styling */
.amv-star svg {
    width: 48px;
    height: 48px;
    stroke: #34CCFF;
    stroke-width: 2px;
    fill: transparent;
    transition: all 0.2s ease;
    display: block;
}

/* Hover & Active States */
.amv-star:hover,
.amv-star.active,
.amv-star.selected {
    color: #34CCFF;
    /* For text stars */
}

.amv-star:hover svg,
.amv-star.active svg,
.amv-star.selected svg {
    fill: #34CCFF;
}

.amv-star:hover {
    transform: scale(1.15);
}

/* Textarea */
.amv-feedback-textarea-wrapper {
    max-width: 380px;
    margin: 0 auto 24px;
    width: 100%;
}

.amv-feedback-textarea-wrapper textarea {
    width: 100%;
    height: 120px;
    border: 1px solid #bababa;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    color: #1a1a1a;
    resize: none;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 0;
    /* Margin handled by wrapper */
}

.amv-feedback-textarea-wrapper textarea::placeholder {
    color: #bababa;
}

.amv-feedback-textarea-wrapper textarea:focus {
    border-color: #34CCFF;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 204, 255, 0.1);
}

/* Submit Button */
.amv-feedback-submit {
    background: #34CCFF !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 40px !important;
    height: 64px !important;
    /* Made bigger */
    font-size: 20px !important;
    /* Larger font */
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    max-width: 380px !important;
    /* Match textarea width */
    display: block !important;
    margin: 0 auto 24px !important;
    text-transform: none !important;
    box-shadow: 0 4px 15px rgba(52, 204, 255, 0.3);
}

.amv-feedback-submit:hover {
    background: #00bfff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 204, 255, 0.4);
}

/* Later Link */
.amv-feedback-later {
    font-size: 16px;
    color: #bababa;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    margin-right: 75px;
}

.amv-feedback-later:hover {
    color: #1a1a1a;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .amv-feedback-modal__content {
        padding: 32px 24px;
        width: 90%;
        margin: 0 auto;
    }

    .amv-feedback-success-msg {
        font-size: 12px;
        margin-bottom: 16px;
        font-weight: 400;
    }

    .amv-feedback-question {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .amv-star {
        font-size: 36px;
    }

    .amv-star svg {
        width: 36px;
        height: 36px;
    }

    .amv-feedback-textarea-wrapper textarea {
        height: 100px;
    }

    .amv-feedback-submit {
        font-size: 18px !important;
    }
}