:root {
  --primary: #005ca9;
  --secondary: #c9d8e5;
  --third: #232e65;
  --surface: #ebe9e9;
  --text: #000000;
  --white: #ffffff;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-align: justify;
  hyphens: auto;
}

main.content-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.frame-type-header {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 48px 0 20px;
}

.frame-type-header:first-child {
  margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
  hyphens: none;
}

.frame-type-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--third);
  margin: 0;
}

.frame-type-header h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: #6b7280;
  margin: 8px 0 0;
}

.frame-type-image {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 44px;
}

main.content-wrap>.frame-type-header:first-of-type+.frame-type-text+.frame-type-image {
  margin-top: -40px;
}

.frame-type-image .ce-gallery,
.frame-type-image .ce-outer,
.frame-type-image .ce-inner,
.frame-type-image .ce-row,
.frame-type-image .ce-column,
.frame-type-image figure.image {
  margin: 0;
}

.frame-type-image .image-embed-item {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 75%;
}

.frame-type-text {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 44px;
}

.frame-type-text header h2 {
  color: var(--third);
  font-size: 2rem;
  margin: 0 0 14px;
  font-weight: 700;
}

.frame-type-text header h3 {
  color: var(--third);
  font-size: 1.375rem;
  margin: 0 0 10px;
  font-weight: 700;
}

.frame-type-text p,
.frame-type-text ul,
.frame-type-text ol {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: #333;
}

.frame-type-text ul,
.frame-type-text ol {
  padding-left: 1.3em;
}

.frame-type-text li {
  margin-bottom: 6px;
}

.frame-type-text li::marker {
  color: var(--primary);
}

.frame-type-text p:last-child,
.frame-type-text ul:last-child,
.frame-type-text ol:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main.content-wrap label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

main.content-wrap label .required,
main.content-wrap label abbr {
  color: #dc2626;
  text-decoration: none;
}

.form-control,
input[type=email],
input[type=text] {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 10px 14px;
  font-size: 1rem;
  width: 100%;
  background: var(--white);
}

.form-control:focus,
input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-control::placeholder,
input::placeholder {
  color: #9ca3af;
}

button[type=submit],
input[type=submit] {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}

button[type=submit]:hover,
input[type=submit]:hover {
  background: var(--third);
}

.frame-type-form_formframework {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 44px;
}

.frame-type-form_formframework header h2 {
  color: var(--third);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.frame-type-form_formframework header h3 {
  color: #6b7280;
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 24px;
}

.frame-type-form_formframework .form-group {
  margin-bottom: 20px;
}

.frame-type-form_formframework .actions {
  margin-top: 20px;
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  body {
    text-align: left;
    hyphens: none;
  }

  main.content-wrap {
    padding: 28px 20px 48px;
  }

  .frame-type-header {
    margin: 32px 0 16px;
  }

  .frame-type-header h2 {
    font-size: 1.4rem;
  }

  .frame-type-header h3 {
    font-size: 1rem;
  }

  .frame-type-image {
    margin-bottom: 32px;
  }

  main.content-wrap>.frame-type-header:first-of-type+.frame-type-text+.frame-type-image {
    margin-top: -28px;
  }

  .frame-type-image .image-embed-item {
    height: 220px;
  }

  .frame-type-text {
    margin-bottom: 32px;
  }

  .frame-type-text header h2 {
    font-size: 1.4rem;
  }

  .frame-type-text header h3 {
    font-size: 1.05rem;
  }

  .frame-type-text p,
  .frame-type-text ul,
  .frame-type-text ol {
    font-size: 1rem;
  }

  .form-control,
  input[type=email],
  input[type=text] {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  button[type=submit],
  input[type=submit] {
    padding: 14px 24px;
    width: 100%;
    font-size: 0.95rem;
  }

  .frame-type-form_formframework {
    margin-bottom: 32px;
  }

  .frame-type-form_formframework header h2 {
    font-size: 1.4rem;
  }

  .frame-type-form_formframework header h3 {
    font-size: 1rem;
    margin-bottom: 18px;
  }
}
