/* Estilos fieldset y leyenda */
fieldset {
  background-color: #f0f8ff;
  border: 2px solid #4a90e2;
  border-radius: 10px;
  padding: 15px 20px 20px 20px;
  margin-bottom: 30px;
  position: relative;
}

legend {
  background-color: #4a90e2;
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Layout form con filas y columnas */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.col-6 {
  flex: 1 1 45%;
  min-width: 250px;
}

.col-12 {
  flex: 1 1 100%;
}


.phone-input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
}

.phone-wrapper {
  display: flex;
  gap: 8px;
}

.phone-wrapper select {
  width: 120px;
  padding: 8px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1.5px solid #ccc;
  background-color: white;
  cursor: pointer;
}

.phone-wrapper input[type="tel"] {
  flex: 1;
  padding: 8px 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1.5px solid #ccc;
  box-sizing: border-box;
}

.phone-wrapper select:focus,
.phone-wrapper input[type="tel"]:focus {
  border-color: #4a90e2;
  outline: none;
}

.msg-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 12px 20px;
  margin: 15px 0;
  border-radius: 6px;
  font-weight: bold;
}

/* Ajustes para móvil */
@media (max-width: 768px) {
  .row {
    display: block;
  }
  .col-6, .col-12 {
    flex: none;
    width: 100%;
    min-width: auto;
  }
}

/* Ajustes para inputs y labels */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 1rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: #4a90e2;
  outline: none;
}

/* Botón estilo */
button[type="submit"] {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

button[type="submit"]:hover {
  background-color: #357ABD;
}
