/* Import Google font - Poppins */
@import url('https://fonts.cdnfonts.com/css/louis');

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

body {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow-x: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60%;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-left: 5%;
  z-index: 1;
}

.container header {
  font-size: 1.5rem;
  color: #333;
  font-weight: 500;
  text-align: center;
  margin-top: 1%;
}

.container .form {
  margin-top: 15px;
  width: 90%;
}

.form .input-box {
  width: 100%;
  margin-top: 10px;
}

.input-box label {
  color: #333;
  font-size: 1rem;
}

.form :where(.input-box input, .select-box) {
  position: relative;
  height: 40px;
  width: 100%;
  outline: none;
  font-size: 1rem;
  color: #707070;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 15px;
}

.input-box input:focus {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.form .column {
  display: flex;
  column-gap: 15px;
}

.form .gender-box {
  margin-top: 20px;
}

.gender-box h3 {
  color: #333;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.form :where(.gender-option, .gender) {
  display: flex;
  align-items: center;
  column-gap: 50px;
  flex-wrap: wrap;
}

.form .gender {
  column-gap: 5px;
}

.gender input[type="radio"] {
  -webkit-appearance: none; /* Elimina el estilo por defecto en Safari/Chrome */
  -moz-appearance: none; /* Elimina el estilo por defecto en Firefox */
  appearance: none; /* Elimina el estilo por defecto en navegadores modernos */
  width: 20px; /* Tamaño personalizado */
  height: 20px; /* Tamaño personalizado */
  border: none; /* Elimina el contorno */
  margin: 0 5px 0 0; /* Espaciado */
  position: relative;
  cursor: pointer;
  background: #f0f0f0; /* Color de fondo cuando no está seleccionado */
  border-radius: 50%; /* Forma circular */
  transition: all 0.2s ease;
}

.gender input[type="radio"]:checked {
  background: rgb(0,68,129); /* Color cuando está seleccionado */
}

.gender input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  width: 12px; /* Tamaño del punto interior */
  height: 12px; /* Tamaño del punto interior */
  background: white; /* Color del punto interior */
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.gender input[type="radio"]:focus {
  outline: none; /* Elimina el outline al enfocar */
  box-shadow: 0 0 0 2px rgba(4,50,99,0.3); /* Opcional: sombra para accesibilidad */
}

.form :where(.gender input, .gender label) {
  cursor: pointer;
}

.gender label {
  color: #707070;
  font-size: 1rem;
}

.form button {
  height: 55px;
  width: 100%;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgb(0,68,129);
}

.form button:hover {
  background: rgb(4, 50, 99);
}

.check-autorizar{
  margin-top: 30px;
  font-size: 1rem;
}

/* Estilos base del checkbox personalizado */
input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

input[type="checkbox"] + label {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1rem;
  color: #707070;
  line-height: 1.5;
  user-select: none;
  transition: all 0.2s ease;
}

/* Caja del checkbox */
input[type="checkbox"] + label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 2px solid #ccc;
  background: #fff;
  border-radius: 4px;
  transition: all 0.2s ease;
}

/* Checkmark - VERSIÓN CORREGIDA */
input[type="checkbox"] + label:after {
  content: "";
  position: absolute;
  left: 8px; /* Ajustado para mejor centrado */
  top: 1px;  /* Posición corregida */
  width: 8px;
  height: 14px;
  border: solid white;
  border-width: 0 3px 3px 0;
  opacity: 0;
  transform: rotate(45deg); /* Rotación corregida */
  transition: all 0.2s ease;
}

/* Estado checked */
input[type="checkbox"]:checked + label:before {
  background: rgb(0, 68, 129);
  border-color: rgb(0, 68, 129);
}

input[type="checkbox"]:checked + label:after {
  opacity: 1;
}

/* Estados hover y focus */
input[type="checkbox"]:not(:disabled):hover + label:before {
  border-color: rgb(0, 68, 129);
}

input[type="checkbox"]:focus + label:before {
  box-shadow: 0 0 0 3px rgba(0, 68, 129, 0.2);
}

/* Estado disabled */
input[type="checkbox"]:disabled + label {
  color: #ccc;
  cursor: not-allowed;
}

input[type="checkbox"]:disabled + label:before {
  background-color: #f5f5f5;
  border-color: #ddd;
}

input[type="checkbox"]:checked:disabled + label:before {
  background-color: #ddd;
  border-color: #bbb;
}

.img-chevy{
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: auto;
  object-fit: cover;
  z-index: 0;
}

/* Media Queries para tablet */
@media screen and (max-width: 1073px) {
    input[type="checkbox"] + label:after {
    left: 8x;
    top: 14px;
    width: 7px;
    height: 12px;
    border-width: 0 3x 3x 0;
  }
}

/* Media Queries para móvil */
@media screen and (max-width: 768px) {
  body {
    flex-direction: column;
  }
  
  .container {
    width: 100%;
    margin: 10px auto;
    padding: 15px;
  }
  
  .form .column {
    flex-direction: column;
    gap: 10px;
  }
  
  .form :where(.gender-option, .gender) {
    column-gap: 20px;
    row-gap: 10px;
  }
  
  .img-chevy {
    position: relative;
    height: auto;
    width: 100%;
    order: 2;
  }
  
  .container {
    order: 1;
  }
  
  .form button {
    font-size: 1.2rem;
    height: 50px;
  }

  input[type="checkbox"] + label {
    font-size: 0.9rem;
    padding-left: 30px;
  }
  
  input[type="checkbox"] + label:before {
    width: 20px;
    height: 20px;
  }
  
  input[type="checkbox"] + label:after {
    left: 7px;
    top: 1px;
    width: 7px;
    height: 12px;
    border-width: 0 3px 3px 0;
  }

}

@media screen and (max-width: 572px) {
  input[type="checkbox"] + label:after {
    left: 7px;
    top: 12px;
    width: 7px;
    height: 12px;
    border-width: 0 3px 3px 0;
  }
}

@media screen and (max-width: 480px) {
  .container header {
    font-size: 1.2rem;
  }
  
  .check-autorizar {
    font-size: 0.9rem;
  }

  input[type="checkbox"] + label:after {
    left: 7px;
    top: 11px;
    width: 7px;
    height: 12px;
    border-width: 0 3px 3px 0;
  }
}

/*ESTILOS PARA RESPUESTA*/
.loading {
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #004481;
    margin-bottom: 20px;
    text-align: center;
}

/* Estilo para el texto enfatizado */
.oferta-box:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.text-emphasis {
    font-weight: 500;
    color: #34495e;
}

/* Mantén los estilos existentes */
.response-container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: 'Louis', sans-serif;
}

.response-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.response-section h4 {
    color: #003366;
    margin-top: 0;
    font-weight: 600; /* Más peso para los títulos */
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #c62828;
}

.boton-regresar {
    display: inline-block;
    padding: 15px 30px;                     /* Más grande */
    background-color: rgb(0,68,129);               /* Color azul (cambia a tu preferencia) */
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 18px;                        /* Texto más grande */
    font-weight: 500;                       /* Texto un poco más grueso */
    transition: background-color 0.3s;      /* Efecto hover suave */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Sombra sutil */
    margin: 10px auto;                      /* Margen superior/inferior y centrado */
    width: 100%;
    text-align: center;
}

.boton-regresar:hover {
    background-color: rgb(4, 50, 99);               /* Color hover */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}