* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    padding: 0;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    display: flex;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}

hr {
  margin-top: 20px;
  margin-bottom: 20px;
  height: 4px;
  border: none;
  background: repeating-linear-gradient(90deg,#e4042c,#e4042c 6px,transparent 6px,transparent 12px);
}

p {
  color: #808080;
  margin-top: 20px;
}

.content-container {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: row;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.logo-wrapper img {
  width: 200px;
}

.image-wrapper {
  width: 35vw;
  padding: 40px;
  display: flex;
}

.image-wrapper img {
  object-fit: cover;
  width: 100%;
  border-radius: 15px;
  filter: brightness(80%);
}

.form-wrapper {
    width: 65vw;
    padding: 40px;
    overflow-y: auto;
}

form {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
}

h2 {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  background-color: #e4e4e4;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}


input, select, textarea, button {
      width: 100%;
      margin-top: 6px;
      padding: 8px;
      font-size: 14px;
      color: #414047;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23666' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-control:focus {
  background-color: #fff;
  box-shadow: 0 0 0 2px #e4042c; /* azul */
}

textarea.form-control {
  resize: none;
  min-height: 120px;
}

select {
    background-color: #f5f5f5;
    border-radius: 5px;
    border-color: none;
}

button {
      margin-top: 20px;
      background: #e4042c;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
}

button:hover {
    background: #a1021f;
}

.message {
    margin-top: 15px;
    font-size: 14px;
}

.hidden {
  display: none;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.modal-content h3 {
  margin-top: 0;
}

.modal-content button {
  margin-top: 16px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #e4042c;
  color: white;
  cursor: pointer;
}

.modal-content.success {
  border-left: 4px solid #28a745;
}

.modal-content.error {
  border-left: 4px solid #e4042c;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#submitBtn:disabled {
  background: #a1021f;
  cursor: not-allowed;
  opacity: 0.8;
}

#loadingSpinner {
  display: inline-flex;
  align-items: center;
}

#loadingSpinner.hidden {
  display: none;
}

/* INVITADOS */

.invitado {
  display: grid;
  /* Crea 3 columnas: una de 100px, otra que ocupa el resto (1fr) y otra de 200px */
  grid-template-columns: 1fr 1fr 50px;
  /* Crea 2 filas de 150px cada una */
  gap: 10px;
  margin-top: 10px;
}

.invitado button {
  margin-top: 6px;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  body {
    height: auto;
    min-height: 100vh;
  }

  .content-container {
    flex-direction: column;
  }

  .image-wrapper {
    display: none;
  }

  .form-wrapper {
    width: 100%;
    padding: 20px;
  }

  form {
    width: 100%;
    padding: 15px;
  }

  .invitado {
    grid-template-columns: 1fr;
  }

  .invitado button {
    margin-top: 10px;
  }
}