/* 
    VINTUSHTECH — TESTIMONIALS SHOWCASE & SUBMISSION PORTAL STYLES
    Editorial Monochrome Design Language: True Black, Pure White, Layered Grays
*/

.feedback-alert-container {
    max-width: 900px;
    margin: 120px auto 0;
    padding: 0 20px;
}

.feedback-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.feedback-alert-success {
    background: #000000;
    color: #ffffff;
    border: 1px solid #18181b;
}

.feedback-alert-error {
    background: #18181b;
    color: #ffffff;
    border: 1px solid #27272a;
}

.close-alert-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.testimonials-hero {
    padding: 140px 20px 60px;
    background: var(--canvas-bg, #ffffff);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonials-hero-content {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted, #71717a);
    background: var(--surface-subtle, #f4f4f5);
    border: 1px solid var(--border-subtle, #e4e4e7);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--text-headline, #000000);
    margin-bottom: 18px;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted, #71717a);
    max-width: 650px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-headline, #000000);
    color: #ffffff;
    padding: 15px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid var(--text-headline, #000000);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: #27272a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-headline, #000000);
    padding: 15px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid var(--border-subtle, #e4e4e7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--surface-subtle, #f4f4f5);
    border-color: var(--border-focus, #000000);
}

/* ==========================================================================
   2. REPUTATION & METRICS STRIP
   ========================================================================== */
.reputation-strip-section {
    padding: 20px 20px 60px;
    background: var(--canvas-bg, #ffffff);
}

.reputation-container {
    max-width: 1200px;
    margin: 0 auto;
}

.reputation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.metric-card {
    background: var(--surface-subtle, #fafafa);
    border: 1px solid var(--border-subtle, #e4e4e7);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: left;
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-focus, #000000);
}

.metric-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-headline, #000000);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.metric-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-headline, #000000);
    margin-bottom: 4px;
}

.metric-desc {
    font-size: 12.5px;
    color: var(--text-muted, #71717a);
    line-height: 1.4;
}

/* ==========================================================================
   3. REVIEWS GRID SECTION — EDITORIAL MONOCHROME & CUT-OFF PROOF
   ========================================================================== */
.reviews-grid-section {
    width: 100%;
    max-width: 100%;
    padding: 70px 0 110px;
    background: var(--surface-subtle, #fafafa);
    border-top: 1px solid var(--border-subtle, #e4e4e7);
    box-sizing: border-box;
    overflow-x: clip;
}

.reviews-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
    padding: 0 12px;
    box-sizing: border-box;
}

.sub-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted, #71717a);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-headline, #000000);
    margin-bottom: 12px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-header p {
    font-size: 15px;
    color: var(--text-muted, #71717a);
    line-height: 1.6;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.review-card {
    background: var(--surface-card, #ffffff);
    border: 1px solid var(--border-subtle, #e4e4e7);
    border-radius: 18px;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
    border-color: var(--border-focus, #000000);
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.reviewer-info-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-monogram {
    width: 100%;
    height: 100%;
    background: #000000;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.reviewer-name {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-headline, #000000);
    margin: 0 0 3px 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.reviewer-role {
    font-size: 12.5px;
    color: var(--text-muted, #71717a);
    margin: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rating-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
    color: #000000;
    font-size: 12.5px;
}

.star-empty {
    color: #d4d4d8;
}

.review-body {
    flex-grow: 1;
    margin-bottom: 18px;
    min-width: 0;
    width: 100%;
}

.review-body p {
    font-size: 14.5px;
    color: var(--text-body, #27272a);
    line-height: 1.7;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.review-project-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #71717a);
    background: var(--surface-subtle, #f4f4f5);
    border: 1px solid var(--border-subtle, #e4e4e7);
    padding: 4px 10px;
    border-radius: 6px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin-bottom: 16px;
}

.review-footer {
    border-top: 1px solid var(--border-subtle, #e4e4e7);
    padding-top: 14px;
    font-size: 12px;
    color: var(--text-muted, #71717a);
}

/* Empty State */
.empty-reviews-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--surface-card, #ffffff);
    border: 1px dashed var(--border-subtle, #e4e4e7);
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 48px;
    color: var(--text-muted, #71717a);
    margin-bottom: 16px;
}

.empty-reviews-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-headline, #000000);
    margin-bottom: 8px;
}

.empty-reviews-state p {
    font-size: 14px;
    color: var(--text-muted, #71717a);
    margin-bottom: 24px;
}

/* ==========================================================================
   4. SUBMISSION MODAL DIALOG
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-dialog {
    background: var(--surface-card, #ffffff);
    border: 1px solid var(--border-subtle, #e4e4e7);
    border-radius: 20px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle, #e4e4e7);
    padding-bottom: 18px;
}

.modal-pill {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted, #71717a);
    margin-bottom: 4px;
    display: block;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-headline, #000000);
    margin: 0;
    letter-spacing: -0.5px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-muted, #71717a);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.modal-close-btn:hover {
    color: var(--text-headline, #000000);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

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

.form-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-headline, #000000);
}

.form-group label .req {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle, #e4e4e7);
    background: var(--surface-card, #ffffff);
    color: var(--text-headline, #000000);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus, #000000);
}

.field-hint {
    font-size: 12px;
    color: var(--text-muted, #71717a);
}

.file-input {
    font-size: 13px;
    color: var(--text-muted, #71717a);
}

/* Star Rating Selector */
.star-rating-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.star-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #d4d4d8;
    cursor: pointer;
    padding: 2px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-btn:hover,
.star-btn.active {
    color: #000000;
    transform: scale(1.1);
}

.rating-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-headline, #000000);
    margin-left: 8px;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
    border-top: 1px solid var(--border-subtle, #e4e4e7);
    padding-top: 20px;
}

.btn-cancel {
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle, #e4e4e7);
    background: transparent;
    color: var(--text-headline, #000000);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid var(--text-headline, #000000);
    background: var(--text-headline, #000000);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-submit:hover {
    background: #27272a;
}

/* ==========================================================================
   5. BOTTOM CTA SECTION
   ========================================================================== */
.testimonials-cta-section {
    padding: 100px 20px;
    background: #ffffff;
    border-top: 1px solid #e4e4e7;
    text-align: center;
    color: #09090b;
}

.cta-container {
    max-width: 650px;
    margin: 0 auto;
}

.testimonials-cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #09090b;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.testimonials-cta-section p {
    font-size: 15.5px;
    color: #52525b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #09090b;
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.btn-cta-primary:hover {
    background: #27272a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES — ADAPTIVE FLUID LAYOUT
   ========================================================================== */
@media (max-width: 1140px) {
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .reputation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 740px) {
    .testimonials-hero {
        padding: 110px 16px 40px;
    }

    .reviews-grid-section {
        padding: 50px 0 80px;
    }

    .reviews-container {
        padding: 0 16px;
    }

    .reviews-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .reputation-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .review-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-dialog {
        padding: 28px 20px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .reviews-container {
        padding: 0 12px;
    }

    .review-card {
        padding: 20px 14px;
    }

    .review-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .verified-pill {
        margin-top: 4px;
    }
}
