/* MCZ Reviews Pro — front-end (formularz + lista opinii) */

/* ---------- Formularz ---------- */
.mcz-rv-form-container {
    background: #F7F7FC;
    border: 1px solid #E4E4F2;
    padding: 28px;
    border-radius: 12px;
    margin: 30px 0;
}
.mcz-rv-form-title {
    margin: 0 0 22px;
    font-size: 20px;
    font-weight: 700;
    color: #11104A;
}
.mcz-rv-row { margin-bottom: 18px; }
.mcz-rv-row label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #1B1B3A;
    font-size: 14px;
}
.mcz-rv-row .req { color: #FF9417; }
.mcz-rv-half { display: flex; gap: 18px; }
.mcz-rv-col { flex: 1; }

.mcz-rv-form input[type="text"],
.mcz-rv-form input[type="email"],
.mcz-rv-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #D6D6EA;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mcz-rv-form input:focus,
.mcz-rv-form textarea:focus {
    outline: none;
    border-color: #6C5CFF;
    box-shadow: 0 0 0 3px rgba(108, 92, 255, 0.18);
}
.mcz-rv-form textarea { resize: vertical; min-height: 100px; }

/* Gwiazdki (input) — kolejność DOM 5→1, wizualnie 1→5 dzięki row-reverse */
.mcz-rv-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.mcz-rv-stars input[type="radio"] { display: none; }
.mcz-rv-stars label {
    font-size: 32px;
    color: #D6D6EA;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.1s ease;
    margin: 0;
}
.mcz-rv-stars label:hover { transform: scale(1.1); }
.mcz-rv-stars label:hover,
.mcz-rv-stars label:hover ~ label,
.mcz-rv-stars input[type="radio"]:checked ~ label {
    color: #FFB629;
}

.mcz-rv-submit {
    background: linear-gradient(135deg, #FFC857 0%, #FF9417 100%);
    color: #050518;
    border: none;
    padding: 14px 34px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 8px;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}
.mcz-rv-submit:hover { filter: brightness(1.07); }
.mcz-rv-submit:active { transform: translateY(1px); }
.mcz-rv-submit:disabled { filter: grayscale(0.6); cursor: not-allowed; }

.mcz-rv-message {
    margin-top: 18px;
    padding: 13px 17px;
    border-radius: 8px;
    font-size: 14px;
}
.mcz-rv-message.success { background: #EEF3EE; color: #1E6B3A; border: 1px solid #BFE3CB; }
.mcz-rv-message.error { background: #FCEEEE; color: #A03030; border: 1px solid #F0C8C8; }
.mcz-rv-error { color: #A03030; background: #FCEEEE; padding: 14px; border-radius: 8px; }

/* ---------- Lista opinii ---------- */
.mcz-rv-list-container { margin: 30px 0; }
.mcz-rv-empty {
    text-align: center;
    padding: 36px;
    background: #F7F7FC;
    border: 1px dashed #D6D6EA;
    border-radius: 12px;
    color: #6B6B8F;
    font-style: italic;
}

.mcz-rv-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    background: #11104A;
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 22px;
}
.mcz-rv-avg {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.mcz-rv-avg-stars { font-size: 22px; letter-spacing: 2px; }
.mcz-rv-avg-stars .star { color: rgba(243, 244, 255, 0.25); }
.mcz-rv-avg-stars .star.filled { color: #FFB629; }
.mcz-rv-count { color: #A7A8C7; font-size: 14px; }

.mcz-rv-items { display: flex; flex-direction: column; gap: 16px; }
.mcz-rv-item {
    background: #fff;
    border: 1px solid #E4E4F2;
    border-left: 4px solid #6C5CFF;
    border-radius: 10px;
    padding: 18px 20px;
}
.mcz-rv-item-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.mcz-rv-author { font-weight: 700; color: #11104A; }
.mcz-rv-rating .star { color: #D6D6EA; font-size: 14px; }
.mcz-rv-rating .star.filled { color: #FFB629; }
.mcz-rv-date { color: #9A9AB8; font-size: 13px; margin-left: auto; }
.mcz-rv-content { color: #44445E; line-height: 1.65; font-size: 14.5px; }

/* ---------- Responsywność ---------- */
@media (max-width: 600px) {
    .mcz-rv-form-container { padding: 20px; }
    .mcz-rv-half { flex-direction: column; gap: 14px; }
    .mcz-rv-stars label { font-size: 28px; }
    .mcz-rv-summary { flex-direction: column; gap: 8px; }
    .mcz-rv-date { margin-left: 0; width: 100%; }
}
