
.testimonials-section {
    background: #f9f9f9;
    padding: 60px 0;
    width: 100%;
}

.testimonials-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.testimonials-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.testimonials-subtitle {
    font-size: 1rem;
    color: #777;
}

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

.testimonial-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.testimonial-quote-icon {
    font-size: 3rem;
    line-height: 1;
    color: #e0e0e0;
    font-family: Georgia, serif;
    margin-bottom: 10px;
}

.testimonial-message {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid #efefef;
    padding-top: 16px;
}

.testimonial-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.testimonial-post,
.testimonial-company {
    font-size: 0.8rem;
    color: #999;
}

@media (max-width: 768px) {
    .testimonials-list {
        grid-template-columns: 1fr;
    }

    .testimonials-title {
        font-size: 1.5rem;
    }
}

/* =============================================
   Frontend Submission Form
   ============================================= */

.testimonial-form-wrapper {
    background: #f5f5f5;
    padding: 60px 20px;
    min-height: 100vh;
}

.testimonial-form-container {
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 48px;
}

.testimonial-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.testimonial-form-subtitle {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
}

/* Form Fields */
.form-field {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.required-mark {
    color: #e02b27;
    margin-left: 3px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.9375rem;
    color: #333;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1979c3;
    box-shadow: 0 0 0 3px rgba(25, 121, 195, 0.12);
    background: #fff;
}

.form-input--error {
    border-color: #e02b27 !important;
    box-shadow: 0 0 0 3px rgba(224, 43, 39, 0.1) !important;
}

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

.form-error {
    display: block;
    font-size: 0.8rem;
    color: #e02b27;
    margin-top: 5px;
    min-height: 1em;
}

.form-hint {
    display: block;
    font-size: 0.78rem;
    color: #999;
    margin-top: 5px;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.form-file {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    font-size: 0.875rem;
    color: #666;
    box-sizing: border-box;
}

.form-file:hover {
    border-color: #1979c3;
}

.file-preview {
    position: relative;
    margin-top: 12px;
    display: inline-block;
}

.file-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: block;
}

.file-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e02b27;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    padding: 0;
}

/* Actions */
.form-actions {
    margin-top: 32px;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 13px 40px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-decoration: none;
}

.btn--primary {
    background: #1979c3;
    color: #ffffff;
}

.btn--primary:hover {
    background: #155fa0;
    transform: translateY(-1px);
}

.btn--primary:disabled {
    background: #93bfe0;
    cursor: not-allowed;
    transform: none;
}

/* "Submit a Testimonial" link in homepage block */
.testimonials-submit-link {
    text-align: center;
    margin-top: 32px;
}

.testimonials-submit-link a {
    display: inline-block;
    padding: 11px 30px;
    background: #1979c3;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.testimonials-submit-link a:hover {
    background: #155fa0;
}

@media (max-width: 768px) {
    .testimonial-form-container {
        padding: 28px 18px;
    }

    .testimonial-form-title {
        font-size: 1.4rem;
    }
}
