/**
 * Testimonials Page & Submission Form Styles
 * Aishu Engineer Theme
 */

/* ==========================================================================
   Section Wrapper & Headers
   ========================================================================== */
.testimonials-section {
    padding: 70px 0 90px 0;
    background-color: #faf9f6;
}

.testimonials-intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px auto;
}

.testimonials-intro .section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(208, 167, 101, 0.12);
    color: #b88d4c;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.testimonials-intro h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.testimonials-intro p {
    font-size: 16px;
    color: #666666;
    line-height: 1.7;
    margin: 0;
}

.testimonial-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.testimonials-count-info {
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

.testimonials-count-info strong {
    color: #b88d4c;
    font-size: 20px;
}

.btn-add-testimonial {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #d0a765;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(208, 167, 101, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-add-testimonial:hover {
    background: #b88d4c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208, 167, 101, 0.4);
    color: #ffffff !important;
}

/* ==========================================================================
   Masonry Grid Layout
   ========================================================================== */
.testimonials-masonry-wrapper {
    width: 100%;
    margin-bottom: 40px;
}

.testimonials-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
    width: 100%;
}

@media (max-width: 991px) {
    .testimonials-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 650px) {
    .testimonials-masonry {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Testimonial Card */
.testimonial-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #ebecee;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
    padding: 30px 28px;
    position: relative;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(208, 167, 101, 0.16);
    border-color: #d0a765;
}

.testimonial-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.testimonial-card__stars {
    display: flex;
    gap: 3px;
}

.testimonial-card__stars i {
    font-size: 16px;
    color: #d0a765;
}

.testimonial-card__stars i.empty {
    color: #e0e0e0;
}

.testimonial-card__quote-icon {
    font-size: 26px;
    color: rgba(208, 167, 101, 0.25);
    line-height: 1;
}

.testimonial-card__content {
    font-size: 15px;
    line-height: 1.75;
    color: #4a4a4a;
    margin-bottom: 22px;
    word-break: break-word;
    font-style: italic;
}

.testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #f2f2f2;
}

.testimonial-card__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d0a765, #b88d4c);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(208, 167, 101, 0.3);
    text-transform: uppercase;
}

.testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-card__meta {
    flex-grow: 1;
    overflow: hidden;
}

.testimonial-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 3px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-card__date {
    font-size: 13px;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.testimonial-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #28a745;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}

/* Empty State */
.testimonials-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed #d6d6d6;
    margin: 30px 0;
}

.testimonials-empty i {
    font-size: 50px;
    color: #fff;
    margin-bottom: 20px;
    display: block;
}

.testimonials-empty h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.testimonials-empty p {
    color: #777;
    font-size: 15px;
    margin-bottom: 25px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.testimonials-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 8px;
}

.testimonials-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonials-pagination li {
    margin: 0;
}

.testimonials-pagination a,
.testimonials-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid #dadada;
    background: #ffffff;
    color: #333333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.testimonials-pagination a:hover {
    background: #d0a765;
    border-color: #d0a765;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.testimonials-pagination .current {
    background: #d0a765;
    border-color: #d0a765;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(208, 167, 101, 0.3);
}

/* ==========================================================================
   Submission Form Section
   ========================================================================== */
.testimonial-form-section {
    padding: 80px 0;
    background: #ffffff;
    border-top: 1px solid #ebebeb;
}

.testimonial-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 50px 45px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #eaeaea;
    position: relative;
    overflow: hidden;
}

.testimonial-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d0a765, #e4c28c, #b88d4c);
}

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

.testimonial-form-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.testimonial-form-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.testimonial-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

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

    .testimonial-form-wrapper {
        padding: 35px 25px;
    }
}

.form-group-full {
    grid-column: 1 / -1;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #dc3545;
    margin-left: 3px;
}

.form-control-custom {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    color: #333;
    background: #fdfdfd;
    border: 1px solid #dadada;
    border-radius: 6px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-control-custom:focus {
    border-color: #d0a765;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(208, 167, 101, 0.2);
}

textarea.form-control-custom {
    resize: vertical;
    min-height: 120px;
}

/* Interactive Star Rating Selector */
.rating-picker-wrapper {
    background: #fbfbfb;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-stars-interactive {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
}

.rating-stars-interactive input[type="radio"] {
    display: none;
}

.rating-stars-interactive label {
    cursor: pointer;
    font-size: 28px;
    color: #e0e0e0;
    margin: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.rating-stars-interactive label:hover,
.rating-stars-interactive label:hover~label,
.rating-stars-interactive input[type="radio"]:checked~label {
    color: #d0a765;
}

.rating-stars-interactive label:hover {
    transform: scale(1.15);
}

.rating-status-text {
    font-size: 14px;
    font-weight: 600;
    color: #b88d4c;
    min-width: 120px;
}

/* Honeypot hidden field */
.website-hp-field {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Submit Button & Spinner */
.form-submit-row {
    text-align: center;
    margin-top: 15px;
}

.btn-submit-testimonial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #d0a765;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 45px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(208, 167, 101, 0.35);
    transition: all 0.3s ease;
    min-width: 220px;
}

.btn-submit-testimonial:hover:not(:disabled) {
    background: #b88d4c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208, 167, 101, 0.45);
}

.btn-submit-testimonial:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alert Notification Boxes */
.testimonial-alert {
    display: none;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.5;
    animation: fadeIn 0.4s ease;
}

.testimonial-alert.show {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-alert.alert-success {
    background: #e8f8f0;
    border: 1px solid #b7ebcf;
    color: #155724;
}

.testimonial-alert.alert-danger {
    background: #fdf0f0;
    border: 1px solid #f8c9c9;
    color: #721c24;
}

.testimonial-alert i {
    font-size: 20px;
    flex-shrink: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Security Verification Captcha Styles
   ========================================================================== */
.captcha-box-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #fdfcf9;
    padding: 12px 16px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
}

.captcha-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #dcd7cc;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
}

.captcha-badge i {
    color: #d0a765;
    font-size: 16px;
}

.captcha-badge strong {
    color: #b88d4c;
    font-size: 17px;
    letter-spacing: 1px;
}

.captcha-input {
    max-width: 140px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 14px;
}

.btn-refresh-captcha {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid #dadada;
    background: #ffffff;
    color: #666666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-refresh-captcha:hover {
    border-color: #d0a765;
    color: #d0a765;
    background: #fffcf7;
}

.btn-refresh-captcha i.fa-spin {
    animation: spin 0.8s linear infinite;
}

.captcha-hint {
    display: block;
    font-size: 13px;
    color: #888888;
    margin-top: 7px;
}

/* Contact Form 7 Captcha Quiz Styling */
.cf7-captcha-container {
    margin-top: 10px;
    margin-bottom: 20px;
}

.cf7-captcha-box {
    background: #fdfcf9;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cf7-captcha-box .wpcf7-quiz-label {
    font-size: 15px;
    font-weight: 700;
    color: #333333;
}

.cf7-captcha-box input.wpcf7-quiz {
    max-width: 140px;
    padding: 10px 14px;
    border: 1px solid #dadada;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    display: inline-block;
    background: #ffffff;
    color: #333333;
    outline: none;
    transition: border-color 0.3s ease;
}

.cf7-captcha-box input.wpcf7-quiz:focus {
    border-color: #d0a765;
    box-shadow: 0 0 0 3px rgba(208, 167, 101, 0.2);
}