/* ============================================================
   TESTIMONIAL SECTION — all classes prefixed with tr-
   to avoid conflicts with other page styles
   ============================================================ */

.tr-section {
    padding: 100px 0 80px;
    background: var(--color-white, #fff);
    overflow: hidden;
}

.tr-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---------- Section Header ---------- */
.tr-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 20px;
    flex-wrap: nowrap;
}

.tr-header-left { flex: 1; min-width: 0; }

.tr-section-label {
    font-family: var(--heading-font, sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3.5px;
    color: var(--color-accent, #b45309);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tr-section-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--color-accent, #b45309);
}

.tr-section-heading {
    font-family: var(--heading-font, sans-serif);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--color-primary, #111);
    line-height: 1.1;
}

/* ---------- Write a Review Button ---------- */
.tr-write-btn {
    flex-shrink: 0;
    font-family: var(--heading-font, sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary, #111);
    background: transparent;
    border: 1.5px solid var(--color-primary, #111);
    padding: 14px 28px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tr-write-btn:hover {
    background: var(--color-primary, #111);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.tr-write-btn svg { transition: transform 0.2s; }
.tr-write-btn:hover svg { transform: translateX(3px); }

/* ---------- No Reviews ---------- */
.tr-no-reviews {
    text-align: center;
    padding: 80px 20px;
    border: 1px dashed var(--color-border, #e5e7eb);
}

.tr-no-reviews h3 {
    font-family: var(--heading-font, sans-serif);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-primary, #111);
    margin-bottom: 10px;
}

.tr-no-reviews p {
    font-size: 14px;
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 28px;
}

/* ---------- Slider ---------- */
.tr-slider-wrapper { position: relative; }

.tr-slider-outer {
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.tr-slider-outer:active { cursor: grabbing; }

.tr-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ---------- Single card: centered, max-width ---------- */
.tr-slider-track.tr-single-card {
    justify-content: center;
    cursor: default;
}

.tr-slider-track.tr-single-card .tr-card {
    flex: 0 0 min(560px, 100%);
    max-width: 560px;
}

/* ---------- Card ---------- */
.tr-card {
    flex: 0 0 calc((100% - 48px) / 3);
    background: var(--color-white, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    padding: 36px 32px 30px;
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.tr-card:hover {
    box-shadow: 0 20px 48px rgba(0,0,0,0.10);
    transform: translateY(-6px);
    border-color: transparent;
}

.tr-quote {
    font-family: Georgia, serif;
    font-size: 72px;
    line-height: 0.6;
    color: var(--color-border, #e5e7eb);
    margin-bottom: 20px;
    display: block;
    transition: color 0.25s;
}

.tr-card:hover .tr-quote { color: var(--color-accent, #b45309); opacity: 0.3; }

.tr-card-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.tr-star { font-size: 16px; }
.tr-star-filled { color: #f5b800; }
.tr-star-empty  { color: #d1d5db; }

.tr-review-text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-text-light, #374151);
    margin-bottom: 28px;
    font-weight: 400;
}

.tr-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1px solid var(--color-border-extralight, #f3f4f6);
}

.tr-card-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tr-author-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border, #e5e7eb);
    flex-shrink: 0;
    transition: border-color 0.25s;
}

.tr-card:hover .tr-author-photo { border-color: var(--color-accent, #b45309); }

.tr-author-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font, sans-serif);
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    border: 2px solid var(--color-border, #e5e7eb);
    flex-shrink: 0;
    transition: border-color 0.25s;
}

.tr-card:hover .tr-author-placeholder { border-color: var(--color-accent, #b45309); }

.tr-author-info { line-height: 1; }

.tr-author-name {
    font-family: var(--heading-font, sans-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-primary, #111);
    margin-bottom: 5px;
}

.tr-author-role {
    font-size: 12px;
    color: var(--color-text-muted, #6b7280);
    font-weight: 400;
}

.tr-verified-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    text-transform: uppercase;
    font-family: var(--heading-font, sans-serif);
    white-space: nowrap;
}

/* ---------- Slider Controls ---------- */
.tr-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 44px;
}

.tr-arrow {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--color-border, #e5e7eb);
    background: var(--color-white, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
    color: var(--color-primary, #111);
}

.tr-arrow:hover:not(:disabled) {
    background: var(--color-primary, #111);
    border-color: var(--color-primary, #111);
    color: #fff;
}

.tr-arrow:hover:not(:disabled) svg path { stroke: #fff; }
.tr-arrow:disabled { opacity: 0.3; cursor: default; }

.tr-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tr-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-border, #e5e7eb);
    border: none;
    cursor: pointer;
    transition: width 0.25s, background 0.25s, border-radius 0.25s;
    padding: 0;
}

.tr-dot.tr-dot-active {
    width: 24px;
    border-radius: 3px;
    background: var(--color-primary, #111);
}

/* ============================================================
   MODALS
   ============================================================ */
.tr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.tr-modal-overlay.tr-open {
    opacity: 1;
    visibility: visible;
}

.tr-modal {
    background: var(--color-white, #fff);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tr-modal-overlay.tr-open .tr-modal {
    transform: translateY(0) scale(1);
}

.tr-modal-header {
    padding: 36px 40px 0;
    position: sticky;
    top: 0;
    background: var(--color-white, #fff);
    z-index: 2;
}

.tr-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--color-bg-light, #f9fafb);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: var(--color-primary, #111);
}

.tr-modal-close:hover { background: var(--color-primary, #111); color: #fff; }
.tr-modal-close:hover svg path { stroke: #fff; }

.tr-modal-label {
    font-family: var(--heading-font, sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-accent, #b45309);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tr-modal-title {
    font-family: var(--heading-font, sans-serif);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-primary, #111);
    margin-bottom: 4px;
}

.tr-modal-subtitle {
    font-size: 14px;
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border-extralight, #f3f4f6);
}

.tr-modal-body { padding: 24px 40px 40px; }

/* ---------- Form ---------- */
.tr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tr-form-group { margin-bottom: 20px; }
.tr-form-group.tr-full { grid-column: 1 / -1; }

.tr-form-label {
    display: block;
    font-family: var(--heading-font, sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-light, #374151);
    margin-bottom: 8px;
}

.tr-form-input,
.tr-form-textarea {
    width: 100%;
    font-family: var(--body-font, sans-serif);
    font-size: 14px;
    color: var(--color-primary, #111);
    background: var(--color-bg-light, #f9fafb);
    border: 1.5px solid transparent;
    padding: 13px 16px;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
    -webkit-appearance: none;
}

.tr-form-input:focus,
.tr-form-textarea:focus {
    background: #fff;
    border-color: var(--color-primary, #111);
}

.tr-form-input::placeholder,
.tr-form-textarea::placeholder { color: var(--color-text-muted, #6b7280); }

.tr-form-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

/* ---------- Photo Upload ---------- */
.tr-photo-area {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--color-bg-light, #f9fafb);
    border: 1.5px dashed var(--color-border, #e5e7eb);
    cursor: pointer;
    transition: border-color 0.2s;
}

.tr-photo-area:hover { border-color: var(--color-primary, #111); }

.tr-photo-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-border, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--color-border, #e5e7eb);
}

.tr-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: none; }

.tr-photo-title {
    font-family: var(--heading-font, sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary, #111);
    margin-bottom: 3px;
}

.tr-photo-hint { font-size: 12px; color: var(--color-accent, #b45309); font-weight: 500; }

/* ---------- Star Rating ---------- */
.tr-star-label {
    font-family: var(--heading-font, sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-light, #374151);
    margin-bottom: 10px;
    display: block;
}

.tr-star-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tr-star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 28px;
    color: var(--color-border, #e5e7eb);
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
}

.tr-star-btn.tr-star-active,
.tr-star-btn.tr-star-hover { color: #f5b800; transform: scale(1.15); }
.tr-star-btn:hover { transform: scale(1.2); }

.tr-rating-text {
    margin-left: 8px;
    font-size: 13px;
    color: var(--color-text-muted, #6b7280);
    min-width: 80px;
}

/* ---------- Submit Button ---------- */
.tr-submit-btn {
    width: 100%;
    font-family: var(--heading-font, sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-primary, #111);
    border: none;
    padding: 18px;
    cursor: pointer;
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tr-submit-btn:hover:not(:disabled) {
    background: var(--color-accent, #b45309);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.tr-submit-btn:active:not(:disabled) { transform: translateY(0); }
.tr-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* ---------- OTP Modal ---------- */
.tr-otp-modal { max-width: 480px; }

.tr-otp-icon {
    width: 72px;
    height: 72px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.tr-otp-steps { margin-bottom: 24px; }

.tr-otp-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-extralight, #f3f4f6);
}

.tr-otp-step:last-child { border-bottom: none; }

.tr-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-bg-light, #f9fafb);
    border: 1.5px solid var(--color-border, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font, sans-serif);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted, #6b7280);
    flex-shrink: 0;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.tr-step-num.tr-step-active { background: var(--color-primary, #111); border-color: var(--color-primary, #111); color: #fff; }
.tr-step-num.tr-step-done   { background: #16a34a; border-color: #16a34a; color: #fff; }

.tr-step-info { flex: 1; }
.tr-step-title { font-family: var(--heading-font, sans-serif); font-size: 13px; font-weight: 600; color: var(--color-primary, #111); margin-bottom: 2px; }
.tr-step-desc  { font-size: 12px; color: var(--color-text-muted, #6b7280); }

.tr-send-otp-btn {
    font-family: var(--heading-font, sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-primary, #111);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.25s;
    white-space: nowrap;
}

.tr-send-otp-btn:hover:not(:disabled) { background: var(--color-accent, #b45309); }
.tr-send-otp-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.tr-otp-boxes-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.tr-otp-box {
    width: 52px;
    height: 56px;
    font-family: var(--heading-font, sans-serif);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: var(--color-primary, #111);
    background: var(--color-bg-light, #f9fafb);
    border: 1.5px solid var(--color-border, #e5e7eb);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
}

.tr-otp-box:focus { border-color: var(--color-primary, #111); background: #fff; }

.tr-otp-resend {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted, #6b7280);
    margin-top: 8px;
}

.tr-resend-link {
    color: var(--color-accent, #b45309);
    cursor: pointer;
    font-weight: 600;
}

.tr-resend-link:hover { text-decoration: underline; }

/* ---------- Success State ---------- */
.tr-success-state {
    text-align: center;
    padding: 20px 0 10px;
    display: none;
}

.tr-success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.tr-checkmark-circle {
    stroke: #16a34a;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: tr-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
}

.tr-checkmark-check {
    stroke: #16a34a;
    stroke-width: 2.5;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: tr-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.65s forwards;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes tr-stroke { 100% { stroke-dashoffset: 0; } }

.tr-success-title {
    font-family: var(--heading-font, sans-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary, #111);
    margin-bottom: 8px;
}

.tr-success-msg { font-size: 14px; color: var(--color-text-muted, #6b7280); line-height: 1.6; margin-bottom: 28px; }

.tr-success-close-btn {
    font-family: var(--heading-font, sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-primary, #111);
    border: none;
    padding: 16px 40px;
    cursor: pointer;
    transition: background 0.25s;
}

.tr-success-close-btn:hover { background: var(--color-accent, #b45309); }

/* ---------- Toast ---------- */
.tr-toast-container {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.tr-toast {
    font-family: var(--heading-font, sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    background: var(--color-primary, #111);
    padding: 14px 24px;
    border-left: 3px solid var(--color-accent, #b45309);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
    pointer-events: none;
}

.tr-toast.tr-toast-visible { opacity: 1; transform: translateY(0); }

/* ---------- Scrollbar ---------- */
.tr-modal::-webkit-scrollbar { width: 4px; }
.tr-modal::-webkit-scrollbar-track { background: var(--color-bg-light, #f9fafb); }
.tr-modal::-webkit-scrollbar-thumb { background: var(--color-border, #e5e7eb); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .tr-card { flex: 0 0 calc((100% - 24px) / 2); }
    .tr-slider-track.tr-single-card .tr-card { flex: 0 0 min(560px, 100%); }
}

@media (max-width: 767px) {
    .tr-section { padding: 70px 0 60px; }
    .tr-container { padding: 0 20px; }
    .tr-section-header { margin-bottom: 40px; gap: 16px; }
    .tr-section-heading { font-size: 20px; letter-spacing: -0.5px; }
    .tr-write-btn { padding: 10px 14px; font-size: 10px; letter-spacing: 1px; gap: 5px; }
    .tr-write-btn svg { width: 11px; height: 11px; }
    .tr-card { flex: 0 0 100%; }
    .tr-slider-track.tr-single-card .tr-card { flex: 0 0 100%; max-width: 100%; }
    .tr-form-row { grid-template-columns: 1fr; }
    .tr-modal-header { padding: 28px 24px 0; }
    .tr-modal-body { padding: 20px 24px 32px; }
    .tr-otp-boxes-row { gap: 8px; }
    .tr-otp-box { width: 44px; height: 50px; font-size: 20px; }
    .tr-toast { white-space: normal; text-align: center; max-width: calc(100vw - 40px); }
}