/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

/* === Base === */
html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #A2A0A4;
  background-image: url('Ciudad_Jardin_fondo.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'Courier New', Courier, monospace;
  color: #5b5860;
}

/* === Box === */
.box {
  width: 100%;
  max-width: 480px;
  background-color: #CFFD0B;
  padding: 48px;
}

/* === Logo === */
.logo-wrap {
  margin-bottom: 44px;
  text-align: center;
}

.logo {
  display: block;
  margin: 0 auto 10px;
  max-width: 100%;
  height: auto;
}

.clock {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: #5b5860;
  text-align: center;
  letter-spacing: 0.06em;
}

/* === Form === */
form {
  display: block;
}

.field {
  margin-bottom: 24px;
}

label {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  font-weight: normal;
  color: #5b5860;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

input[type="email"],
input[type="tel"] {
  display: block;
  width: 100%;
  background-color: #CFFD0B;
  border-top: 1px solid #5b5860;
  border-right: 1px solid #5b5860;
  border-bottom: 1px solid #5b5860;
  border-left: 1px solid #5b5860;
  border-radius: 0;
  padding: 10px 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  color: #5b5860;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  color: #5b5860;
  opacity: 0.45;
}

input[type="email"]:focus,
input[type="tel"]:focus {
  border-top-color: #5b5860;
  border-right-color: #5b5860;
  border-bottom-color: #5b5860;
  border-left-color: #5b5860;
  outline: none;
}

input.invalid {
  border-top-color: #5b5860;
  border-right-color: #5b5860;
  border-bottom-color: #5b5860;
  border-left-color: #5b5860;
}

.error {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  font-style: italic;
  color: #5b5860;
  margin-top: 5px;
  min-height: 15px;
  letter-spacing: 0.02em;
}

/* === Button === */
button[type="submit"] {
  display: block;
  width: 100%;
  background-color: #CFFD0B;
  color: #5b5860;
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-left: none;
  border-radius: 0;
  padding: 14px 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  margin-top: 8px;
  -webkit-appearance: none;
  appearance: none;
}

button[type="submit"]:hover {
  text-decoration: underline;
}

/* === Success message === */
.success-msg {
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  color: #5b5860;
  text-align: center;
  padding: 24px 0;
  letter-spacing: 0.04em;
}

/* === Footer === */
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #5b5860;
  text-align: center;
}

footer p {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: #5b5860;
  letter-spacing: 0.06em;
}

/* === Mobile === */
@media (max-width: 540px) {
  body {
    padding: 0;
    align-items: flex-start;
    background-image: url('Ciudad_Jardin_fondo mobile.webp');
  }

  .box {
    max-width: 100%;
    padding: 36px 24px;
    min-height: 100vh;
  }

  /* Prevent iOS auto-zoom on input focus (requires font-size >= 16px) */
  input[type="email"],
  input[type="tel"] {
    font-size: 16px;
  }
}
