.select-and-button {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre select y botón */
    flex-wrap: wrap; /* Por si en pantallas pequeñas quieres que bajen */
    max-width: 100%;
  }
  
  .select-with-arrow {
    position: relative;
    flex: 1; /* Hace que el select tome el ancho disponible */
    min-width: 450px;
  }
  
  .select-with-arrow select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 16px;
    background-color: white;
    box-sizing: border-box;
    cursor: pointer;
  }
  
  .select-with-arrow i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    pointer-events: none;
  }
  
  .btn-primary {
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    text-decoration: none;
    background-color: #007bff; /* o el color de tu diseño */
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  #calculator-section {
    display: none;
}
  
  /* Colores corporativos */
:root {
  --azul-marino: #0B1F3A;
  --verde-bandera: #009849;
  --naranja: #FF6C2C;
  --azul-cielo: #3FC4E0;
  --gris-suave: #f3f3f3;
  --gris-claro: #e0e0e0;
  --gris-texto: #5f5f5f;
}

.main-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 50px;
  margin-top: 0;
}

.info {
  background-color: #E7F8F0;
  color: var(--verde-bandera);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
}

.form-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.control {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.control label {
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--azul-marino);
}

.control input {
  width: 20px;
  text-align: center;
  font-size: 16px;
  border: 1px solid var(--gris-claro);
  border-radius: 6px;
  padding: 4px 6px;
  margin: 0 8px;
  background-color: white;
  color: var(--azul-marino);
}

