/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Roboto", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== SCREEN SYSTEM ===== */
.screen {
  display: none;
  min-height: 100vh;
  position: relative;
  color: #fff;
  flex-direction: column;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.screen.active {
  display: flex;
}

/* ===== PER-SCREEN BACKGROUNDS ===== */
#screen-hero {
  background-image: url("../images/bg-hero-desktop.jpg");
}

#screen-form {
  background-image: url("../images/bg-form-desktop.jpg");
}

#screen-thanks {
  background-image: url("../images/bg-thanks-desktop.jpg");
}

/* ===== LOGO TOP-LEFT (form & thanks) ===== */
.logo-top {
  width: 100%;
  padding: 20px 30px;
  z-index: 1;
}

.logo-top img {
  height: 45px;
  width: auto;
}

/* ===== HERO SCREEN ===== */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 0 20px;
  max-width: 900px;
  width: 100%;
}

.hero-svg {
  /* width: 100%; */
  max-width: 800px;
  /* height: auto; */
  margin-bottom: 30px;
  height: 70vh;
  width: auto;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #1a2a5e 0%, #0d1b3e 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 18px 50px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #243470 0%, #142550 100%);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #159fd2;
}

/* ===== BADGE IMAGE (bottom-right logo for form & thanks) ===== */
.badge-image {
  z-index: 1;
  max-width: 400px;
  height: auto;
  padding: 20px;
}

/* ===== FORM SCREEN ===== */
.form-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 20px 20px 0;
  max-width: 849px;
  width: 100%;
}
.participation-form,
.form-title-container {
  max-width: 580px;
}
.form-title-container {
  display: flex;
  width: 100%;
}
.form-intro {
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #fff;
}

.form-title {
  align-self: flex-start;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

#participation-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #003781;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="tel"]::placeholder {
  color: #00b4d8;
  font-weight: 400;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Checkboxes */
.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.checkbox-group input[type="checkbox"] {
  display: none;
}

.checkbox-group .checkmark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 1px;
  position: relative;
  transition: all 0.2s;
}

.checkbox-group input[type="checkbox"]:checked + .checkmark {
  background: #00e5ff;
  border-color: #00e5ff;
}

.checkbox-group input[type="checkbox"]:checked + .checkmark::after {
  content: "\2713";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #003781;
  font-size: 14px;
  font-weight: 700;
}

#participation-form .btn-primary {
  margin-top: 10px;
  align-self: center;
}

/* Form Errors */
.form-errors {
  background: rgba(255, 77, 77, 0.15);
  border: 1px solid rgba(255, 77, 77, 0.4);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ff6b6b;
  font-size: 14px;
}

.form-errors p {
  margin: 4px 0;
}

/* ===== THANK YOU SCREEN ===== */
.thanks-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 0 30px;
  max-width: 750px;
  width: 100%;
}

.thanks-line1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 25px;
}

.thanks-line2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 25px;
}

.highlight-cyan {
  color: #159fd2;
  font-size: 28px;
  font-weight: 700;
}

.highlight-white {
  color: #fff;
  font-weight: 700;
}

.thanks-line3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 15px;
}

.thanks-line4 {
  font-size: 22px;
  font-weight: 700;
}

/* ===== FOOTER ===== */
.footer {
  width: 100%;
  padding: 20px 30px;
  font-size: 16px;
  color: #fff;
  z-index: 1;
  display: flex;
  gap: 15px;
  align-items: center;
  background-color: #05255b;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
}

.footer .separator {
  color: rgba(255, 255, 255, 0.3);
}

/* ===== MODALS ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 10, 30, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 35px;
  position: relative;
  color: #1a1a2e;
}

.modal-box h2 {
  font-size: 22px;
  color: #003781;
  margin-bottom: 20px;
  padding-right: 30px;
}

.modal-box h3 {
  font-size: 16px;
  color: #003781;
  margin: 20px 0 8px;
}

.modal-box p {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 10px;
}

.modal-box ul {
  margin: 8px 0 12px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #003781;
}

/* ===== DESKTOP ===== */
@media (min-width: 769px) {
  .logo-top {
    position: absolute;
    top: 0;
    left: 0;
  }

  .badge-image {
    position: absolute;
    bottom: 72px;
    right: 40px;
  }

  .footer {
    position: absolute;
    bottom: 0;
    left: 0;
  }

  .form-intro {
    font-size: 22px;
  }

  .thanks-line2 {
    font-size: 26px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  #screen-hero {
    background-image: url("../images/bg-hero-mobile.jpg");
  }

  #screen-form {
    background-image: url("../images/bg-hero-mobile.jpg");
  }

  #screen-thanks {
    background-image: url("../images/bg-thanks-mobile.jpg");
  }

  .logo-top {
    text-align: center;
    padding: 25px 20px 15px;
  }

  .logo-top img {
    height: 45px;
  }

  .hero-svg {
    max-width: 100%;
    margin-bottom: 20px;
    height: unset;
  }

  .btn-primary {
    padding: 16px 35px;
    font-size: 14px;
  }

  .form-intro {
    font-size: 15px;
  }

  .form-content {
    padding: 10px 20px 0;
  }

  .badge-image {
    max-width: 250px;
    align-self: center;
  }
  .highlight-cyan {
    font-size: 15px;
  }
  .thanks-line1 {
    font-size: 15px;
  }
  .thanks-line2 {
    font-size: 15px;
  }

  .thanks-line3 {
    font-size: 15px;
  }

  .footer {
    justify-content: center;
    padding: 15px 20px;
    font-size: 14px;
  }
}
