body {
  background: rgba(19, 20, 25, 1);
}

body .container {
  padding: 0;
  width: 100%;
  background: rgba(19, 20, 25, 1);
  max-width: 100%;
}

header,
footer {
  display: none;
}

h1.form-group-head,
h1.form-group-head.active {
  display: none;
  background: none;
}

h3 {
  font-weight: bold;
  font-size: 2.5rem !important;
  width: 100%;
}

.main-message {
  margin-bottom: 4rem;
}

.form-wrapper {
  padding: 0;
  background: rgba(19, 20, 25, 1);
  color: white !important;
}

.form-wrapper p {
  font-size: 14px !important;
}

.container h1.form-group-head + div {
  color: rgb(61, 251, 61) !important;
}

#formr {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Different field sizes */

.form-group {
  width: 100%;
}

.pers_firstname,
.pers_name,
.pers_mail,
.pers_tel,
.pers_song,
.pers_artist,
.pers_year,
.pers_length_song,
.pers_start_date,
.pers_budget {
  flex: 1 0 calc(50% - 10px);
}

.pers_company,
.pers_project_title,
.pers_project_description,
.pers_scene_description,
.pers_media,
.pers_evaluation_area,
.pers_comment,
.pers_contract_term,
.pers_use_intro_credits {
  flex-basis: 100%;
}

.pers_street,
.pers_plz,
.pers_town {
  flex: 1 0 calc(33.333% - 13.333px);
}

@media (max-width: 768px) {
  .form-group {
    flex: 1 0 100% !important;
  }
}

body .container {
  font-size: 1.1em;
  color: white;
}

div.form-group-body {
  padding: 0;
}

label {
  font-weight: 300;
}

input,
select,
textarea {
  padding: 5px 7px !important;
  font-style: normal;
  font-size: 1.1em;
  background: rgba(19, 20, 25, 1) !important;
  border-radius: 0 !important;
  border: 1.5px white solid !important;
}

#message {
  margin-bottom: 7px;
}

textarea {
  height: 300px;
}

.confirm-box {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  width: 100%;
  gap: 1.5rem;
  margin-bottom: 2.5rem;

  #confirm_tos {
    width: 20px;
    height: 20px;
    margin-bottom: 0 !important;
  }
}

#submit-btn {
  text-transform: none;
  height: initial;
  color: white;
  width: 300px;
  font-size: 1em;
}

body > div > div > div > div.form-wrapper > form > div.div {
  text-align: center;
}

.pers_media,
.pers_contract_term,
.pers_evaluation_area {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

/* === Tooltip Trigger (das kleine "i") === */
.info-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: help;
  margin-left: 0.5rem;
  user-select: none;
  background: transparent;
  padding: 0;
  margin-bottom: 0.5rem !important;
}

.info-trigger:focus {
  outline: 2px solid Highlight;
  outline-offset: 2px;
}

/* === Tooltip Box === */
.info-trigger .tooltip {
  position: absolute;
  top: 30px;
  left: -5px;
  min-width: 220px;
  max-width: 360px;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #111;
  font-size: 0.9rem;
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  transform-origin: top center;
  margin-top: 0.4rem;
  z-index: 10;
  white-space: normal;
  text-transform: none;
}

.info-trigger .tooltip::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 9px;
  border: 6px solid transparent;
  border-bottom-color: #ffffff;
}

/* Sichtbarkeit bei Hover/Fokus */
.info-trigger:hover .tooltip,
.info-trigger:focus .tooltip {
  opacity: 1;
  pointer-events: auto;
}

/* Bewegungen für barrierefreie User deaktivieren */
@media (prefers-reduced-motion: reduce) {
  .info-trigger .tooltip {
    transition: none;
  }
}
