@import url('./Styles-general.css');

/* ===== CONTENEDOR ===== */
.formulario-container {
  max-width: 600px;
  margin: auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 15px;
  border-top: 6px solid #FF0000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.formulario-container h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #FF0000;
}

/* ===== LABELS ===== */
label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #4D4C4A;
}

/* ===== INPUTS ===== */
input, select, textarea, button {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 2px solid #FAC734;
}

/* ===== BOTON ===== */
button {
  margin-top: 15px;
  background: #FF0000;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #EA6F2C;
}

/* ===== MODAL ===== */
.modalForm {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: #4D4C4A;
}

.modal-content p {
  color: #FF0000;
}

/* ===== BOTON MODAL ===== */
.buttonForm {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: #FF0000;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.buttonForm:hover {
  background: #FAC734;
  color: #4D4C4A;
}

/* ===== SECCION FORM ===== */
.formulario {
  background-size: cover;
  background-repeat: no-repeat;
  padding: 80px 0;
  margin-top: 90px;
}

.formulario-box {
  margin-top: 30px;
  display: flex;
  gap: 60px;
  justify-content: center;
}

.formulario-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ===== CAMPOS ===== */
input,
textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #FAC734;
  border-radius: 8px;
  outline: none;
}

input:focus,
textarea:focus{
  border-color:#EA6F2C;
}

textarea {
  resize: none;
}

/* ===== BOTON PRINCIPAL ===== */
.button {
  font-weight: bold;
  font-size: 18px;
  border-radius: 10px;
  background-color: #FF0000;
  color: #fff;
  border: 1px solid transparent;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.button:hover {
  background-color: #FAC734;
  color: #4D4C4A;
  border: 1px solid #FAC734;
}

.formulario-section .button {
  padding: 12px 40px;
}

/* ===== MODAL ===== */
.modalForm {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 20% auto;
  padding: 20px;
  width: 100%;
  max-width: 820px;
  border-radius: 10px;
  position: relative;
}

.modal-content p {
  font-size: 26px;
  font-weight: bold;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media only screen and (max-width: 640px) {
  .formulario {
    margin-top: 80px;
    padding: 40px 0;
  }
}

@media only screen and (max-width: 960px) {
  .formulario-box {
    flex-direction: column;
  }

  .formulario-item {
    gap: 10px;
  }

  .button-container {
    margin-top: 12px;
  }
}