:root {
  --font-color: #283935;
  --primary-color: #286042;
  --secondary-color: #d8e9df;

  --basic-padding: 20px;
}


fieldset {
  /* tart with nothing displayed.*/
  display: none;
  flex-direction: column;
  border: 0px;

  legend {
    width: 100%;
    text-align: center;
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 600;
  }
}

.disclaimer-footer {
  margin-top: var(--basic-padding);
  text-align: center;
  font-size: 0.7rem;
}

button {
  /* Start with nothing displayed.*/
  display: none;
}

button:disabled {
  opacity: 0.3;
}


.form-group .check-item {
  display: flex;
  flex-direction: row;
  margin: 10px 0;

  input[type="checkbox"] {
    transform: scale(1.5);
    margin-right: 10px;
  }

  label {
    font-size: 1rem;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}



body {
  color: var(--font-color);
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  padding: var(--basic-padding);
}

#thanks {
  justify-content: center;
  font-size: 1.2rem;
}
.main-column {
  flex-direction: column;
}

.intake-form-card {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.brand {
  text-align: center;
  margin-bottom: 2rem;
}

.brand h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.brand p {
  font-size: 0.95rem;
}

.radio-item {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

select:invalid {
  color: #555;
}

.hidden-form-group {
  visibility: hidden;
}

.form-group label {
  display: block;
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group > label {
  margin-bottom: 0.5rem;
}


.other-has-textbox {
  display: flex;
  flex-direction: row;
}

.other-input-text {
  margin-left: 10px;
}

.form-group label[required]:after {
  content:" *";
  color: red;
}

.form-group {
  input[type="text"],
  input[type="email"],
  input[type="phoneNumber"],
  select,
  textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  textarea {
    height: 100px;
  }

  .input-warning {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: -0.3rem;
  }

}

.page-paragraph {
  padding-bottom: 10px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}


.button-box {
  display: flex;
  flex-direction: row;
  justify-content: space-around;

  button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .prev-btn {
    margin-right: 8px;
  }


  .primary-btn {
    background: var(--primary-color);
    color: white;

  }

  .secondary-btn {
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);

  }
}

.error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

#left-column {
  display: none;

  overflow:hidden;  /* code added to prevent scroll */
  height: 100vh;
  flex-direction: column;
  min-width: 350px;
  max-width: 350px;
  padding: 3rem 2rem;
  justify-content: space-between;



}

/**
 * Desktop only styling.
 */
@media only screen and (min-width: 830px) {
  body {
    justify-content: start;
    width: 100vw;
    padding: 0px;
  }

  .brand {
    margin: 0;
    text-align: left;

    h1, div, p {
      margin-bottom: var(--basic-padding);
    }

  }

  .intake-form-card {
    box-shadow: none; 
    max-width: 100%;
    .brand {
      display:none;
    }
  }

  #left-column {
    display: flex;
  }

  #main-column {
    background: white;
    overflow:auto;  /* code added to allow scroll */
    width: 100%;
    height: 100vh;

    .disclaimer-footer {
      display: none;
    }
  }
}

