.testimonial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.testimonial-modal.active {
    opacity: 1;
    visibility: visible;
}

.testimonial-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.testimonial-modal-content {
    position: relative;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.testimonial-modal.active .testimonial-modal-content {
    transform: translateY(0);
}

.testimonial-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.testimonial-modal-close:hover {
    color: #fff;
}

.testimonial-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.testimonial-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.testimonial-icon i {
    font-size: 28px;
    color: #fff;
}

.testimonial-modal-header h2 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 8px;
    font-weight: 600;
}

.testimonial-modal-header p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.testimonial-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 8px 0;
}

.star {
    cursor: pointer;
    font-size: 32px;
    color: #6b7280;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star:hover,
.star.selected {
    color: #fbbf24;
    transform: scale(1.1);
}

.star i {
    transition: all 0.2s ease;
}

.testimonial-form input[type="text"],
.testimonial-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-form input[type="text"]:focus,
.testimonial-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.testimonial-form textarea {
    resize: vertical;
    min-height: 100px;
}

.testimonial-form input::placeholder,
.testimonial-form textarea::placeholder {
    color: #6b7280;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #6b7280;
}

.checkbox-group {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.form-actions button {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #9ca3af;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.testimonial-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    font-size: 40px;
    color: #fff;
}

.testimonial-success h3 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 12px;
}

.testimonial-success p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.6;
}

.testimonial-success .btn-primary {
    width: auto;
    padding: 12px 48px;
}

.testimonial-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: #f87171;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0a0a0f 0%, #111827 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.testimonial-author {
    flex: 1;
}

.testimonial-author-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.testimonial-author-role {
    color: #6b7280;
    font-size: 13px;
    margin: 4px 0 0;
}

.testimonial-rating {
    display: flex;
    gap: 2px;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 14px;
}

.testimonial-content {
    color: #d1d5db;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.testimonials-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.testimonials-section-header h2 {
    color: #fff;
    font-size: 36px;
    margin: 0 0 16px;
}

.testimonials-section-header p {
    color: #9ca3af;
    font-size: 18px;
    margin: 0;
}
