/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: #f5f6fa;
  min-height: 100vh;
  padding: 15px;
  background-image: url("/static/imagens/corrida.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* MOBILE FIRST */
  display: block;
}

/* evita corte lateral */
body, html {
  overflow-x: hidden;
}

/* ================= LOGO ================= */

.img-logo {
  width: 100%;
  max-width: 898px;
  height: auto;
  border-radius: 15px;
}

#statusImg {
  display: none;
}

/* ================= CONTAINERS ================= */

.termo-res,
.count-div,
.paragrafos,
.container {
  background: #ffffff;
  width: 100%;
  max-width: 900px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 auto;
}

.count-div {
  background: #ffb6b8;
  opacity: .85;
}

.container01 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ================= TIPOGRAFIA ================= */

h1 {
  font-size: 18px;
  margin-bottom: 15px;
}

h2 {
  font-size: 18px;
  margin: 20px 0 10px;
}

p {
  margin-bottom: 15px;
  line-height: 1.4;
  color: #555;
  font-size: 12px;
}

/* ================= FORM ================= */

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  flex-direction: column; /* MOBILE FIRST */
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

label {
  font-size: 15px;
  margin-bottom: 5px;
  font-weight: bold;
}

/* ================= INPUTS ================= */

input,
select,
textarea {
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px; /* 🔥 ESSENCIAL: evita zoom iOS */
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus {
  outline: none;
}

/* ================= BOTÕES ================= */

.buttons {
  margin-top: 20px;
  display: flex;
  flex-direction: row; /* MOBILE FIRST */
  gap: 15px;
}


button {
  padding: 15px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  width: 100%;
}


input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  padding: 0 !important;
  border-radius: 3px;
  accent-color: #ff5a5a;
  width: 18px;
  height: 18px;
}

/* ================= MODAL ================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  color: #000000;
  width: 90%;
  max-width: 580px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  text-align: center;
}

.modal-box h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.modal-box p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-box button {
  background: #ffb6b8;
  color: #ffffff;
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  font-size: 16px;
}

/* ================= DESKTOP ================= */

@media (min-width: 1023px) {

  body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .termo-res,
  .count-div,
  .paragrafos,
  .container {
    padding: 35px;
  }

  .form-row {
    flex-direction: row;
  }

  .buttons {
    flex-direction: row;
    justify-content: end;
  }

  button {
    width: auto;
  }

  h1 {
    font-size: 26px;
  }

  p {
    font-size: 18px;
  }

}