/* Body and background */
body {
  font-family: 'Inter', sans-serif;
  background: url('https://www.heropatterns.com/static/media/topography.2146b707.svg') repeat, linear-gradient(to bottom right, #f1f5f9, #e2e8f0);
  background-repeat: repeat;
  background-size: auto, cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 1rem;
  box-sizing: border-box;
}

/* Progress bar wrapper */
.progress-wrapper {
  height: 6px;
  background-color: #e0e7ff; /* light indigo */
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  width: 100%;
}

/* Inner progress bar */
#progress-bar {
  height: 100%;
  width: 0%;
  background-color: #2563eb; /* deep blue */
  transition: width 0.3s ease-in-out;
}

/* Container mimics a mobile screen size */
.container {
  width: 100%;
  max-width: 420px;
  height: 800px; /* Fixed height to mimic iPhone screen */
  padding: 1.5rem;
  background: #f9fbff; /* soft blue-white */
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Question or result card */
.card {
  margin-top: 1rem;
  text-align: left;
  flex: 1;
}

.hidden {
  display: none;
}

/* App title styling */
#app-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e3a8a; /* dark blue */
  margin-bottom: 1rem;
  text-align: center;
}

/* Question text styling */
#question-text {
  font-size: 20px;
  font-weight: 600;
  color: #1e3a8a; /* deep blue */
  margin-bottom: 1rem;
  line-height: 1.4;
  padding-left: 12px;
  text-align: left;
}

/* Likert options area */
#options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 12px;
}

/* Each radio choice row */
.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  width: 100%;
}

/* Radio button styling */
.option-row input[type="radio"] {
  transform: scale(1.2);
  cursor: pointer;
  margin: 0;
}

/* Label text for each choice */
.option-row label {
  font-size: 15px;
  font-weight: 400;
  color: #334155; /* slate gray */
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

/* Label click targets radio button */
.option-row label {
  display: inline-block;
}

.option-row input[type="radio"] {
  pointer-events: none;
}

.option-row {
  cursor: pointer;
}

.option-row:hover {
  background-color: #e0f2fe;
  border-radius: 6px;
}

/* Next/Submit button styling */
#next-btn {
  margin-top: 1rem;
  margin-left: 12px;
  padding: 10px 20px;
  background: #2563eb; /* deep blue */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#next-btn:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}

#next-btn:hover:enabled {
  background: #1d4ed8;
}

/* Result score styling */
.result-text {
  font-size: 20px;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
  text-align: center;
}

.result-score {
  font-size: 64px;
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Dynamic score color classes */
.score-red { color: #dc2626; }         /* 1.0–1.9 */
.score-orange { color: #f97316; }      /* 2.0–2.9 */
.score-yellow { color: #eab308; }      /* 3.0–3.4 */
.score-lightgreen { color: #84cc16; }  /* 3.5–4.4 */
.score-green { color: #15803d; }       /* 4.5–5.0 */

#message {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 1rem;
}

/* LinkedIn link style */
.linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  margin-top: 1rem;
  text-decoration: none;
  color: #2563eb;
}

.linkedin img {
  width: 18px;
  height: 18px;
}

/* Profile image styling */
.profile-pic {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.5rem;
  display: block;
}

.profile-name {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  text-align: center;
  margin-bottom: 0.25rem;
}

/* Disclaimer footer */
footer {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-top: auto;
  padding-top: 1rem;
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
  .container {
    border-radius: 0;
    box-shadow: none;
    height: 800px; /* Match iPhone height */
  }
}
