body {
  background-image: url(../../img/camiones/background.png);
  background-size: cover;
  background-position: center;
}

#main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: #333;
  text-align: center;
}

/* === General layout: two columns === */
.content-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 5rem;
}

.info-container,
.form-container {
  flex: 1 1 45%;
  min-width: 320px;
}

/* === Info (left column) === */
.info-container .badges img {
  max-width: 20%;
}

.info-container .badges img:last-child {
  max-width: 15%;
}

.video-container {
  position: relative;
}

.video-container .toggle-sound-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

/* === Form (right column) === */
.form-container {
  background-color: #fafafa52;
  padding: 2rem 1.5rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  text-align: left;
  border-radius: 20px;
}

.form-container h1 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.form-container h2 {
  color: white;
}

.form-container p {
  font-size: 14px;
  color: white;
}

.form-container a {
  color: #ffac2f !important;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: white;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  border: none !important;
  border-radius: 5px;
}

/* === Custom checkbox === */
.custom-checkbox {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  gap: 0.5rem;
  position: relative;
  cursor: pointer; /* cursor over the entire container */
}

/* Ensure the input still receives clicks */
.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  width: 20px;
  height: 20px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

/* The visual box that displays the check */
.custom-checkbox span {
  width: 20px;
  height: 20px;
  border: 2px solid #004982;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* does not interfere with click */
  z-index: 1;
  position: relative;
}

/* Check icon inside the box */
.custom-checkbox i {
  color: #004982 !important;
  font-size: 0.8rem !important;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* When the checkbox is checked, show the checkmark */
.custom-checkbox input[type="checkbox"]:checked + span i {
  opacity: 1;
}

/* Label to the right of the checkbox */
.custom-checkbox label {
  cursor: pointer;
  user-select: none;
}

/* === Submit Button === */
.btn.btn-primary {
  background-color: #ccc;
  border-color: #ccc;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 2rem;
  display: block;
  margin: 1rem auto 0;
  transition: background-color 0.25s ease-in-out, border-color 0.25s ease-in-out;
  font-size: 14px;
}

/* Disabled state */
.form-container .btn.btn-primary[disabled] {
  cursor: not-allowed !important;
}

/* Active state (if the checkbox is checked) */
form:has(#accept-terms-conditions:checked) .btn.btn-primary {
  background-color: #004982;
  border-color: #004982;
  cursor: pointer;
}

form:has(#accept-terms-conditions:checked) .btn.btn-primary:hover {
  opacity: 0.9;
}

/* === Responsive === */
@media (max-width: 1024px) {
  body {
    background-image: url(../../img/camiones/background-mobile.png);
  }

  .content-container {
    flex-direction: column;
    align-items: center;
  }

  .info-container,
  .form-container {
    flex: 1 1 100%;
    max-width: 600px;
    width: 100%;
  }

  .form-container h1 {
    font-size: 1rem;
  }
}
