html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

input,
textarea,
select {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  color: #1e1e1e;
  background-color: #fafdff;
  min-height: 100vh;
  font-size: 18px;
}

.header {
  width: 100%;
  background: #0a5896;
  height: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(calc(50vw - 700px), 30px);
  box-sizing: border-box;
  z-index: 700;
  position: relative;

  &>.logo {
    height: 30px;

    & img {
      height: 100%;
    }
  }
}

.error {
  color: #ff0000 !important;
  font-size: .8em;
  font-weight: bold !important;

  &::before {
    content: "• ";
  }
}

.content {
  width: 1000px;
  margin: 0 auto;
  padding: 50px 15px;
  box-sizing: border-box;
  max-width: 100svw;
}

h1 {
  font-size: 1.5em;
  margin-bottom: 30px;
  font-weight: bold;
}

p {
  margin: 30px 0 20px;
  line-height: 1.4em;
  font-size: 1em;
}

ul {
  margin: 20px 0 20px;
  line-height: 1.4em;
  font-size: 1em;

  &>li {
    & a {
      color: #0a5896;
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }

    &::before {
      content: "•";
      color: #0a5896;
      margin: 0 10px;
      font-weight: bold;
    }
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;

  & label {
    display: flex;
    flex-direction: column;
    gap: 5px;

    &:has(input:invalid:not(:placeholder-shown))::before,
    &:has(input:invalid:not(:placeholder-shown)) input,
    &:has(select:invalid:not(:placeholder-shown)) select,
    &:has(textarea:invalid:not(:placeholder-shown)) textarea,
    &:has(.error)::before,
    &:has(.error) input,
    &:has(.error) select,
    &:has(.error) textarea {
      border-color: #ff0000;
    }

    &>span {
      padding: 5px 15px;
      font-weight: bold;
      color: #0a5896;
      font-size: .9em;
    }
  }

  & hlight {
    color: #ff0000;
    padding: 0 5px;
    font-weight: bold;
  }
}

input,
select,
textarea {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  min-height: 50px;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 15px;
  border: 1px solid #dedede;
  background-color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: .95em;
  color: #222229;
  transition: all .3s ease;

  &[type="submit"]:hover {
    background-color: #0a5896;
    cursor: pointer;
    color: #fafafa;
  }

  &:hover {
    border-color: #0a5896;
  }
}

textarea {
  min-height: 80px;
  height: 200px;
  max-height: 500px;
}

form {
  padding: 30px 0;
}

.row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

label:has(input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: center;

  &>span {
    padding: 0;
    color: #222229;
    font-weight: normal;

    & a {
      color: #0a5896;
      text-decoration: none;
      font-weight: bold;
      transition: all .3s ease;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  &::before {
    content: "X";
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 1px solid #dedede;
    box-sizing: border-box;
    border-radius: 5px;
    margin-right: 10px;
    color: transparent;
    line-height: 20px;
    text-align: center;
    font-weight: bold;
    font-size: .85em;
    border: 1px solid #dedede;
    background-color: #fff;
  }

  &:has(input:checked)::before {
    background-color: #0a5896;
    border-color: #0a5896;
    color: #fafafa;
  }

  & input {
    display: none;
  }
}