/* ==========================================================================
   TERAPİYLE - PSYCHOLOGICAL TESTS SYSTEM STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO & LISTING HEADER
   -------------------------------------------------------------------------- */
.tests-hero-section {
  position: relative;
  padding: 140px 0 0;
  overflow: hidden;
}

.tests-hero-glow-1 {
  position: absolute;
  top: -80px;
  right: -50px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(14, 130, 253, 0.15) 0%,
    rgba(56, 189, 248, 0) 70%
  );
  pointer-events: none;
  filter: blur(40px);
}

.tests-hero-glow-2 {
  position: absolute;
  bottom: 0;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(14, 130, 253, 0) 70%
  );
  pointer-events: none;
  filter: blur(50px);
}

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

.tests-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 130, 253, 0.08);
  border: 1px solid rgba(14, 130, 253, 0.2);
  color: #0e82fd;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.tests-badge-pill i {
  color: #0e82fd;
}

.tests-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.tests-hero-title span {
  background: linear-gradient(135deg, #0e82fd 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tests-hero-desc {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 18px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Trust Stats Bar */
.tests-trust-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.tests-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
}

.tests-trust-item i {
  color: #10b981;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   2. SEARCH & FILTER SECTION
   -------------------------------------------------------------------------- */
.tests-filter-section {
  padding: 40px 0 20px;
  background: #ffffff;
}

.tests-controls-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Search bar */
.tests-search-box {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
}

.tests-search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-size: 1rem;
  font-family: inherit;
  color: #1e293b;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.tests-search-input:focus {
  background: #ffffff;
  border-color: #0e82fd;
  box-shadow: 0 0 0 4px rgba(14, 130, 253, 0.12);
}

.tests-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
  pointer-events: none;
}

/* Category Filter Tabs */
.tests-category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.test-cat-btn {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.test-cat-btn:hover {
  background: #f1f5f9;
  color: #0e82fd;
  border-color: #cbd5e1;
}

.test-cat-btn.active {
  background: #0e82fd;
  color: #ffffff;
  border-color: #0e82fd;
  box-shadow: 0 4px 14px rgba(14, 130, 253, 0.25);
}

/* --------------------------------------------------------------------------
   3. TEST CARDS GRID
   -------------------------------------------------------------------------- */
.tests-grid-section {
  padding: 30px 0 80px;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.test-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.test-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 130, 253, 0.3);
  box-shadow: 0 16px 36px rgba(14, 130, 253, 0.08);
}
.test-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.test-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0e82fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  padding: 8px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.test-card:hover .test-card-icon {
  background: #f0f7ff;
  border-color: rgba(14, 130, 253, 0.25);
  transform: translateY(-2px) scale(1.04);
}

.test-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: all 0.25s ease;
}

.test-card:hover .test-icon-img {
  filter: brightness(0) saturate(100%) invert(39%) sepia(21%) saturate(7484%)
    hue-rotate(196deg) brightness(100%) contrast(99%);
}

.test-intro-icon-wrap {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.test-intro-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(39%) sepia(21%) saturate(7484%)
    hue-rotate(196deg) brightness(100%) contrast(99%);
}

.test-card-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #eff6ff;
  color: #0e82fd;
  letter-spacing: 0.02em;
}

.test-card-badge.badge-popular {
  background: #fef3c7;
  color: #d97706;
}

.test-card-badge.badge-quick {
  background: #dcfce7;
  color: #15803d;
}

.test-card-badge.badge-clinical {
  background: #eef2ff;
  color: #4f46e5;
}

.test-card-badge.badge-couple {
  background: #ffe4e6;
  color: #e11d48;
}

.test-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.test-card:hover .test-card-title {
  color: #0e82fd;
}

.test-card-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.test-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.test-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 5px 10px;
  border-radius: 8px;
}

.test-meta-pill i {
  color: #0e82fd;
}

.test-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #0e82fd;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.test-card-btn i {
  transition: transform 0.2s ease;
}

.test-card-btn:hover {
  background: #0b6bc7;
  color: #ffffff;
}

.test-card-btn:hover i {
  transform: translateX(4px);
}

/* Empty Search State */
.tests-empty-state {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.tests-empty-state i {
  font-size: 3rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   4. HOW IT WORKS & FAQ SECTIONS
   -------------------------------------------------------------------------- */
.tests-how-section {
  padding: 80px 0;
  background: #ffffff;
}

.tests-section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.tests-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
}

.tests-section-sub {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.6;
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.how-step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease;
}

.how-step-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
}

