/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  background-color: #141518;
  font-family: 'Arial', sans-serif;
  height: 100vh;
}

/* Index Container */
.index {
  width: 100vw;
  height: 100vh;
}

/* Navbar Styling */
.navbar {
  background-color: black !important;
}

.nav-link {
  color: #fff !important;
}

/* Background Image Section */
.bg-image {
  color: white;
  min-height: 30rem;
  width: 100%;
  height: 100%;
  padding: 8rem 0;
  background-color: #222;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Masthead Styling */
.masthead h1 {
  font-size: 4rem;
  font-weight: bold;
}

@media (min-width: 992px) {
  .masthead {
    height: 100vh;
  }

  .masthead h1 {
    font-size: 5.5rem;
  }
}

/* Media Queries */
@media (max-width: 991px) {
  .masthead h1 {
    font-size: 3rem;
  }

  .bg-image {
    padding: 6rem 0;
  }
}

/* Additional Improvements */
.bg-image::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Optional overlay for better text contrast */
  z-index: -1;
}

/* Estilo para contenedor principal */
.custom-container {
  padding: 20px;
  max-width: 100%;
  margin: 0 auto;
}

/* Ajuste de la altura para la sección */
.full-height {
  background: #212529;
  margin: 50px auto;
  padding: 30px;
  border-radius: 10px;
}

/* Estilo de la tarjeta de formulario */
.custom-card {
  background: transparent;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: white;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 20px;
}

/* Estilo del título */
.form-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

/* Estilo de las columnas en el formulario */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.form-label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.custom-input {
  border-radius: 5px;
  padding: 12px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.custom-button {
  padding: 12px 24px;
  font-size: 16px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  width: 100%;
  max-width: 300px;  /* Esto lo hace más adaptable */
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.form-container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 20px;
}

/* Estilo de cada columna en el formulario */
.form-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr; /* Una columna */
    gap: 10px;
  }

  .custom-card {
    padding: 20px;
    border-radius: 0;
    min-height: 100vh;
  }

  .custom-button {
    width: 100%;
    max-width: none;
  }

  .form-container {
    padding: 10px;
  }

  /* Ajustes de fuente y tamaños de los campos */
  .form-title {
    font-size: 1.4rem;
  }

  .custom-input {
    font-size: 0.9rem;
  }

  .form-label {
    font-size: 0.9rem;
  }
}

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
}


/* Reducción de márgenes entre secciones */
.container.mt-5 {
  margin-top: 2rem !important; /* Reduce el margen superior */
}

/* Reducción del margen superior de los títulos */
.section-title {
  margin-top: 10px !important; /* Reduce el margen superior */
  margin-bottom: 10px !important; /* Opcional: Reduce el margen inferior */
}

/* Reducción de márgenes entre contenedores */
.form-container {
  margin-bottom: 15px !important; /* Reduce el espacio entre los formularios */
  padding: 15px !important; /* Opcional: Reduce el padding interno */
}

/* Ajustes en la tarjeta de totales */
.card.shadow-lg.mb-4 {
  margin-bottom: 15px !important; /* Reduce el margen inferior */
}

/* Reducción del espacio entre elementos internos */
.card-body h5 {
  margin-bottom: 8px !important; /* Reduce el espacio entre títulos */
}

.card-body p {
  margin-top: 5px !important; /* Reduce el espacio entre el título y el contenido */
  margin-bottom: 0 !important;
}

/* Ajustes para los botones */
.btn-section, .form-container .btn {
  margin-top: 10px !important; /* Reduce espacio entre botones */
  margin-bottom: 10px !important;
}

/* Ajustes generales para dispositivos móviles */
@media (max-width: 768px) {
  .form-container {
      padding: 10px !important; /* Menos padding en móviles */
  }

  .card-body {
      padding: 15px !important; /* Menos padding interno */
  }
}
