/* =========================
   ROOT VARIABLES
========================= */
:root {
  --primary: #3bbfad;
  --primary-soft: #e6f6f3;
  --text-main: #1f2937;
  --text-soft: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff; /* Keep for general component styling if needed, but not for form background */
}

/* =========================
   BASE & CONTAINER
========================= */
main {
   background: radial-gradient(circle at top, #1b1b1b, #000);
}


#youmind-form {
  width: 680px;
  margin: 40px auto;
  padding: 0; /* Handled by inner containers now */
  background: transparent; /* Make form transparent */
  border-radius: 14px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff; /* Default text color for the whole form on dark background */
  box-shadow: none; /* No shadow for the form container */
}

/* Styles for the form *after* the welcome screen - now also transparent */
#youmind-form.step-view {
    padding: 32px;
    border-radius: 16px;

    /* Glassmorphism background */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    /* Depth & separation */
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    /* Text */
    color: #eaeaea;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, sans-serif;

    /* Smooth UI feel */
    transition: all 0.25s ease;
}

.youmind-guidance{ 
    padding: 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #eaeaea;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.25s ease;
    font-size: 15px;
    line-height: 1.6;
}

/* =========================
   WELCOME SCREEN
========================= */
.youmind-welcome-screen {
	max-width: 520px;
	margin: 0 auto;
    width: 100%;
    text-align: center;
    padding: 24px;
}

.youmind-welcome-screen h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.youmind-welcome-screen .subtitle {
    color: #b5b5b5;
    font-size: 16px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.youmind-welcome-screen .card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.youmind-welcome-screen .icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    background: rgba(128, 255, 240, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7fffe9;
    font-size: 22px;
}

.youmind-welcome-screen .card h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #fff;
}

.youmind-welcome-screen .card p {
    font-size: 14px;
    color: #bfbfbf;
    margin-bottom: 24px;
}

#youmind-form .youmind-welcome-screen input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 15px;
    background: #f1f7ff;
    margin-bottom: 20px;
    color: #000;
}

#youmind-form .youmind-welcome-screen button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #003b36;
    background: linear-gradient(135deg, #7fffe9, #6cf3df);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#youmind-form .youmind-welcome-screen button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(127, 255, 233, 0.35);
}


/* =========================
   GENERAL HEADINGS (FOR STEPS AFTER WELCOME)
========================= */
#youmind-form.step-view h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #fff; /* Ensure visibility on dark background */
}

#youmind-form.step-view p {
  font-size: 15px;
  color: #bfbfbf; /* Ensure visibility on dark background */
  line-height: 1.6;
  margin-bottom: 4px;
}

/* =========================
   GENERAL INPUTS (FOR STEPS AFTER WELCOME)
========================= */
#youmind-form.step-view input[type="email"], /* Added for consistency, though email is only on welcome */
#youmind-form.step-view input[type="file"] {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Lighter border for dark bg */
  font-size: 15px;
  margin-bottom: 18px;
  transition: border 0.2s, box-shadow 0.2s;
  background: rgba(255, 255, 255, 0.06); /* Slightly visible input */
  color: #fff; /* White text for input */
}

#youmind-form.step-view input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,191,173,0.15);
}

/* =========================
   GENERAL BUTTONS (FOR STEPS AFTER WELCOME)
========================= */
#youmind-form.step-view button {
  margin-bottom:16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: white;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  margin-top: 10px;
  width: 100%;
}

#youmind-form.step-view button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59,191,173,0.35);
}

#youmind-form.step-view button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Secondary button (record / stop) */
#youmind-form.step-view button#record {
  background: rgba(128, 255, 240, 0.15);
  color: #7fffe9;
}

#youmind-form.step-view button#record:hover {
    background: rgba(128, 255, 240, 0.25);
    box-shadow: none;
    transform: none;
}

#youmind-form.step-view button#record.recording {
    background-color: #ef4444; /* Red for recording */
    color: #fff;
    animation: youmind-pulse 1.5s infinite;
}


#youmind-form.step-view button#stop {
  background: #111827;
}

