/* =============================================================================
   Rixden Reviews — Public Styles
   The customer review form served at /review/{token}.
============================================================================= */

:root {
    --rixre-accent: #6366f1;
}

.rixre-review-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(99, 102, 241, 0.10), transparent 60%),
        #f1f3f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}
.rixre-review-body *, .rixre-review-body *::before, .rixre-review-body *::after { box-sizing: border-box; }

.rixre-review-shell {
    width: 100%;
    max-width: 480px;
}

.rixre-review-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 36px 32px 32px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 32px rgba(15, 23, 42, 0.10);
    text-align: center;
}

.rixre-review-logo {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rixre-accent);
    margin-bottom: 18px;
}
.rixre-review-card h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.rixre-review-sub {
    margin: 0 0 24px;
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
}

/* Stars */
.rixre-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 0 28px;
}
.rixre-star {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #d8dee9;
    transition: transform 0.12s ease, color 0.12s ease;
    line-height: 0;
}
.rixre-star svg { width: 38px; height: 38px; }
.rixre-star:hover { transform: scale(1.12); }
.rixre-star.on { color: #f59e0b; }
.rixre-star.on svg { fill: #f59e0b; stroke: #f59e0b; }

/* Fields */
.rixre-field { text-align: left; margin-bottom: 16px; }
.rixre-flabel {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}
.rixre-finput, .rixre-ftextarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.rixre-finput:focus, .rixre-ftextarea:focus {
    outline: none;
    border-color: var(--rixre-accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.rixre-ftextarea { resize: vertical; min-height: 96px; }

/* Honeypot — visually hidden, off-screen, but present for bots */
.rixre-honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rixre-submit {
    width: 100%;
    margin-top: 8px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: var(--rixre-accent);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.28);
}
.rixre-submit:hover { filter: brightness(0.95); box-shadow: 0 8px 22px rgba(99, 102, 241, 0.36); }
.rixre-submit:active { transform: translateY(1px); }
.rixre-submit:disabled { opacity: 0.7; cursor: default; }

.rixre-form-error {
    margin: 14px 0 0;
    font-size: 13.5px;
    font-weight: 500;
    color: #dc2626;
    min-height: 1px;
}

/* Success panel */
.rixre-success-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rixre-success-badge svg { width: 32px; height: 32px; }

.rixre-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
    padding: 14px 26px;
    border-radius: 12px;
    background: var(--rixre-accent);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.28);
    transition: filter 0.15s, box-shadow 0.15s;
}
.rixre-review-body .rixre-google-btn,
.rixre-review-body .rixre-google-btn:link,
.rixre-review-body .rixre-google-btn:visited { color: #ffffff; text-decoration: none; }
.rixre-review-body .rixre-google-btn:hover,
.rixre-review-body .rixre-google-btn:focus,
.rixre-review-body .rixre-google-btn:active { color: #ffffff; text-decoration: none; filter: brightness(0.95); box-shadow: 0 8px 22px rgba(99, 102, 241, 0.36); }
.rixre-google-btn svg { width: 18px; height: 18px; fill: #ffffff; stroke: #ffffff; }

.rixre-review-invalid h1 { font-size: 20px; }
.rixre-review-invalid .rixre-review-logo { color: #94a3b8; }

.rixre-review-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12.5px;
    color: #94a3b8;
}

@media (max-width: 420px) {
    .rixre-review-card { padding: 28px 22px 26px; border-radius: 18px; }
    .rixre-review-card h1 { font-size: 21px; }
    .rixre-star svg { width: 34px; height: 34px; }
}

/* =============================================================================
   DISPLAY GRID — [rixden_reviews] front-end output
============================================================================= */
.rixre-display {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}
.rixre-display.rixre-cols-1 { grid-template-columns: 1fr; }
.rixre-display.rixre-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rixre-display.rixre-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rixre-display.rixre-cols-4 { grid-template-columns: repeat(4, 1fr); }

.rixre-display-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rixre-display-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 16px 40px rgba(15, 23, 42, 0.10);
}
.rixre-display-top { display: flex; align-items: center; gap: 12px; }
.rixre-display-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rixre-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.rixre-display-meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.rixre-display-name { font-weight: 700; font-size: 15px; color: #0f172a; }
.rixre-display-date { font-size: 12.5px; color: #94a3b8; }
.rixre-display-stars { display: inline-flex; gap: 2px; }
.rixre-dstar { line-height: 0; }
.rixre-dstar svg { width: 18px; height: 18px; fill: #e2e8f0; }
.rixre-dstar.on svg { fill: #f59e0b; }
.rixre-display-text { margin: 0; font-size: 14.5px; line-height: 1.65; color: #475569; }

@media (max-width: 920px) {
    .rixre-display.rixre-cols-3,
    .rixre-display.rixre-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .rixre-display { grid-template-columns: 1fr !important; }
}

/* Clipboard notice on the success step */
.rixre-clip-notice {
    margin: 8px auto 0;
    max-width: 360px;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    font-size: 13px;
    color: #047857;
    line-height: 1.5;
}
