body {
  margin: 0;
  font-family: 'Shantell Sans', sans-serif;
  background-color: #eeeeee;
  color: #333;
}

header {
  background-color: #01171f;
  color: white;
  text-align: center;
  padding: 2rem 1rem 1rem;
}

header img {
  max-width: 200px;
}

h1 {
  font-size: 2.4rem;
  margin-top: 1rem;
}

.form-section {
  background: url('https://d9hhrg4mnvzow.cloudfront.net/www.bluefoxdm.com/fridge2fork/e2238dee-firefly-ec671a37-12b3-46b6-a3ec-515e4a748ed11_1000000000000000000028.png') center center/cover no-repeat;
  padding: 2rem 1rem;
}

form {
  background: white;
  max-width: 540px;
  margin: auto;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  position: relative;
  box-sizing: border-box;
}

.progress-container {
  margin-bottom: 1.5rem;
  display: none;
}

form[data-step]:not([data-step="1"]) .progress-container {
  display: block;
}

.progress-label {
  text-align: right;
  font-weight: bold;
  color: #4aa8e6;
  margin-bottom: 0.3rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

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

.progress {
  height: 100%;
  background: #0098db;
  width: 0%;
  transition: width 0.4s ease;
}

textarea {
  width: 100%;
  min-height: 100px;
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 1rem;
  resize: vertical;
  box-sizing: border-box;
}

.mic-button {
  background: #fbd234;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mic-button:hover {
  background: #fcd94e;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.mic-button.listening {
  background-color: #ff4c4c;
  color: white;
  animation: pulse 1.2s infinite;
  box-shadow: 0 0 0 0 rgba(255, 76, 76, 0.7);
}

.mic-button.listening:hover {
  background-color: #e64141;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 76, 76, 0.7);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 12px rgba(255, 76, 76, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 76, 76, 0);
  }
}

.form-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
}

button {
  font-family: 'Shantell Sans', sans-serif;
  font-size: 1.2rem;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

button.next,
button[type="submit"] {
  background: #4aa8e6;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button.next:hover,
button[type="submit"]:hover {
  background: #3390d6;
  transform: translateY(-1px);
}

button.prev {
  background: #ccc;
  color: black;
}

.form-step {
  display: none;
  border-left: 6px solid transparent;
  padding-left: 1rem;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Step Highlighting Colors */
.form-step:nth-of-type(1).active { border-color: #4aa8e6; }
.form-step:nth-of-type(2).active { border-color: #fbd234; }
.form-step:nth-of-type(3).active { border-color: #ff6f61; }
.form-step:nth-of-type(4).active { border-color: #7bd389; }

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

footer {
  background-color: #01171f;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

footer a {
  color: white;
  text-decoration: underline;
  font-weight: 500;
}

footer p {
  max-width: 540px;
  margin: 0.5rem auto;
  text-align: center;
  padding: 0 1rem;
  box-sizing: border-box;
}
