/* Write a Review - public review submission form */

.wr-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    margin-bottom: 24px;
}

.wr-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 20px;
}

.wr-section {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e5e7eb;
}

.wr-section:last-of-type {
    border-bottom: none;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.wr-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 18px;
}

.wr-optional {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 20px;
    padding: 3px 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.wr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.wr-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wr-field {
    display: flex;
    flex-direction: column;
}

.wr-label {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.wr-req {
    color: #ef4444;
}

.wr-select,
.wr-input,
.wr-textarea,
.wr-file {
    width: 100%;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wr-textarea {
    resize: vertical;
    line-height: 1.55;
}

.wr-select:focus,
.wr-input:focus,
.wr-textarea:focus,
.wr-file:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.wr-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

/* Star ratings: CSS-only, row-reverse so the sibling selector fills left of the hovered star */
.wr-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f4;
}

.wr-rating-row:last-child {
    border-bottom: none;
}

.wr-rating-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.wr-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 4px;
}

.wr-star-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.wr-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    font-size: 24px;
    line-height: 1;
    color: #d8dae0;
    cursor: pointer;
    margin: 0;
    transition: color 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wr-star:hover,
.wr-star:hover ~ .wr-star,
.wr-star-input:checked ~ .wr-star {
    color: #f59e0b;
}

.wr-star:hover {
    transform: scale(1.12);
}

.wr-star-input:focus-visible + .wr-star {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 4px;
}

.wr-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Honeypot: hidden from humans, visible to naive bots */
.wr-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wr-proof-copy {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
}

.wr-verified-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.wr-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.wr-submit {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wr-submit:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.32);
}

.wr-actions-note {
    font-size: 12px;
    color: #6b7280;
    flex: 1;
    min-width: 200px;
}

/* Post-submission confirmation: replaces the form so it is never a dead end */
.wr-done {
    text-align: center;
}

.wr-done-head {
    padding-bottom: 28px;
    border-bottom: 1px solid #e5e7eb;
}

.wr-done-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 32px;
    margin-bottom: 16px;
}

.wr-done-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.wr-done-sub {
    font-size: 14px;
    color: #555;
    max-width: 520px;
    margin: 0 auto 18px;
    line-height: 1.6;
}

.wr-done-firm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #6366f1;
    text-decoration: none;
    padding: 10px 18px;
    min-height: 44px;
    border-radius: 20px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wr-done-firm:hover {
    color: #4f46e5;
    border-color: #c7d2fe;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.wr-done-next {
    padding-top: 28px;
}

.wr-done-next-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.wr-done-next-copy {
    font-size: 14px;
    color: #555;
    max-width: 560px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.wr-done-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    text-align: left;
}

.wr-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    min-height: 44px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wr-chip:hover {
    border-color: #c7d2fe;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.wr-chip-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
}

.wr-chip-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wr-chip-arrow {
    font-size: 18px;
    color: #6366f1;
    flex-shrink: 0;
}

.wr-done-browse {
    margin: 24px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.wr-done-browse a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
}

.wr-done-browse a:hover {
    text-decoration: underline;
}

.wr-done-browse span {
    margin: 0 8px;
    color: #d1d5db;
}

.wr-error-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    color: #b91c1c;
    font-size: 14px;
}

.wr-error-summary ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.wr-alt-link {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 40px;
}

.wr-alt-link a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .wr-card {
        padding: 20px 16px;
    }

    .wr-grid,
    .wr-grid-2 {
        grid-template-columns: 1fr;
    }

    .wr-rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .wr-star {
        font-size: 28px;
        min-width: 44px;
        min-height: 44px;
    }

    .wr-submit {
        width: 100%;
        padding: 15px 24px;
    }

    .wr-done-chips {
        grid-template-columns: 1fr;
    }

    .wr-done-title {
        font-size: 19px;
    }
}
