/* Estilos Generales y Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Contenedor Principal (Simula la pantalla del móvil) */
.app-container {
  width: 100%;
  max-width: 400px;
  height: 100vh;
  max-height: 850px;
  background-color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Cabecera */
.header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.logo-placeholder {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #e0e0e0 50%, #ffffff 50%);
  border: 1px solid #ccc;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 20px;
  color: #333;
  margin-right: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-transform: uppercase;
}

.header-subtitle {
  display: block;
  font-size: 0.83em;
  color: #666;
  /*margin-block-start: 1.67em;
  margin-block-end: 1.67em;*/
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  /*font-weight: bold;*/
  unicode-bidi: isolate;
}

/* Contenido del Formulario */
.form-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
  text-align: center;
}

.srnumber {
  font-family: Roboto, "PT Sans", Verdana, sans-serif;
  font-size: 24px;
  color: #276cf5;
  font-weight: 700;
  text-align: right;
  padding-right: 30px;
}

.spancodigo {
  font-family: Roboto, "PT Sans", Verdana, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #276cf5;
  white-space: nowrap;
}
.span-ensayo {
  font-size: small;
  font: 1em sans-serif;
}
.obralabel {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  padding-bottom: 80px; /* Espacio para el footer */
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;
  border: 1px solid #aaa;
  border-radius: 12px;
  color: #333;
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.form-control::placeholder {
  color: #999;
}

.form-control:focus {
  border-color: #6a1b9a;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
}

/* Radio Buttons (Observaciones) */
.radio-group {
  margin-top: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #777;
  border-radius: 50%;
  margin-right: 10px;
  outline: none;
  position: relative;
}

.radio-option input[type="radio"]:checked {
  border-color: #6a1b9a;
}

.radio-option input[type="radio"]:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #6a1b9a;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Footer y Botones */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
}

.btn {
  padding: 12px 24px;
  border-radius: 25px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  outline: none;
}

.btn-cancelar {
  background-color: #9e9e9e;
}
.btn-volver {
  background-color: #ef5350;
}
.btn-siguiente {
  background-color: #4caf50;
}
.btn-outline {
  background-color: transparent;
  color: #6a1b9a;
  font-weight: bold;
}

.btn-block {
  width: 100%;
  background-color: #4caf50;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
}

/* Paginación (Puntos) */
.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #ccc;
  border-radius: 50%;
}

.dot.active {
  background-color: #e65100;
}

/* Pasos del Formulario */
.step {
  display: none;
  height: 100%;
}

.step.active {
  display: flex;
  flex-direction: column;
}

/* Mensaje central step 4 */
.center-msg {
  text-align: center;
  color: #d32f2f;
  margin: 40px 0;
  font-size: 14px;
}

/* Input especial con unidad lateral */
.input-group {
  display: flex;
  align-items: center;
}
.input-group input {
  flex: 1;
}
.unit {
  margin-left: 10px;
  color: #777;
}

/*radio Buttons solicitud via*/
.radio-button-group input[type="radio"] {
  /* Hide the default radio button visually but keep it accessible */
  opacity: 0;
  position: fixed;
  width: 0;
}

.radio-button-group label {
  /* Style the label to look like a button */
  display: inline-block;
  background-color: #ddd;
  padding: 10px 10px;
  font-family: sans-serif, Arial;
  font-size: 14px;
  border: 2px solid #444;
  border-radius: 4px; /* Optional: for rounded button corners */
  cursor: pointer; /* Changes the cursor to a hand when hovering over the label */
  margin-right: 5px; /* Spacing between "buttons" */
}

.radio-button-group label:hover {
  /* Style the button on hover */
  background-color: #dfd;
}

.radio-button-group input[type="radio"]:checked + label {
  /* Style the label when its associated radio button is checked */
  background-color: #bfb;
  border-color: #4c4;
}

.tag-label {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 15px;
}
.tag-label.selected {
    background-color: #007bff; /* Blue background when selected */
    color: white;
    border-color: #0056b3;
}


/*table specimen rovided by client*/
@media screen and (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block; /* Stacks elements */
  }
  thead tr {
    position: absolute; /* Hides the original header visually but keeps it for screen readers */
    top: -9999px;
    left: -9999px;
  }
  tr {
    border: 1px solid #ccc;
    margin-bottom: 1em;
  }
  td {
    border: none;
    position: relative;
    padding-left: 50%; /* Make space for the data-label */
    text-align: right;
  }
  td::before {
    position: absolute;
    left: 6px;
    content: attr(data-label); /* Uses the data-label attribute for the label */
    font-weight: bold;
    float: left;
  }
}
