:root {
    --ptp-primary: #6366f1;
    --ptp-primary-hover: #4f46e5;
    --ptp-bg-glass: rgba(255, 255, 255, 0.1);
    --ptp-border-glass: rgba(255, 255, 255, 0.2);
    --ptp-text-main: #1f2937;
    --ptp-text-muted: #6b7280;
    --ptp-star-color: #f59e0b;
    --ptp-card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Glassmorphism Effect */
.glass-effect {
    background: var(--ptp-bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--ptp-border-glass);
    border-radius: 20px;
}

/* Form Styling */
.ptp-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    box-shadow: var(--ptp-card-shadow);
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
}

.ptp-form-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(to right, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ptp-form-group {
    margin-bottom: 20px;
}

.ptp-form-group input, 
.ptp-form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: rgba(255,255,255,0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ptp-form-group input:focus, 
.ptp-form-group textarea:focus {
    outline: none;
    border-color: var(--ptp-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Star Rating Input */
.rating-selection {
    text-align: center;
    margin: 25px 0;
}

.ptp-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
}

.ptp-star {
    color: #d1d5db;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ptp-star:hover,
.ptp-star:hover ~ .ptp-star,
.ptp-star.active,
.ptp-star.active ~ .ptp-star {
    color: var(--ptp-star-color);
    transform: scale(1.1);
}

.ptp-submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(to right, #6366f1, #a855f7);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ptp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

/* Grid Display */
.ptp-testimonial-grid {
    display: grid;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ptp-cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ptp-cols-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

.ptp-card {
    padding: 30px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.ptp-white-bg {
    background: white !important;
    border: 1px solid #f3f4f6 !important;
}

.ptp-has-shadow {
    box-shadow: var(--ptp-card-shadow) !important;
}

.ptp-card:hover {
    transform: translateY(-10px);
}

/* Card Header with Avatar */
.ptp-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.ptp-avatar {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.ptp-avatar-default {
    background: #6b6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ptp-avatar-default svg {
    width: 50px;
    height: 50px;
    margin-top: 6px;
}

.ptp-user-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    color: var(--ptp-text-main);
}

.ptp-user-pos {
    font-size: 0.85rem;
    color: var(--ptp-text-muted);
    margin: 0;
}

.ptp-rating-display {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.ptp-star-icon {
    color: #e5e7eb;
    font-size: 1.2rem;
}

.ptp-star-icon.filled {
    color: var(--ptp-star-color);
}

/* Card Body & Review Text */
.ptp-card-body {
    line-height: 1.6;
    font-size: 0.95rem;
}

.ptp-review-text {
    margin-bottom: 12px;
    color: var(--ptp-text-muted);
}

/* Review Gallery - Small Square Thumbnails */
.ptp-review-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.ptp-review-thumb {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.ptp-review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.ptp-review-thumb:hover img {
    transform: scale(1.1);
}

/* Form Message */
#ptp-form-message {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 8px;
}

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

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