/* ── Lucky7 Reviews – Frontend Styles ───────────────────────────── */

/* Wrapper */
.l7r-wrap { padding: 20px 0; }

/* Form Card */
.l7r-form-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    overflow: hidden;
}

/* Header */
.l7r-form-header {
    text-align: center;
    padding: 32px 24px 20px;
}
.l7r-form-header h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
}
.l7r-form-header p {
    margin: 0;
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
}

/* Section title banner */
.l7r-section-title {
    background: #e9e3fd;
    text-align: center;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #4c3d8f;
    letter-spacing: .4px;
    text-transform: uppercase;
}

/* Form body */
.l7r-form-body { padding: 24px 32px 32px; }

/* Groups */
.l7r-group { margin-bottom: 22px; }
.l7r-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}
.l7r-req { color: #e53e3e; }
.l7r-optional { font-size: 12px; font-weight: 400; color: #a0aec0; }

/* Star Rating */
.l7r-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.l7r-stars input[type="radio"] { display: none; }
.l7r-stars label {
    font-size: 36px;
    color: #e2e8f0;
    cursor: pointer;
    margin: 0;
    line-height: 1;
    transition: color .15s, transform .1s;
}
.l7r-stars label:hover { transform: scale(1.15); }
.l7r-stars input[type="radio"]:checked ~ label,
.l7r-stars label:hover,
.l7r-stars label:hover ~ label {
    color: #ffd700;
}

/* Textarea & Text Input */
.l7r-form-card textarea,
.l7r-form-card input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #2d3748;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.l7r-form-card textarea:focus,
.l7r-form-card input[type="text"]:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.l7r-form-card textarea {
    min-height: 110px;
    resize: vertical;
}

/* File Upload */
.l7r-upload-box {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
    background: #f7fafc;
    cursor: pointer;
    position: relative;
    transition: border-color .2s, background .2s;
}
.l7r-upload-box:hover,
.l7r-upload-box.dragover {
    border-color: #6366f1;
    background: #eef2ff;
}
.l7r-upload-box input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.l7r-upload-text { color: #a0aec0; font-size: 14px; line-height: 1.8; }
.l7r-upload-icon { font-size: 22px; }

/* Preview thumbnails */
.l7r-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.l7r-preview img,
.l7r-preview video {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
}

/* Name quick-select */
.l7r-name-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.l7r-name-btn {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    color: #718096;
    transition: all .15s;
}
.l7r-name-btn:hover { border-color: #6366f1; color: #6366f1; }
.l7r-name-btn.active {
    background: #f4d03f;
    border-color: #f4d03f;
    color: #1a202c;
    font-weight: 700;
}

/* Submit button */
.l7r-submit {
    width: 100%;
    background: #f4d03f;
    color: #1a202c;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 8px;
    letter-spacing: .5px;
    transition: background .2s, transform .1s;
}
.l7r-submit:hover { background: #e5c338; transform: translateY(-1px); }
.l7r-submit:active { transform: translateY(0); }
.l7r-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Terms */
.l7r-terms {
    text-align: center;
    font-size: 11px;
    color: #a0aec0;
    margin-top: 14px;
}
.l7r-terms a { color: #6366f1; }

/* Notices */
.l7r-notice {
    margin: 0 32px 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}
.l7r-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.l7r-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Public Reviews Display ─────────────────────────────────────── */
.l7r-public-wrap { max-width: 700px; }

.l7r-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.l7r-avg-score { font-size: 52px; font-weight: 800; color: #1a202c; line-height: 1; }
.l7r-avg-stars .l7r-s-full, .l7r-avg-stars .l7r-s-half { color: #ffd700; font-size: 22px; }
.l7r-avg-stars .l7r-s-empty { color: #e2e8f0; font-size: 22px; }
.l7r-avg-label { font-size: 13px; color: #718096; margin-top: 4px; }

.l7r-reviews-list { display: flex; flex-direction: column; gap: 16px; }

.l7r-review-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.l7r-review-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.l7r-reviewer-info { display: flex; align-items: center; gap: 12px; }
.l7r-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.l7r-reviewer-name { font-size: 15px; font-weight: 700; color: #1a202c; }
.l7r-review-date { font-size: 12px; color: #a0aec0; margin-top: 2px; }

.l7r-review-stars .l7r-s-full, .l7r-review-stars .l7r-s-half { color: #ffd700; font-size: 18px; }
.l7r-review-stars .l7r-s-empty { color: #e2e8f0; font-size: 18px; }

.l7r-review-comment { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: #4a5568; }

.l7r-review-media { display: flex; flex-wrap: wrap; gap: 8px; }
.l7r-media-item {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.l7r-no-reviews { text-align: center; color: #a0aec0; padding: 40px; }
