:root {
    --profile-color-darkest: #11262C;
    --profile-color-darker: #1C3F49;
    --profile-color-dark: #005462;
    --profile-color-medium: #3FD695;
    --profile-color-light: #c4eeda;
    --profile-color-lightest: #E3F5EC;
    --profile-color-grey: #BEBEBE;
    --profile-font: 'Source Sans Pro', sans-serif;
    --profile-title-font: 'Barlow Condensed', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--profile-font);
    font-size: 18px;
    line-height: 1.5;
}

header,
footer {
    width: 100%;
    height: 85px;
    background-color: var(--profile-color-darker);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
}

header {
  margin-bottom: 50px;
}

footer {
  margin-top: 80px;
}

header nav {
  margin-left: auto;
  display: flex;
  gap: 50px;
  margin-right: 50px;
}

header nav a {
  font-family: var(--profile-title-font);
  font-size: 20px;
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}

header nav a:hover {
    color: var(--profile-color-medium);
}

/* move navigation below app title if narrow screen */
@media (max-width: 1182px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    height: 135px;
    padding: 10px 20px;
  }

  header img {
    margin-bottom: 10px;
  }

  .app-title {
    margin-bottom: 10px;
  }

  header nav a {
    margin: 5px 0;
  }
}

.active {
    color: var(--profile-color-medium);
}

/* Apps with only 1 page can delete the subheader, not needed */
.subheader {
    width: 100%;
    height: 60px;
    background-color: var(--profile-color-light);
    color: black;
}

/* --------- PAGE CONTENT CENTERING --------- */

.container {
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.container-content {
  display: flex;
  flex-direction: column;
  min-width: 500px;
  max-width: 800px;
  width: 100%;
  text-align: left;
}

/* --------- TEXT FORMATTING --------- */

.app-title {    /* h1 */
    font-family: var(--profile-title-font);
    font-size: 36px;
    font-weight: normal;
    position: absolute;             /* center content */
    left: 50%;                      /* center content */
    transform: translateX(-50%);    /* center content */
}

.page-title {   /* h2 */
    font-family: var(--profile-title-font);
    font-size: 28px;
    font-weight: 500;
    color: black;
    margin-top: 8px !important;
}

.title {        /* h3 */
    font-family: var(--profile-title-font);
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 40px;
    color: var(--profile-color-darker);
}

.paragraph {
    margin-top: 6px;
}

/* --------- FORMS --------- */

.form-container {
    margin-top: 20px;
}

/* --------- TEXT INPUT FORMS --------- */

.form-field-title {
    font-weight: bold;
}

.form-field {
    width: calc(100% - 300px);
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 16px;
}

.form-field:focus:focus-visible {
  outline: none;
  border: 1px solid var(--profile-color-dark) !important;
}

/* --------- CHECKBOX INPUT FORMS --------- */

.form-checkbox {
    background-color: var(--profile-color-light);
    border-radius: 20px;
    padding: 5px;
    padding-right: 10px;
    width: fit-content;
    cursor: pointer;
    height: 27px;
}

.form-checkbox-text {
    cursor: pointer;
    position: relative;
    top: -7px; 
}

input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* create circle */
  width: 20px;
  height: 20px;
  border: 1px solid #333;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  background-color: white;
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--profile-color-dark);
}

input[type="checkbox"]:checked:disabled::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--profile-color-grey);
}

/* --------- DROPDOWN INPUT FORMS --------- */

select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 6px;
  margin-bottom: 6px;
  font-size: 16px;
  cursor: pointer;
  background-color: white;
}

select:focus {
  border: 1px solid var(--profile-color-dark) !important;
}

/* --------- BUTTONS --------- */

.normal-button {
    width: 200px;
    background-color: var(--profile-color-darker);
    font-family: var(--profile-font);
    font-size: 18px;
    color: white;
    border: none;
    outline: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;  
}

.normal-button:hover {
    background-color: var(--profile-color-darkest);
}

/* --------- SPECIAL CONTAINER --------- */

.special-container {
    background-color: var(--profile-color-light);
    border-radius: 20px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
}

/* --------- TILES --------- */

.tile {
    background-color: var(--profile-color-light);
    border-radius: 20px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    height: 305px;
    /*margin-top: 20px;*/
    /*margin-bottom: 15px;*/
    box-shadow: 0 -1px 5px rgba(0,0,0,0.05),0 24px 48px -12px rgba(34,36,42,0.16),0 8px 16px -4px rgba(22,22,22,0.08);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

.tile-title {
  font-family: var(--profile-title-font);
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 30px;
  color: var(--profile-color-darker);
  cursor: pointer;
}

.tile-title:hover {
  text-decoration: underline;
}

.wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 35px;
}

.bottom-text {
   margin-top: auto;
}

/* --------- LINKS --------- */

a {
  color: var(--profile-color-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --------- DROPDOWN CONTAINER --------- */

.dropdown-header {
  background-color: white;
  border: 1px solid var(--profile-color-grey);
  border-radius: 20px;
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;  
}

.dropdown-header:hover:focus:active {
    background-color: var(--profile-color-light);
}

.dropdown-header-text {
    font-family: var(--profile-title-font);
    font-size: 25px;
    font-weight: 600;
    color: var(--profile-color-dark);
}

.dropdown-header-symbol {
  font-family: var(--profile-title-font);
  font-size: 40px;
  font-weight: 200;
  color: black;
  line-height: 0.5;
}

.dropdown-header.active .dropdown-header-symbol {
  content: "-";
}

.dropdown-container {
    border: 1px solid var(--profile-color-grey);
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 40px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
    padding-top: 40px;
    position: relative;
    top: -20px;
}

.dropdown-toggle {
  background-color: white;
  border: 1px solid var(--profile-color-grey);
  border-radius: 20px;
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
}

.dropdown-toggle:hover {
  background-color: var(--profile-color-light);
}

.collapsible {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.collapsible.open {
  max-height: 1000px;
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 30px;
  padding-bottom: 30px;
  opacity: 1;
}

/* --------- REQUIRED FIELDS  --------- */

input.error {
  background-color: #f8d7da;
}

/* --------- TOOLTIP  --------- */

.tooltip {
  position: relative;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  color: var(--profile-color-dark);
  background: white;
  border: 1px solid var(--profile-color-dark);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  cursor: pointer;
}

.tooltip-text {
  visibility: hidden;
  max-width: 350px;
  width: max-content;
  white-space: normal;
  background-color: var(--profile-color-darkest);
  color: #fff;
  font-weight: 400;
  text-align: left;
  border-radius: 5px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  /*top: 120%;*/
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;

  /* placement above icon */
  top: auto;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
}

/* add triangle */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--profile-color-darkest) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* --------- WIZARD --------- */

.tab {
  display: none;
}

.step {
  height: 40px;
  width: 40px;
  margin: 0 15px;
  background-color: var(--profile-color-grey);
  border: none;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 40px;   /* controls spacing between circles */
  height: 4px;
  background-color: var(--profile-color-grey);
  transform: translateY(-50%);
}

.step-number {
  position: relative;
  top: 5px;
  color: white;
}

.step.active {
  background-color: var(--profile-color-medium) !important;
}

.step.finish {
  background-color: var(--profile-color-light);
} 

.previous-button {
    width: 200px;
    background-color: var(--profile-color-grey);
    font-family: var(--profile-font);
    font-size: 18px;
    color: white;
    border: none;
    outline: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;  
}

.previous-button:hover {
    background-color: #8c8c8c;
}