*,
*::before,
*::after {
  box-sizing: border-box
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  background: #fafafa;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.masthead {
  position: relative;
  width: 100%;
  aspect-ratio: 1800 / 760;
  /* Add this line, adjust numbers as needed */
  overflow: hidden;
}

.masthead img {
  width: 100%;
  height: 100%;
  /* Changed from 'auto' to '100%' */
  display: block;
  object-fit: cover;
  /* More modern look; use 'contain' if you want full fit */
}

.hotspot {
  position: absolute;
  cursor: pointer;
  /* REMOVE in production */
  border-radius: 0.5em;
  outline: none;
}

.hotspot:focus {
  box-shadow: 0 0 0 2px #333;
}

/* Example values, update with your real measurements */
.hotspot-rules {
  left: 3.5%;
  top: 39.5%;
  width: 16.5%;
  height: 8.8%;
}

.hotspot-clickhere {
  left: 31.1%;
  top: 67.2%;
  width: 5%;
  height: 3.5%;
}

.intro {
  padding: 2rem 1rem;
  text-align: center;
}

.form-wrap {
  margin-bottom: 75px;
}

form {
  display: grid;
  gap: .75rem;
  max-width: 420px;
  margin: 0 auto;
}

input {
  width: 100%;
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.row label {
  flex: 1 1 100%;
}

@media(min-width:500px) {
  .row label {
    flex: 1
  }
}

button {
  padding: .75rem;
  border: none;
  border-radius: 4px;
  background: #1976d2;
  color: #fff;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 1rem 0;
  font-size: .875rem;
  background: #eee;
  margin-top: auto;
}

.errors p {
  color: #c00;
  margin: 0;
}

.modal-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(24, 30, 60, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalbg-fade .25s;
}

@keyframes modalbg-fade {
  from {
    background: rgba(24, 30, 60, 0);
  }

  to {
    background: rgba(24, 30, 60, 0.22);
  }
}

.modal-box {
  background: #fff;
  min-width: 260px;
  max-width: 95vw;
  width: 360px;
  border-radius: 18px;
  box-shadow: 0 4px 38px rgba(24, 40, 85, 0.17);
  padding: 2rem 1.5rem 1.3rem 1.5rem;
  border: 2px solid #f3b3b3;
  text-align: center;
  position: relative;
  animation: popin .2s cubic-bezier(.77, 0, .18, 1.09);
}

@keyframes popin {
  0% {
    transform: scale(0.88);
  }

  80% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

.modal-box p {
  color: #b22424;
  margin: 0 0 0.7rem 0;
  font-size: 1.05rem;
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #a55;
  cursor: pointer;
  line-height: 1;
  transition: color 0.14s;
}

.modal-close:hover {
  color: #e00;
}