body#Form_contrato_body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 20px;
}

.Form_contrato_container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 20px;
  gap: 2rem;
}


.Form_contrato_info {
  flex: 0 0 auto;
  max-width: 300px;
}

.Form_contrato_form_column {
  flex: 1;
}

/* Títulos */
.Form_contrato_section h2 {
  font-size: 22px;
  margin-bottom: 15px;
  border-bottom: 2px solid #007bff;
  padding-bottom: 5px;
}

.Form_contrato_section h3 {
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #444;
}

.Form_contrato_subsection {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  margin-top: 25px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Labels e inputs */
.Form_contrato_section label {
  font-weight: bold;
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  color: #333;
}

.Form_contrato_section input,
.Form_contrato_section select,
.Form_contrato_section textarea {
  width: 100%;
  padding: 10px;
  margin-top: 3px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  transition: border 0.2s;
}

.Form_contrato_section input:focus,
.Form_contrato_section select:focus,
.Form_contrato_section textarea:focus {
  border-color: #007bff;
  outline: none;
}

/* Filas de inputs */
.Form_contrato_row {
  display: flex;
  gap: 20px;
}

/* Todos los form-group se expanden por defecto */
.Form_contrato_row .form-group {
  flex: 1 1 auto;
}

.Form_contrato_row .form-group.form-hausnummer {
  flex: 0 0 160px;
  /* antes 120px */
  max-width: 160px;
}

.Form_contrato_row .form-group.form-plz {
  flex: 0 0 110px;
  max-width: 110px;
}

/* Hausnummer: tamaño fijo */
.form-hausnummer input {
  width: 100%;
  max-width: 160px;
}

/* PLZ: más pequeñito */
.form-plz input {
  width: 100%;
  max-width: 110px;
}

/* Contenedor para cada campo */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

/* El input */
.form-group input {
  width: 100%;
  padding: 1rem 0.5rem 0.5rem;
  /* espacio arriba para el label flotante */
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #0077ff;
  /* azulito simpático */
}

/* El label */
.form-group label {
  position: absolute;
  left: 0.75rem;
  top: 1rem;
  font-size: 1rem;
  color: #888;
  pointer-events: none;
  transition: 0.2s ease all;
  margin: 0;
  /* 👈 resetea el margin heredado */
  font-weight: normal;
  /* 👈 evita el bold heredado */
}


/* Cuando el input está enfocado o lleno */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
  top: 0.3rem;
  left: 0.6rem;
  font-size: 0.75rem;
  color: #0077ff;
}

/* Contenedor del select para mantener consistencia con los form-group */
.form-group select {
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover y foco */
.form-group select:hover,
.form-group select:focus {
  border-color: #007bff;
  background-color: #eef5ff;
  outline: none;
}

/* Label flotante: solo para inputs, no select */
.form-group select+label {
  display: block;
  position: static;
  /* evita posicionamiento absoluto */
  margin-top: 6px;
  /* margen normal */
  font-size: 0.9rem;
  color: #666;
}

/* Opcional: flecha personalizada (solo estética) */
.form-group select {
  appearance: none;
  /* quita el estilo nativo */
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><polygon points='0,0 12,0 6,6' fill='%23666'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

/* Leyenda pequeña encima del select */
.form-group .form-legend {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 4px;
  display: block;
}



/* Botones */
.Form_contrato_button {
  background-color: #007bff;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 25px;
  font-weight: bold;
  transition: background 0.2s;
}

.Form_contrato_button:hover {
  background-color: #0056b3;
}

/* Opciones horizontales con checkbox/radio grandes */
.Form_contrato_options {
  display: flex;
  gap: 3px;
  /* espacio pequeñito entre opciones */
  margin-top: 15px;
  flex-wrap: wrap;
  /* para que no explote en pantallas chicas */
}

/* Ocultamos los radios */
.Form_contrato_options input[type="radio"] {
  display: none;
}


.Form_contrato_options label {
  cursor: pointer;
}

.Form_contrato_options label span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #f9f9f9;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.Form_contrato_options label span:hover {
  background: #eef5ff;
  border-color: #007bff;
}

/* Cuando está seleccionado */
.Form_contrato_options input[type="radio"]:checked+span {
  background: #0258b5;
  color: white;
  border-color: #012040;
  font-weight: bold;
}

.Form_contrato_steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  position: relative;
}

.Form_contrato_steps .step {
  text-align: center;
  flex: 1;
  position: relative;
}

/* Línea gris entre pasos (siempre igual) */
.Form_contrato_steps .step::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 3px;
  background-color: #ddd;
  z-index: -1;
}

.Form_contrato_steps .step:last-child::after {
  display: none;
}

/* Círculo base */
.circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 auto;
  line-height: 32px;
  font-weight: bold;
  color: #fff;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Paso activo (azul con número) */
.step.active .circle {
  background-color: #007bff;
  transform: scale(1.1);
}

