@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500;600;700;800&family=Ubuntu:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
  --purple: #663399;
  --purple-dark: #572c83;
  --purple-soft: #f3eef8;
  --text: #141414;
  --muted: #555;
  --border: #cdcdcd;
  --card: #ffffff;
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto Slab', serif;
  color: var(--text);
}

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

.header {
  background-color: rebeccapurple;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 600;
  color: white;
  text-align: center;
}

.logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 115px;
  max-height: 118px;
  padding: 0 12px;
}

.main {
  display: flex;
  justify-content: center;
  background-image: url(images/tlo.png);
  background-size: cover;
  background-position: center;
  min-height: calc(100vh - 118px);
  padding: 24px 12px 40px;
}

.form {
  width: min(680px, 100%);
}

.closed-box {
  border: 1px solid rgb(238, 231, 231);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  background: var(--card);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.closed-box h2 {
  font-family: 'Ubuntu', sans-serif;
  color: var(--purple);
  margin: 0 0 0.75rem;
}

.closed-box ul {
  text-align: left;
  display: inline-block;
  margin: 1rem 0 0.5rem;
  padding-left: 1.25rem;
}

.closed-box li {
  margin: 0.35rem 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid rgb(238, 231, 231);
  border-radius: 10px;
  margin: 0;
  padding: 1.5rem 1.35rem 1.35rem;
  background-color: var(--card);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.form-intro {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
}

form label {
  font-weight: 500;
  color: var(--text);
  margin-top: 0.65rem;
}

form input[type="text"],
form input[type="email"],
form input[type="number"] {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(102, 51, 153, 0.18);
}

.clauses {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.clause {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0 !important;
  font-weight: 400 !important;
  line-height: 1.45;
  cursor: pointer;
}

.clause span {
  flex: 1;
}

.gohomebutton {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.gohomebutton input {
  padding: 10px 38px;
  font-size: 13px;
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  color: white;
  border: 1px solid rebeccapurple;
  border-radius: 5px;
  background-color: rebeccapurple;
  cursor: pointer;
  margin-left: 10px;
}

.switches {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.switches input {
  padding: 12px 28px;
  font-size: 14px;
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  color: white;
  border: 1px solid rebeccapurple;
  border-radius: 8px;
  background-color: rebeccapurple;
  cursor: pointer;
  margin: 0;
  transition: background-color 0.2s, transform 0.15s;
}

.switches input:hover {
  background-color: var(--purple-dark);
}

.switches input:active {
  transform: translateY(1px);
}

.switches input:first-child {
  color: rgb(55, 65, 81);
  border: 1px solid lightgray;
  background-color: white;
}

.switches input:first-child:hover {
  background-color: rgb(232, 232, 232);
}

.switches input:last-child {
  border: 1px solid rgb(82, 76, 87);
  background-color: rgb(82, 76, 87);
}

.switches input:last-child:hover {
  background-color: rgb(60, 55, 65);
}

input[type='checkbox'] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  appearance: none;
  border: 1.5px solid rebeccapurple;
  border-radius: 5px;
  outline: none;
  transition: background-color 0.2s, border-color 0.2s;
  background-color: white;
  cursor: pointer;
  margin-top: 2px;
}

input[type='checkbox']:checked {
  border: 2px solid rebeccapurple;
  background-color: rgb(124, 65, 184);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.2 11.4 2.8 8l1.2-1.2 2.2 2.2 5-5L12.4 5.2z'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

input[type='checkbox']:focus-visible {
  box-shadow: 0 0 0 3px rgba(102, 51, 153, 0.25);
}

#reg {
  color: rgb(102, 51, 153);
  text-decoration: none;
  font-weight: 600;
}

#reg:hover {
  text-decoration: underline;
}

.logos {
  width: 15%;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.logo-link:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
  border-radius: 4px;
}

.logos img {
  max-width: 100%;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}

h1 {
  width: 70%;
  max-height: 115px;
  margin: 0;
  line-height: 1.25;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
}

.img1, .img2 {
  box-sizing: border-box;
}

@media only screen and (max-width: 800px) {
  .logos {
    display: none;
  }

  .logo {
    justify-content: center;
    padding: 16px;
    max-height: none;
    min-height: auto;
  }

  h1 {
    width: 100%;
    font-size: 22px;
    max-height: none;
  }

  .main {
    min-height: calc(100vh - 90px);
  }
}

@media only screen and (max-width: 480px) {
  form {
    padding: 1.15rem 1rem 1.1rem;
  }

  .switches {
    flex-direction: column;
  }

  .switches input {
    width: 100%;
  }

  h1 {
    font-size: 18px;
  }
}
