:root {
  --form-field-font-size: 16px;
  --form-field-error-size: 12px;
  --blue-100: #D2E3FC;
  --red-error: #ea4335;
}

body {
  background: var(--blue-100);
}

.form-container {
  padding: 0 16vw;
}

h3,
.form-field-group {
  border: var(--devsite-card-border);
  border-radius: var(--devsite-card-border-radius);
  background: white;
  padding: 1em;
  margin: 0.8em 0;
}

h3, p {
  font: var(--devsite-description-content-font);
}

h3 {
  font-weight: bold;
}

h4, h5, h6 {
  margin: 0;
  font-weight: 400;
}

h4.required::after {
  content: " *";
  color: red;
}

.instruction {
  font-size: 14px;
  margin: 0 0 1em 0;
  font-style: italic;
}

p.instruction,
.instruction p {
  margin: 0 0 1em 0;
}

ul, ol {
  margin-top: 1em;
}

li, li.p {
  margin: 0;
}

.form-field {
  margin-top: 1em;
}

.form-field .form-field-input,
.form-field .form-field-select {
  font: 500 14px/36px Google Sans;
  resize: none;
  height: 45px;
  min-width: 320px;
  width: 50%;
  max-width: 100%;
}

.form-field textarea.form-field-input {
  height: 100px;
  width: 100%;
  line-height: 20px;
  resize: auto;
}

.form-field-input.email,
.form-field-input.url {
  min-width: 260px;
  width: 50%;
}

.centered {
  text-align: center;
}

.form-radio-group.horizontal {
  display: inline-block;
  margin: auto;
  width: 100%;
}

.horizontal label {
  margin: 1em;
  width: 15%;
  display: inline-block;
}

.form-submit-btn {
  margin: 24px 0;
}

.form-success .form-container,
.form-field-error,
.thank-you-container {
  display: none;
}

.form-success .thank-you-container {
  display: flex;
}

.form-field .form-field-show-error {
  color: var(--red-error);
  display: block;
  font-size: var(--form-field-error-size);
  font-style: italic;
}

.form-checkbox-group label,
.form-radio-group label {
  color: var(--devsite-primary-text-color);
  font-size: var(--form-field-font-size);
  margin: .2em;
  padding-left: 30px;
  text-indent: -30px;
}

#communication-preferences span.tooltip {
  font-size: var(--form-field-font-size);
  color: var(--devsite-secondary-text-color);
  margin: 0 .2em;
  display: inline-flex;
  align-items: center;
}

#communication-preferences .material-icons {
  font-size: 16px;
}

ul.form-checkbox-group {
  list-style-type: none;
  padding: 0;
}

.form-checkbox-group li {
  display: flex;
  margin: 0;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip text */
.tooltip .tooltip-text {
  visibility: hidden;
  width: 35vw;
  background-color: var(--devsite-ref-palette--grey700);
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 6px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
}

.tooltip-right {
  top: -5px;
  left: 125%;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