.how-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0e82fd;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(14, 130, 253, 0.3);
}

.how-step-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.how-step-card p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* FAQ */
.tests-faq-section {
  padding: 70px 0 90px;
  background: #f8fafc;
}

.tests-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.faq-header i {
  font-size: 0.9rem;
  color: #64748b;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-header i {
  transform: rotate(180deg);
  color: #0e82fd;
}

.faq-body {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-body {
  display: block;
}

/* --------------------------------------------------------------------------
   5. DETAIL & INTERACTIVE TEST ENGINE STYLES
   -------------------------------------------------------------------------- */
.test-detail-page {
  padding-top: 100px;
  background: #f8fafc;
  min-height: 100vh;
}

.test-breadcrumb-bar {
  padding: 20px 0;
}

.test-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #64748b;
  flex-wrap: wrap;
}

.test-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.test-breadcrumb a:hover {
  color: #0e82fd;
}

.test-breadcrumb span.current {
  color: #0f172a;
  font-weight: 600;
}

/* Test Engine Main Card */
.test-flow-container {
  max-width: 780px;
  margin: 10px auto 80px;
}

.test-main-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
  padding: 44px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .test-main-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
}

/* Step 1: Intro Screen */
.test-intro-screen {
  text-align: center;
}

.test-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(14, 130, 253, 0.08);
  color: #0e82fd;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.test-intro-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 16px;
}

.test-intro-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.test-intro-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 9999px;
}

.test-intro-meta-item i {
  color: #0e82fd;
}

.test-intro-desc {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 28px;
  text-align: left;
}

.test-guideline-box {
  background: #f0f7ff;
  border-left: 4px solid #0e82fd;
  border-radius: 12px;
  padding: 18px 20px;
  text-align: left;
  margin-bottom: 34px;
}

.test-guideline-box h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0e82fd;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.test-guideline-box p {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

.test-start-btn {
  background: #0e82fd;
  color: #ffffff;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 48px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(14, 130, 253, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.test-start-btn:hover {
  background: #0b6bc7;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 130, 253, 0.45);
}

/* Step 2: Interactive Questions Engine */
.test-quiz-screen {
  display: none;
}

.quiz-header {
  margin-bottom: 28px;
}

.quiz-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.quiz-step-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.quiz-step-text span {
  color: #0e82fd;
}

.quiz-percent-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0e82fd;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 9999px;
}

