/* Old world Door (c) 2025. */

.loading-overlay-mail {
  display: none; /* Hide initially */
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  font-size: medium;
  line-height: 100vh;
  z-index: 1000;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
  color: whitesmoke;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.85);
}

header h1 {
  color: whitesmoke;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;            
  font-size: 3vmax;
  font-weight: lighter;
  margin: 0;
  flex-grow: 1;
  white-space: normal;
  word-break: break-word;
}


.header .logo {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
}

#logoEmpresa {
  width: 10rem;
  height: auto;
  transition: opacity 0.4s ease-in-out;
  opacity: 1;
}

.btn-danger {
  transition: .1s ease;
  max-width: 30%;  
}

.btn-success {
  transition: .1s ease;
}

input[type=checkbox], input[type=radio] {
  width: 30%;
  height: 20px !important;
}

footer {
  text-align: center;
  padding: 20px;
  color: whitesmoke;
  background-color: rgba(0, 0, 0, 0.9);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px), radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px) !important;
  background-size: 5px 5px, 7px 7px;
  background-blend-mode: screen;
}

footer p {
  margin: 5px;
}

footer a {
  color: #edcfb1;
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  color: white;
}

/* Responsividad tablet */
@media (max-width: 768px) {
  .header {
    flex-direction: column; /* logo arriba, título abajo */
    justify-content: center;
  }

  .header .logo {
    position: static; /* quita el absolute */
    margin-bottom: 8px;
  }

  .titulo {
    font-size: 1.2rem;
    max-width: 100%;
  }

  header h1 {
  font-weight: normal;
  }

  .container-contact-main {
    grid-template-columns: auto !important;
    padding: 1em;
  }

  .container-contact {
    grid-row: 1;
    margin-bottom: 1em;
  }

  .photo-contact p {
    height: 500px !important;
  }

  .photo-contact {
    margin-top: 20px;
    margin-bottom: 20px;
  }

    form {
        display: flex !important;
        flex-wrap: wrap;
    }

}

.fa-envelope {
  font-size: normal;
}

/* Inician Styles de la Form */

/* Container general */
.container-contact-main {
    display: grid;
    max-width: 1400px;
    grid-template-columns: auto 60%;
    column-gap: 10px;
    padding: 1em;
    margin: auto;
}

/* Styles de Contenido Principal */
.container-contact-main  {
  animation: fadeLeft 1s ease-in-out forwards;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

@keyframes fadeLeft {
    0% {
    opacity: 0.3;
    transform: scale(1) translateX(80%) translateY(0%);

    }
    50% {
    transform: scale(1) translateX(0%) translateY(0%);
    opacity: 1;
    }
}

.photo-contact {
    display: flex;
    border-radius: 10px;
    background-image: url('../img/logos-covers/drafting-owd-2.webp');
    background-size: cover;
    background-position: right;
}

.photo-contact p {
  width: auto;
  font-size: large;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-style: normal;
  color: white;
  text-shadow: 0px 1px black;
  padding: 10px;
  text-align: justify;
  margin: auto;
  background: linear-gradient(179deg, #ffffff00, #998a7900, #000000a8);
  height: -webkit-fill-available;
  align-content: end;
  border-radius: 10px;
}


/* Formulario contenedor */

.container-contact {
    max-width: 900px;
    width: 100%;
    padding: 20px;
    /*background-color: #f9f9f9c9;*/
    background: linear-gradient(135deg, #ffffff, #cbbeb2); 
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Organizar el formulario en 2 columnas */
form {
    width: 100%;
    display: grid;
    grid-template-columns: 40% auto;
    gap: 5px;
}

/* Estilos para las etiquetas */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

/* Estilos comunes para los inputs y selects */
input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: medium;
  background: #ffffffd9;
}


/* Ajustar el textarea */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* Acomodar el checkbox en una sola columna */
.checkbox {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Estilos para los botones */
input[type="reset"], input[type="submit"] {
    width: auto;
    min-width: fit-content;
    padding: 12px 20px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}


/* Acomodar los botones en una sola línea */
.form-buttons {
    min-width: 100%;
    grid-column: span 2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Estilo del texto debajo del formulario */

.text-contact {
    margin-top: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-contact p {
    font-size: 14px;
    line-height: 1.6;
}

.text-contact span {
    font-weight: bold;
    color: #e74c3c;
}
