/* Review Form Styling */
.review-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 600px;
    padding: 0;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 40px auto;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.review-header {
    display: flex;
    align-items: center;
    padding: 32px 40px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(to right, #ffffff, #fafafa);
}

.review-header-icon {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: #666;
}

.review-header-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.review-header-text p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #666;
}


.review-body {
    padding: 40px;
}

.review-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
}

.review-label .info-icon {
    color: #ccc;
    font-size: 12px;
    margin-left: 4px;
}

.rating-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.star-box {
    width: 18%;
    aspect-ratio: 1;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #ccc;
    font-size: 20px;
}

.star-box:hover {
    border-color: #3B82F6;
    background-color: #eff6ff;
}

.star-box.selected {
    border-color: #3B82F6;
    background-color: #eff6ff;
    color: #3B82F6;
}

.review-field-group {
    margin-bottom: 20px;
}

.review-textarea-wrapper {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.review-textarea-wrapper:focus-within {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.review-textarea {
    width: 100%;
    border: none;
    resize: none;
    font-size: 14px;
    color: #111;
    min-height: 100px;
    outline: none;
    padding: 0;
}

.char-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
}

.char-counter i {
    font-size: 10px;
    margin-left: 4px;
    color: #ccc;
}

.review-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    color: #111;
    outline: none;
    transition: all 0.2s;
}

.review-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.review-footer {
    display: flex;
    gap: 16px;
    padding: 0 40px 40px;
}

.review-message {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 4px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.review-message.processing {
    background: #f3f4f6;
    color: #4b5563;
}

.review-message.success {
    background: #ecfdf5;
    color: #059669;
}

.review-message.error {
    background: #fef2f2;
    color: #dc2626;
}

.review-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-cancel {
    background: #fff;
    border: 1px solid #eee;
    color: #666;
}

.btn-cancel:hover {
    background: #f8f9fa;
}

.btn-submit {
    background: #3B82F6;
    color: #fff;
}

.btn-submit:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-submit:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

/* Success Message State */
.review-success-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-success-overlay.active {
    display: flex;
    opacity: 1;
}

.success-content {
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.review-success-overlay.active .success-content {
    transform: scale(1);
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    background: #ecfdf5;
    color: #10b981;
    border: 2px solid #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
    animation: success-bounce 0.8s ease;
}

@keyframes success-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.success-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.success-text {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 250px;
}

/* Public Reviews List Styles */
.public-reviews-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.public-reviews-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 32px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.public-review-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.public-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.public-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.bg-blue {
    background: #3B82F6;
}

.bg-green {
    background: #10B981;
}

.bg-purple {
    background: #8B5CF6;
}

.bg-orange {
    background: #F59E0B;
}

.bg-teal {
    background: #14B8A6;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
}

.review-date {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.review-stars {
    color: #F59E0B;
    font-size: 12px;
}

.public-review-content {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.public-review-content p {
    margin: 0;
}