.quiz-progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, #0e82fd 0%, #38bdf8 100%);
  border-radius: 9999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-question-box {
  margin-bottom: 30px;
  position: relative;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.quiz-question-box.is-animating-out-next {
  opacity: 0;
  transform: translateX(-24px);
}

.quiz-question-box.is-animating-out-prev {
  opacity: 0;
  transform: translateX(24px);
}

.quiz-question-box.is-animating-in-next {
  animation: qSlideInRight 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.quiz-question-box.is-animating-in-prev {
  animation: qSlideInLeft 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes qSlideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes qSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.quiz-q-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0e82fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.quiz-q-num.q-badge-pop {
  animation: badgePopAnim 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePopAnim {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); color: #0b6bc7; }
  100% { transform: scale(1); color: #0e82fd; }
}

.quiz-q-text {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .quiz-q-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
}

/* Options List */
.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.quiz-option-item:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  transform: translateX(4px);
}

.quiz-option-item.selected {
  border-color: #0e82fd;
  background: #f0f7ff;
  box-shadow: 0 4px 16px rgba(14, 130, 253, 0.15);
  transform: translateX(4px);
}

.quiz-option-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quiz-option-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.quiz-option-item.selected .quiz-option-radio {
  border-color: #0e82fd;
  background: #0e82fd;
}

.quiz-option-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.quiz-option-item.selected .quiz-option-radio::after {
  opacity: 1;
  transform: scale(1);
}

.quiz-option-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.quiz-option-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 2px;
}

.quiz-option-check {
  color: #0e82fd;
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.quiz-option-item.selected .quiz-option-check {
  opacity: 1;
  transform: scale(1);
  animation: checkPopAnim 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkPopAnim {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Quiz Controls Bar */
.quiz-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.quiz-prev-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.quiz-prev-btn:hover:not(:disabled) {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

.quiz-prev-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quiz-next-btn {
  background: #0e82fd;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(14, 130, 253, 0.25);
}

.quiz-next-btn:hover:not(:disabled) {
  background: #0b6bc7;
  transform: translateY(-1px);
}

.quiz-next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   6. EMAIL GATE SCREEN
   -------------------------------------------------------------------------- */
.test-email-gate-screen {
  display: none;
  text-align: center;
  padding: 10px 0;
  animation: fadeIn 0.4s ease;
}

.gate-badge-ready {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.gate-icon-box {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(14, 130, 253, 0.1);
  color: #0e82fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.gate-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.gate-desc {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 30px;
}

.gate-form-box {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.gate-input-wrapper {
  position: relative;
  margin-bottom: 18px;
}

.gate-input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
}

.gate-email-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-size: 1.05rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.gate-email-input:focus {
  background: #ffffff;
  border-color: #0e82fd;
  box-shadow: 0 0 0 4px rgba(14, 130, 253, 0.15);
}

.gate-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 24px;
  user-select: none;
}

.gate-consent-checkbox {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #0e82fd;
  cursor: pointer;
}

.gate-consent-label a {
  color: #0e82fd;
  text-decoration: underline;
}

.gate-submit-btn {
  width: 100%;
  background: #0e82fd;
  color: #ffffff;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(14, 130, 253, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gate-submit-btn:hover {
  background: #0b6bc7;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 130, 253, 0.4);
}

.gate-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   7. EMAIL SENT CONFIRMATION & EXPERT CONSULTATION SCREEN
   -------------------------------------------------------------------------- */
.test-result-screen {
  display: none;
  animation: fadeIn 0.45s ease;
}

/* When test-result-screen is displayed, hide test-main-card */
.test-flow-container:has(.test-result-screen[style*="display: block"]) .test-main-card {
  display: none !important;
}

/* Sent Hero Card */
.result-sent-card {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.result-sent-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-sent-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e82fd 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(14, 130, 253, 0.3);
}

.result-sent-pulse {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: rgba(14, 130, 253, 0.15);
  animation: sentPulseAnim 2s infinite ease-out;
  z-index: 1;
}

@keyframes sentPulseAnim {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.3; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.result-sent-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 6px 16px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.result-sent-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.result-sent-recipient {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  padding: 8px 18px;
  font-weight: 700;
  color: #0e82fd;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.result-sent-desc {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto;
}

/* Deep Guidance & Therapist Evaluation Card */
.result-guidance-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-left: 5px solid #0e82fd;
  border-radius: 20px;
  padding: 32px 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.guidance-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.guidance-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(14, 130, 253, 0.1);
  color: #0e82fd;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guidance-subtitle {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0e82fd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.guidance-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
}

.guidance-text {
  font-size: 0.97rem;
  color: #334155;
  line-height: 1.68;
  margin-bottom: 12px;
}

.guidance-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
  .guidance-highlights {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.guidance-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.guidance-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: #0e82fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.guidance-item strong {
  display: block;
  font-size: 0.92rem;
  color: #0f172a;
  margin-bottom: 3px;
}

.guidance-item span {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

/* Specialist Match Card */
.result-expert-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border: 1.5px solid rgba(14, 130, 253, 0.25);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(14, 130, 253, 0.08);
}

.result-expert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0e82fd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.result-expert-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 640px) {
  .result-expert-content {
    flex-direction: column;
    text-align: center;
  }
}

.result-expert-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.result-expert-info {
  flex: 1;
}

.result-expert-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.result-expert-role {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 8px;
}

.result-expert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .result-expert-tags {
    justify-content: center;
  }
}

.result-expert-tag {
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(14, 130, 253, 0.1);
  color: #0e82fd;
  padding: 3px 10px;
  border-radius: 6px;
}

.result-expert-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .result-expert-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
}

.btn-expert-book {
  background: #0e82fd;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-expert-book:hover {
  background: #0b6bc7;
  color: #ffffff;
}

.btn-expert-profile {
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  transition: all 0.2s;
}

.btn-expert-profile:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Secondary Actions */
.result-footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.btn-retake-test {
  background: transparent;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-retake-test:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-all-tests {
  background: rgba(14, 130, 253, 0.08);
  border: 1px solid rgba(14, 130, 253, 0.2);
  color: #0e82fd;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-all-tests:hover {
  background: #0e82fd;
  color: #ffffff;
}

/* Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