.control button {
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: bold;
  color: var(--azul-marino);
  border: 1px solid var(--gris-claro);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control button:hover {
  background-color: var(--gris-suave);
}

.section-divider {
  border-bottom: 1px solid #ddd;
  margin: 20px 0;
}

.radio-group {
  flex: 1;
}

.radio-group label {
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.radio-options label {
  margin-right: 20px;
  font-weight: normal;
  color: var(--gris-texto);
}

input[type="radio"] {
  accent-color: var(--verde-bandera);
  margin-right: 6px;
}

.hidden-section {
  margin-top: 10px;
}

.number-buttons button {
  margin-right: 8px;
  padding: 5px 10px;
  border: 1px solid var(--gris-claro);
  background-color: white;
  color: var(--azul-marino);
  border-radius: 8px;
  cursor: pointer;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.form-footer input[type="text"] {
  width: 80%;
  padding: 5px 10px;          /* Más compacto */
  border: 1px solid var(--gris-claro);
  border-radius: 6px;
  font-size: 14px;            /* Tamaño de texto menor */
  height: 38px;               /* Fijamos altura uniforme */
  box-sizing: border-box;
}

.form-footer select {
  width: 100%;
  padding: 6px 10px;          /* Igual que el input */
  border: 1px solid var(--gris-claro);
  border-radius: 6px;
  font-size: 14px;
  height: 38px;               /* Igual altura que el input */
  box-sizing: border-box;
  background: url('data:image/svg+xml;charset=UTF-8,<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%235f5f5f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 1rem center;
  background-size: 1em;
  appearance: none;
}


.step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.circle {
  display: inline-block;
  background-color: var(--azul-cielo);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  font-size: 14px;
  margin-right: 8px;
}

.btn-next {
  background-color: #d9d9d9;
  border: none;
  padding: 10px 30px;
  border-radius: 20px;
  font-size: 16px;
  cursor: not-allowed;
  color: #fff;
  transition: background-color 0.3s;
}

.btn-next.enabled {
  background-color: var(--verde-bandera);
  cursor: pointer;
}

.btn-next.enabled:hover {
  background-color: #007e3b;
}
 /* Estilos para ocultar la seleccion de autos */
 .hidden-section {
  display: none;
  margin-top: 10px;
}

.number-buttons button {
  margin: 3px;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f0f0f0;
  cursor: pointer;
}

.number-buttons button.active {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

/* ------------------------------------------------ */
/*Estilos de la segunda seccion del formulario*/
/* ------------------------------------------------ */

.next-section {
  display: none;
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
}

.next-section h2 {
  text-align: center;
  color: #1b1b1b;
  font-size: 24px;
  margin-bottom: 30px;
}

.next-section label {
  display: block;
  color: #333;
  font-weight: 500;
  margin-bottom: 8px;
}

.tipo-inmueble {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.tipo-inmueble button {
  flex: 1;
  padding: 20px;
  border: 2px solid #f17b57;
  background-color: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 150px;
}

.tipo-inmueble button.selected {
  border-color: #0b7c59;
  box-shadow: 0 2px 10px rgba(11, 124, 89, 0.2);
  color: #000000;
  font-weight: bold;
}

.area-antiguedad {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.area-antiguedad .campo {
  flex: 1;
  position: relative;
}

.area-antiguedad .campo input,
.area-antiguedad .campo select {
    width: 100%;
    padding: 10px 40px 10px 12px;
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid #ccc;
    font-size: 15px;
    background-color: #fff;
    box-sizing: border-box;
}

.area-antiguedad .campo span {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: gray;
    font-size: 14px;
    pointer-events: none;
    line-height: 1;
}


.area-antiguedad .campo span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: gray;
  font-size: 14px;
  pointer-events: none;
}

.step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.step-footer .step-text {
  font-size: 14px;
  color: #0b7c59;
  font-weight: bold;
}

.btn-next3,
.btn-next4 {
  background-color: #d9d9d9;
  border: none;
  padding: 10px 30px;
  border-radius: 20px;
  font-size: 16px;
  cursor: not-allowed;
  color: #fff;
  transition: background-color 0.3s;
}

/* Botón habilitado */
button.enabled {
    background-color: #4CAF50; /* Verde */
    color: white;
    cursor: pointer;
}

/* Botón deshabilitado */
button:disabled {
    background-color: #ccc; /* Gris */
    color: #666;
    cursor: not-allowed;
}

/* Estilos de seleccion tipo de propiedad*/

.tipo-btn {
  background-color: #c24343;
  border: 1px solid #ccc;
  padding: 12px 20px;
  border-radius: 20px;
  cursor: pointer;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.tipo-btn.selected {
  background-color: #b5d8fdc7;
  color: rgb(202, 0, 0);
  border-color: #287610;
}

/* --------------------------------------------------- */
/* Estilos de la tercera sección del formulario*/
/* --------------------------------------------------- */

.next-section3 {
  display: none;
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 800px;
  margin: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

h3 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.option,
.radio-option {
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 10px;
  align-items: flex-start;
  position: relative;
}

.option input[type="checkbox"],
.radio-option input[type="radio"] {
  margin-top: 3px;
  accent-color: #004AAD;
  transform: scale(1.2);
  cursor: pointer;
}

.option.selected,
.radio-option.selected {
  border-color: #004AAD;
  background: #E6F0FF;
}

.option.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.option .text,
.radio-option .text {
  display: flex;
  flex-direction: column;
}

.option .title,
.radio-option .title {
  font-weight: 600;
}

.subtitle {
  font-size: 14px;
  color: #666;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.checkbox-row:hover {
  background-color: #f0f0f0;
}


.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: #004AAD;
}

.note {
  font-size: 13px;
  color: #999;
  margin-top: 10px;
}

.radio-group-1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}


/* Estilos para el apartado de conservación de la propiedad tercera sección*/

.estado-conservacion {
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 20px;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 15px;
}

.estado-conservacion .titulo {
  font-size: 1rem;
  font-weight: 500;
  color: #3b3b3b;
  margin-bottom: 16px;
}

.opciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.radio-option1 {
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 10px;
  align-items: flex-start;
  position: relative;
}

.option input[type="checkbox"],
.radio-option1 input[type="radio"] {
  margin-top: 3px;
  accent-color: #004AAD;
  transform: scale(1.2);
  cursor: pointer;
}

.option.selected,
.radio-option1.selected {
  border-color: #31ad00;
  background: #E6F0FF;
}

.option.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.option .text,
.radio-option1 .text {
  display: flex;
  flex-direction: column;
}

.option .title,
.radio-option1 .title {
  font-weight: 600;
}
.subtitle {
  font-size: 14px;
  color: #666;
  display: flex;
}

/* ------------------------------------------------------------ */