/* =====================================================================
   WP Feedback Popup – popup.css
   ===================================================================== */

/* Overlay */
#wfp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: wfpFadeIn .25s ease;
}

@keyframes wfpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Popup card */
#wfp-popup {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 32px 28px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    animation: wfpSlideUp .3s ease;
}

@keyframes wfpSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Close button */
#wfp-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
#wfp-close:hover {
    color: #374151;
    background: #f3f4f6;
}

/* Header */
.wfp-header { text-align: center; margin-bottom: 24px; }
.wfp-emoji { font-size: 40px; margin-bottom: 8px; }
.wfp-header h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}
.wfp-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Stars */
.wfp-stars-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.wfp-star {
    background: none;
    border: none;
    font-size: 36px;
    color: #d1d5db;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .15s, transform .15s;
}
.wfp-star:hover,
.wfp-star.active {
    color: #f59e0b;
    transform: scale(1.15);
}

.wfp-rating-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    min-height: 18px;
    margin: 0 0 16px;
    transition: opacity .2s;
}

/* Fields */
.wfp-field { margin-bottom: 14px; }
.wfp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.wfp-optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 12px;
}
.wfp-field textarea,
.wfp-field input[type="text"],
.wfp-field input[type="email"] {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: #f9fafb;
    box-sizing: border-box;
    transition: border-color .2s, background .2s;
    resize: vertical;
}
.wfp-field textarea:focus,
.wfp-field input:focus {
    outline: none;
    border-color: #7c3aed;
    background: #fff;
}

.wfp-field-row {
    display: flex;
    gap: 12px;
}
.wfp-field-row .wfp-field { flex: 1; }

/* Error */
.wfp-error {
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    margin: 0 0 8px;
}

/* Submit button */
#wfp-submit {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    transition: opacity .2s, transform .1s;
    margin-top: 4px;
}
#wfp-submit:hover { opacity: .9; }
#wfp-submit:active { transform: scale(.98); }
#wfp-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Success */
.wfp-success {
    text-align: center;
    padding: 16px 0 8px;
}
.wfp-success-icon { font-size: 48px; margin-bottom: 12px; }
.wfp-success strong { font-size: 18px; color: #111827; }
.wfp-success p { color: #6b7280; font-size: 14px; margin: 6px 0 0; }

/* Responsive */
@media (max-width: 480px) {
    #wfp-popup { padding: 28px 18px 22px; }
    .wfp-field-row { flex-direction: column; gap: 0; }
    .wfp-star { font-size: 30px; }
}