/* =========================
   STATUS TEXT
========================= */
#youmind-form.step-view #youmind-status,
#youmind-form.step-view #status {
  font-size: 14px;
  color: #bfbfbf; /* Ensure visibility on dark background */
  margin-bottom: 20px;
  margin-top: -10px;
}

/* =========================
   AUDIO PLAYER
========================= */
.rec-bold{
	font-weight: 700;
	padding-top: 18px;
}
#youmind-form.step-view audio {
  width: 100%;
  margin-top: 16px;
  border-radius: 10px;
  background: #2d3748; /* Darker background for audio player */
}

/* =========================
   PROGRESS BAR - NEW DESIGN
========================= */
.youmind-progress-bar {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  position: relative;
}

.youmind-progress-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 2px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.2); /* Lighter border for dark bg */
  z-index: 1;
}

.youmind-progress-bar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 2px;
  width: 0;
  background-color: var(--primary);
  z-index: 2;
  transition: width 0.4s ease;
}

.youmind-progress-step {
  position: relative;
  z-index: 3;
  text-align: center;
}

.youmind-progress-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(128, 255, 240, 0.15); /* Light background for numbers */
  color: #fff; /* White text for numbers */
  border: 2px solid rgba(255, 255, 255, 0.2); /* Lighter border */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.youmind-progress-step-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #bfbfbf; /* Light text for labels */
  width: 100px;
}

/* Active State */
.youmind-progress-step.active .youmind-progress-step-number {
  background-color: var(--primary-soft); /* Original soft primary */
  border-color: var(--primary);
  color: var(--primary);
}

.youmind-progress-step.active .youmind-progress-step-label {
  font-weight: 600;
  color: #fff; /* White text for active label */
}

/* Completed State */
.youmind-progress-step.completed .youmind-progress-step-number {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* =========================
   INPUT CHOICES
========================= */
.youmind-input-choices {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

#youmind-form.step-view .youmind-input-choices button {
  flex: 1;
  background-color: rgba(128, 255, 240, 0.15);
  color: #7fffe9;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
}

#youmind-form.step-view .youmind-input-choices button:hover {
  background-color: rgba(128, 255, 240, 0.25);
  box-shadow: none;
  transform: none;
}

#youmind-form.step-view .youmind-input-choices button.active {
  background-color: var(--primary);
  color: #fff;
}

#youmind-form.step-view #record.recording {
    background-color: #ef4444; /* Red for recording */
    color: #fff;
    animation: youmind-pulse 1.5s infinite;
}

@keyframes youmind-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.youmind-input-area {
  padding: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.2); /* Lighter border for dark bg */
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
}

#youmind-form.step-view #audio-player-container {
    margin-top: 15px;
}

/* =========================
   UPLOAD PROGRESS BAR
========================= */
.youmind-upload-progress {
  width: 100%;
  height: 4px;
  background-color: rgba(128, 255, 240, 0.15); /* Soft background */
  border-radius: 4px;
  margin-top: 15px;
  display: none; /* Hidden by default */
}

.youmind-upload-progress-bar {
  width: 0;
  height: 100%;
  background-color: var(--primary);
  border-radius: 4px;
  transition: width 0.2s ease-out;
}

/* =========================
   BUTTON SPINNER
========================= */
.youmind-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: youmind-spin 1s linear infinite;
}

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

#youmind-form.step-view button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* =========================
   THANK YOU SCREEN
========================= */
#youmind-form h2.thank-you-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 12px;
  color: #fff; /* Ensure visibility on dark background */
}

#youmind-form h2.thank-you-title::after {
  content: "🌿";
  display: block;
  font-size: 32px;
  margin-top: 8px;
  color: #7fffe9; /* Green leaf for dark background */
}

#youmind-form p.final {
  text-align: center;
  font-size: 15px;
  color: #bfbfbf; /* Ensure visibility on dark background */
}


/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {
  #youmind-form.step-view {
    padding: 24px;
    margin: 20px;
  }

  #youmind-form.step-view h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  #youmind-form .youmind-welcome-screen h1 {
    font-size: 28px;
  }
}