@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

/* Everything box-sizing */
html,
details > * /* Chrome and Safari override with content-box otherwise */
{
  box-sizing: border-box;
}

*,
*:before,
*:after
{
  box-sizing: inherit;
}

body
{
  color: #00245e;
  font-family: Montserrat;
}

form
{
  display: flex;
  justify-content: space-between;
  padding: 43px 30px 73px;/* padding inside the iframe so we can space things out so the calendar isn't cut off */
}
.form-group
{
  flex-grow: 1;
  flex-basis: 12.5%;
  width: 100%;
  margin-right: 10px;
  font-size: 16px;
}

label
{
  display: block;
  margin-bottom: 15px !important;/* Extra.css uses important, and seems like I still need that for a loading symbol */
}

select
,input
{
  max-width: 100%;
  width: 100%;
  padding: 15px 15px;
  border: 1px solid #dcdcdc;
  background-color: #f3f3f3;
  font-size: 16px;
  font-family: Montserrat;
}

select
{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none
}

.select
{
  position: relative;
}
.select:after
{
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  border-width: 10px 8px 0;
  border-style: solid;
  border-color: #cccccc transparent transparent;
  margin-top: -5px;
  pointer-events: none;
}

.button-wrapper
{
  align-self: flex-end;
  margin-right: 0;
  max-width: 180px;
}
.button-wrapper button
{
  display: inline-block;
  padding: 15px 15px 16px;
  width: 100%;
  background: #5dbb46;
  color: #FFF;
  border: none;
  cursor: pointer;
  font-size: 17px;
}
.button-wrapper button:hover
{
  background: #00245e;
  color: #5dbb46;
}

@media (max-width: 1600px)
{
  .form-group
  {
    font-size: 15px;
  }
}

@media (max-width: 1240px)/* laptop */
{
  form
  {
    flex-wrap: wrap;
    padding: 20px;
  }

  .form-group
  {
    flex-basis: 21%;
    margin-bottom: 15px;
  }
  .form-group:nth-child(8n-4)
  {
    margin-right: 0;
  }

  .button-wrapper
  {
    max-width: 100%;
  }
}

@media (max-width: 825px)
{
  form
  {
    display: none;
  }

  .form-group
  {
    flex-basis: 100%;
    margin-right: 0;
  }
}