/* ============================================================
   CLEVER DATA - VOICE ONBOARDING PAGE
   Version: 9
   Fix: voice-screen max-width capped so cards align with
        the visual edges of logo and "Book A Live Demo" button
   ============================================================ */


/* ------------------------------------------------------------
   MAIN LAYOUT
   ------------------------------------------------------------ */

.voice-main {
  padding: 60px 0 80px;
}

.voice-screen {
  max-width: 1080px;       /* CHANGED from 100% to 1080px */
  margin: 0 auto;
  text-align: center;
}

.voice-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.voice-subtitle {
  font-size: 17px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}


/* ------------------------------------------------------------
   PROGRESS BAR
   ------------------------------------------------------------ */

.progress-wrap {
  margin: 0 auto 30px;
  max-width: 100%;
}

.progress-text {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.progress-bar {
  background: #eee;
  height: 6px;
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  background: #e30613;
  height: 100%;
  border-radius: 100px;
  transition: width 0.3s;
  width: 10%;
}


/* ------------------------------------------------------------
   QUESTION CARD
   ------------------------------------------------------------ */

.question-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 44px 56px;
  margin: 0 auto 30px;
  text-align: left;
  max-width: 100%;
}

.question-text {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 32px;
  text-align: center;
}


/* ------------------------------------------------------------
   MIC / STATUS INDICATOR
   ------------------------------------------------------------ */

.voice-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  margin-bottom: 20px;
  background: #fafafa;
  border-radius: 12px;
}

.mic-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
}

.mic-indicator.listening {
  background: #0a7a3f;
  animation: pulse 1.5s infinite;
}

.mic-indicator.speaking {
  background: #e30613;
  animation: pulse 0.8s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

.status-text {
  color: #555;
  font-size: 15px;
  margin: 0;
}


/* ------------------------------------------------------------
   "HEARD" TRANSCRIPT BOX
   ------------------------------------------------------------ */

.heard-box {
  background: #fff5f5;
  border: 1px solid #ffd6d9;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.heard-label {
  font-size: 11px;
  font-weight: 700;
  color: #e30613;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.heard-text {
  color: #222;
  font-size: 15px;
}


/* ------------------------------------------------------------
   ANSWER INPUT & NAV BUTTONS
   ------------------------------------------------------------ */

.answer-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e4e4e4;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
  box-sizing: border-box;
  margin-bottom: 16px;
}

.answer-input:focus {
  outline: none;
  border-color: #e30613;
}

.nav-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ------------------------------------------------------------
   PROFILE PROGRESS PANEL
   ------------------------------------------------------------ */

.profile-panel {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 32px 40px;
  margin: 0 auto 20px;
  text-align: left;
  max-width: 100%;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.profile-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #666;
}

.profile-count {
  font-size: 14px;
  font-weight: 700;
  color: #e30613;
}

.profile-bar {
  background: #f0f0f0;
  height: 4px;
  border-radius: 100px;
  margin-bottom: 20px;
  overflow: hidden;
}

.profile-bar-fill {
  background: #0a7a3f;
  height: 100%;
  border-radius: 100px;
  transition: width 0.3s;
  width: 0%;
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-list li {
  padding: 14px 0;
  border-bottom: 1px solid #f3f3f3;
}

.profile-list li:last-child {
  border-bottom: none;
}

.profile-list li.active {
  background: #fff5f5;
  margin: 0 -8px;
  padding: 14px 8px;
  border-radius: 6px;
  border-bottom-color: transparent;
}

.profile-list li.done .profile-label {
  color: #0a7a3f;
}

.profile-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #888;
  margin-bottom: 4px;
}

.profile-value {
  font-size: 14px;
  color: #222;
  line-height: 1.4;
}

.profile-value.empty {
  color: #bbb;
  font-style: italic;
}


/* ------------------------------------------------------------
   REVIEW SCREEN
   ------------------------------------------------------------ */

.review-list {
  text-align: left;
  max-width: 100%;
  margin: 0 auto 30px;
}

.review-item {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 22px 28px;
  margin-bottom: 14px;
}

.review-q {
  font-size: 13px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.review-a {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e4e4e4;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  min-height: 50px;
  resize: vertical;
  box-sizing: border-box;
}

.review-a:focus {
  outline: none;
  border-color: #e30613;
}

.review-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ------------------------------------------------------------
   LOADER (finding audience screen)
   ------------------------------------------------------------ */

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid #eee;
  border-top-color: #e30613;
  border-radius: 50%;
  margin: 0 auto 30px;
  animation: spin 0.8s linear infinite;
}

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


/* ============================================================
   RESPONSIVE - TABLET (up to 1023px)
   ============================================================ */

@media (max-width: 1023px) {

  .voice-main {
    padding: 40px 0 60px;
  }

  .voice-screen {
    max-width: 100%;        /* full width on tablet */
  }

  .voice-title {
    font-size: 30px;
  }

  .question-card {
    padding: 36px 32px;
  }

  .question-text {
    font-size: 24px;
  }

  .profile-panel {
    padding: 26px 28px;
  }

}


/* ============================================================
   RESPONSIVE - MOBILE (up to 699px)
   ============================================================ */

@media (max-width: 699px) {

  .voice-main {
    padding: 20px 0 40px;
  }

  .voice-title {
    font-size: 24px;
    letter-spacing: -0.3px;
  }

  .voice-subtitle {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .question-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .question-text {
    font-size: 19px;
    line-height: 1.35;
  }

  .voice-status {
    padding: 14px;
    gap: 10px;
  }

  .status-text {
    font-size: 14px;
  }

  .answer-input {
    font-size: 16px;  /* prevents iOS zoom-on-focus */
  }

  .nav-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .nav-buttons button {
    width: 100%;
  }

  .profile-panel {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .review-item {
    padding: 16px 18px;
  }

  .review-actions {
    flex-direction: column;
    gap: 10px;
  }

  .review-actions button {
    width: 100%;
  }

}
