/* PezaJob — testimonials page (website submissions only) */
:root {
  --tj-bg: #0f1419;
  --tj-surface: #1a222d;
  --tj-card: #243040;
  --tj-border: rgba(209, 207, 10, 0.22);
  --tj-accent: #d1cf0a;
  --tj-accent-soft: rgba(209, 207, 10, 0.12);
  --tj-text: #ecf0f1;
  --tj-muted: #94a3b8;
  --tj-radius: 16px;
  --tj-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --tj-font: "Inter", system-ui, sans-serif;
  --tj-display: "Space Grotesk", var(--tj-font);
}

.tj-page {
  font-family: var(--tj-font);
  color: var(--tj-text);
  background: linear-gradient(165deg, var(--tj-bg) 0%, #1a252f 45%, #15202b 100%);
  min-height: 60vh;
  padding-bottom: 4rem;
}

.tj-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.tj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(209, 207, 10, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(44, 62, 80, 0.5), transparent 50%);
  pointer-events: none;
}

.tj-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.tj-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tj-accent);
  background: var(--tj-accent-soft);
  border: 1px solid var(--tj-border);
  margin-bottom: 1.25rem;
}

.tj-hero h1 {
  font-family: var(--tj-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: #fff;
}

.tj-hero p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--tj-muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.tj-stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--tj-radius);
  background: rgba(36, 48, 64, 0.85);
  border: 1px solid var(--tj-border);
  box-shadow: var(--tj-shadow);
}

.tj-stat-pill strong {
  font-family: var(--tj-display);
  font-size: 1.75rem;
  color: var(--tj-accent);
}

.tj-stat-pill span {
  font-size: 0.95rem;
  color: var(--tj-muted);
}

.tj-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr min(380px, 100%);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.tj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.tj-card {
  background: linear-gradient(145deg, var(--tj-card) 0%, var(--tj-surface) 100%);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius);
  padding: 1.5rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tj-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tj-shadow);
  border-color: rgba(209, 207, 10, 0.45);
}

.tj-quote-icon {
  color: var(--tj-accent);
  font-size: 1.35rem;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.tj-card blockquote {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(236, 240, 241, 0.95);
  flex: 1;
}

.tj-card-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tj-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tj-border);
  flex-shrink: 0;
}

.tj-who h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: #fff;
}

.tj-who p {
  font-size: 0.82rem;
  color: var(--tj-muted);
  margin: 0 0 0.35rem;
}

.tj-stars {
  display: flex;
  gap: 0.15rem;
  color: #f59e0b;
  font-size: 0.8rem;
}

.tj-stars .far {
  color: rgba(245, 158, 11, 0.35);
}

.tj-read {
  margin-top: 0.85rem;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tj-accent);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.tj-read:hover {
  text-decoration: underline;
}

.tj-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--tj-radius);
  border: 1px dashed var(--tj-border);
  background: rgba(36, 48, 64, 0.4);
  color: var(--tj-muted);
}

.tj-empty i {
  font-size: 2.5rem;
  color: var(--tj-accent);
  opacity: 0.6;
  margin-bottom: 1rem;
  display: block;
}

.tj-form-panel {
  position: sticky;
  top: 100px;
  background: linear-gradient(180deg, var(--tj-surface) 0%, #1e2835 100%);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius);
  padding: 1.75rem;
  box-shadow: var(--tj-shadow);
}

.tj-form-panel h2 {
  font-family: var(--tj-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: #fff;
}

.tj-form-panel .tj-sub {
  font-size: 0.88rem;
  color: var(--tj-muted);
  margin-bottom: 1.35rem;
  line-height: 1.5;
}

.tj-field {
  margin-bottom: 1rem;
}

.tj-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tj-muted);
  margin-bottom: 0.4rem;
}

.tj-field input,
.tj-field textarea,
.tj-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 20, 25, 0.6);
  color: var(--tj-text);
  font-size: 0.95rem;
  font-family: inherit;
}

.tj-field input:focus,
.tj-field textarea:focus {
  outline: none;
  border-color: var(--tj-accent);
  box-shadow: 0 0 0 3px var(--tj-accent-soft);
}

.tj-field textarea {
  min-height: 120px;
  resize: vertical;
}

.tj-gender {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--tj-text);
}

.tj-gender label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: none;
  font-weight: 500;
  cursor: pointer;
}

.tj-rating-ui {
  display: flex;
  gap: 0.35rem;
}

.tj-rating-ui button {
  background: none;
  border: none;
  padding: 0.2rem;
  cursor: pointer;
  color: rgba(245, 158, 11, 0.35);
  font-size: 1.35rem;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}

.tj-rating-ui button:hover,
.tj-rating-ui button.is-on {
  color: #f59e0b;
  transform: scale(1.08);
}

.tj-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: var(--tj-accent);
  color: #1a252f;
  font-family: inherit;
  transition: filter 0.2s, transform 0.2s;
}

.tj-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.tj-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tj-pagination a,
.tj-pagination span {
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--tj-muted);
  border: 1px solid transparent;
}

.tj-pagination a:hover {
  color: var(--tj-accent);
  border-color: var(--tj-border);
  background: var(--tj-accent-soft);
}

.tj-pagination .current {
  background: var(--tj-accent-soft);
  color: var(--tj-accent);
  border-color: var(--tj-border);
}

/* Modal */
.tj-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 14, 18, 0.82);
  backdrop-filter: blur(6px);
  padding: 1.5rem;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}

.tj-modal.is-open {
  display: flex;
}

.tj-modal-box {
  position: relative;
  max-width: 560px;
  width: 100%;
  margin: 2rem auto;
  background: var(--tj-surface);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius);
  padding: 2rem;
  box-shadow: var(--tj-shadow);
}

.tj-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--tj-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.tj-modal-close:hover {
  background: rgba(209, 207, 10, 0.2);
  color: var(--tj-accent);
}

@media (max-width: 960px) {
  .tj-layout {
    grid-template-columns: 1fr;
  }

  .tj-form-panel {
    position: static;
  }
}