/* Paso completado (verde con check) */
.step.completed .circle {
  background-color: #28a745;
  font-size: 18px;
}

/* Texto debajo */
.label {
  margin-top: 5px;
  font-size: 12px;
  color: #333;
}

.date-choice {
  display: flex;
  gap: 15px;
  margin: 10px 0;
}

.date-option {
  flex: 1;
  padding: 15px;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.date-option:hover {
  border-color: #007bff;
  background: #f0f8ff;
}

.date-option.active {
  border-color: #007bff;
  background: #007bff;
  color: #fff;
  font-weight: bold;
}

.gut-choice {
  display: flex;
  gap: 15px;
  margin: 10px 0;
}

.gut-option {
  flex: 1;
  padding: 15px;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  background: #f9f9f9;
}

.gut-option:hover {
  border-color: #007bff;
  background: #f0f8ff;
}

.gut-option.active {
  border-color: #007bff;
  background: #007bff;
  color: #fff;
  font-weight: bold;
}



/* Checkbox / radio grandes */
.Form_contrato_options input[type="radio"],
.Form_contrato_options input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  cursor: pointer;
}

.Form_contrato_table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.Form_contrato_table td {
  padding: 10px;
  vertical-align: middle;
  border-bottom: 1px solid #ddd;
}

.Form_contrato_table td:first-child {
  text-align: left;
  font-weight: normal;
}

.Form_contrato_table input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.Form_contrato_table input[type="text"] {
  margin-left: 10px;
  padding: 5px;
  font-size: 0.9rem;
}

/* Contenedor principal del resumen */


/* Título del resumen */
#auto_section h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #222;
  border-bottom: 2px solid #007BFF;
  display: inline-block;
  padding-bottom: 5px;
}

/* Caja que contiene los datos */
/* Contenedor interno de resumen */
.summary-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

/* Cada línea como tarjeta interna */
.summary-box p {
  margin: 0;
  padding: 12px 16px;
  background: #f5f7ff;
  /* fondo suave */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, background 0.2s ease;
}

/* Animación al pasar el mouse */
.summary-box p:hover {
  background: #e6ecff;
  transform: translateY(-2px);
}

/* Etiquetas en negrita y color */
.summary-box p strong {
  font-weight: 600;
  color: #007BFF;
  min-width: 140px;
  /* para alinear columnas */
}

/* Objekttyp en mayúsculas */
#summary_objekttyp {
  text-transform: uppercase;
}

/* Iconos como PNG solo para las otras líneas */
.summary-box p span {
  font-weight: 500;
  color: #222;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(5px);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Cuando JS rellena el valor, agregar clase .visible */
.summary-box p span.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Iconos PNG usando background-image */
#summary_wohnflaeche::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('/assets/images/grundriss.png');
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

#summary_zimmer::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('/assets/images/wohnung.png');
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

#summary_keller::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('/assets/images/keller.png');
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}



/* Afecta solo esta sección */
.moeblierung-options {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin: 15px 0;
}

.moeblierung-options .moeblierung-option {
  display: flex;
  flex-direction: column;
  /* imagen arriba, texto debajo */
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;

  /* reset de estilos heredados tipo botón */
  all: unset;
  /* quita todo estilo heredado */
  display: flex;
  /* restauramos el display necesario */
  flex-direction: column;
  align-items: center;
}

.moeblierung-options .moeblierung-option input {
  display: none;
  /* escondemos el radio clásico */
}

.moeblierung-options .img-container {
  position: relative;
  display: inline-block;
}

.moeblierung-options img {
  width: 130px;
  height: 120px;
  border: 2px solid transparent;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.3s ease, border 0.3s ease;
}

/* Zoom al pasar el mouse */
.moeblierung-options .moeblierung-option:hover img {
  transform: scale(2.3);
  z-index: 10;
  position: relative;
}

/* Borde y sombra cuando está seleccionado */
.moeblierung-options .moeblierung-option input:checked+.img-container img {
  border-color: #007BFF;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* Texto debajo */
.moeblierung-options .moeblierung-option span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

/* Texto subrayado y azul cuando se selecciona */
.moeblierung-options .moeblierung-option input:checked+.img-container+span {
  text-decoration: underline;
  font-weight: bold;
  color: #007BFF;
}





/* Tabla (para lista de muebles) */
#Form_contrato_umzugsliste {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

#Form_contrato_umzugsliste th,
#Form_contrato_umzugsliste td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: center;
  vertical-align: middle;
}

#Form_contrato_umzugsliste input[type="text"],
#Form_contrato_umzugsliste input[type="number"] {
  width: 100%;
  padding: 0.3rem;
  box-sizing: border-box;
  font-size: 0.9rem;
}

#Form_contrato_umzugsliste button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

#Form_contrato_umzugsliste button:hover {
  background-color: #c0392b;
}