.instructions {
  margin-top: 4.8rem;
  font-size: 1.8rem;
  line-height: 1.8;
  text-align: justify;
}

.instructions p:nth-child(1) {
  margin-bottom: 1.6rem;
}

.instructions p:last-child {
  margin-top: 2.4rem;
  margin-bottom: 3.2rem;
  font-size: 1.6rem;
}

.instructions a {
  color: #555;
  text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
  .instructions a:hover {
    color: #ff6f61;
  }
}

.instructions a:active {
  color: #ff6f61;
}

.section-form {
  padding: 2.8rem 0;
  background-color: #ffffff;
}

.section-form-alt {
  padding: 2.8rem 0;
  background-color: #eef1ef;
}

.user-input-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.option-title {
  display: flex;
  align-items: center;
}

.user-input-label {
  color: #333;
  font-weight: 500;
}

.tooltip-icon {
  height: 1.8rem;
  cursor: pointer;
}

.tooltip-wrap {
  position: relative;
  margin-left: 1rem;
}

.tooltip-text {
  position: absolute;
  left: 125%;
  background: #555;
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  font-size: 1.4rem;
  line-height: 1.2;
  white-space: normal;
  width: max-content;
  max-width: 20rem;
  overflow-wrap: break-word;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.tooltip-wrap.show .tooltip-text {
  opacity: 1;
  pointer-events: auto;
}

/* NOTE: Default 'select' does not support styling drop-down contents */
select {
  width: 100%;
  max-width: 30rem;
  padding: 1rem 1.2rem;
  font-size: 1.8rem;
  font-family: "Rubik", sans-serif;
  color: #555;
  background-color: #fff;
  border: 2px solid #eff1ef;
  border-radius: 9px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath fill='%23333' d='M7 10L0 0h14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out;
}

select:focus {
  border-color: #ff6f61;
  outline: none;
}

.other-input {
  display: none;
  width: 100%;
  max-width: 30rem;
  font-size: 1.8rem;
  font-family: "Rubik", sans-serif;
  padding: 1rem 1.2rem;
  color: #555;
  background-color: #fff;
  border: none;
  border: 2px solid #eff1ef;
  border-radius: 9px;
  transition: border-color 0.2s ease-in-out;
}

.other-input:focus {
  border-color: #ff6f61;
  outline: none;
}

.other-input.show {
  display: block;
}

.describe-input {
  width: 100%;
  max-width: 50rem;
  font-size: 1.8rem;
  font-family: "Rubik", sans-serif;
  line-height: 1.5;
  padding: 1rem 1.2rem;
  color: #555;
  background-color: #fff;
  border: none;
  border: 2px solid #eff1ef;
  border-radius: 9px;
  transition: border-color 0.2s ease-in-out;
  overflow: hidden;
  resize: none;
}

.describe-input:focus {
  border-color: #ff6f61;
  outline: none;
}

.char-count {
  display: none;
  margin-left: 4px;
  font-style: inherit;
  font-size: 1.2rem;
}

.char-count.show {
  display: inline-block;
}

.rating-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.rating-slots {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  flex-wrap: nowrap;
  margin-top: 1rem;
}

.rating-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 32px;
  cursor: pointer;
}

.rating-item {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.3;
  transition: opacity 0.2s;
  object-fit: contain;
}

.rating-item.active {
  opacity: 1;
}

.rating-value {
  align-self: center;
  font-size: 1.8rem;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  color: #555;
}

.btn-container {
  display: flex;
  max-width: 30rem;
  margin: 3.2rem 0;
}

.btn-submit {
  width: 100%;
  padding: 1.6rem 3.2rem;
  border: none;
  border-radius: 9px;
  background-color: #ff6f61;
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

@media (hover: hover) and (pointer: fine) {
  .btn-submit:hover {
    background-color: #fff;
    color: #000;
    box-shadow: inset 0 0 0 2px #ff6f61;
  }
}

.btn-submit:active {
  background-color: #fff;
  color: #000;
  box-shadow: inset 0 0 0 2px #ff6f61;
}
