


:root {
    --primary-blue: #4a90e2;
    --text-dark: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
  overscroll-behavior: none;
}

body {
    margin: 0;
    font-family: "Quicksand", sans-serif;
    color: var(--text-dark);
    background-image: url("https://res.cloudinary.com/dvgldrfbh/image/upload/v1782089269/beach-and-large-ocean-waves-coast-as-a-background-2026-03-19-10-49-11-utc_ntgsa6_htcptb.webp");
    background-size: cover;
    background-attachment: fixed;
}

/* Navbar Estilo Easytrip */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background: white;
}

.logo {
    font-size: 24px;
    font-weight: 500;
    color: #444;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    margin-left: 30px;
    letter-spacing: 1px;
}

/* Sección Principal con la Curva */

.form-content {
    margin-left: 35%;
    padding: 40px 30px;
    z-index: 2;
    width: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

h1 {
    font-size: 32px;
    margin-bottom: 5px;
    color: #2d3436;
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Estilo del Formulario */
.travel-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-row {
    display: flex;
    gap: 15px;
}

.input-group, .input-full {
    display: flex;
    flex-direction: column;
    flex: 1;

}

label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-light);
}

label span { color: #e74c3c; }

input, select {
    padding: 12px;
    border: 1px solid #edf2f7;
    background: #fdfdfd;
    border-radius: 25px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}


.btn-submit {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 20px;
    background-color: #002550;
}

.btn-submit:hover {
    background-color: #006c43;
}


.input-group input,
.input-group select {
    width: 100%;
    padding: 14px;
    border-radius: 25px;
    border: 1px solid #ddd;
}

.btn__back {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: #001434;
  font-family: sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  background-color: #FFFFFF;
  margin: 10px;
}

.btn__back::before {
  content: '←';
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.btn__back:hover {
  background-color: #001434;
  color: #FFFFFF;
}

.btn__back:hover::before {
  transform: translateX(-4px);
}

/* Estilos para el estado de carga del botón */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espacio entre el spinner y el texto */
    transition: all 0.3s ease;
}

.btn-submit:disabled {
    background-color: #a0aec0; /* Color gris si está deshabilitado */
    cursor: not-allowed;
}

/* El círculo de animación (Spinner) */
.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff; /* Color de la línea que gira */
    animation: spin 0.8s linear infinite;
}

.cf-turnstile {
    margin-bottom: 15px;
}

/* Animación de rotación */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* =========================================
   DISEÑO RESPONSIVO (Tablets y Móviles)
   ========================================= */

/* Para Tablets y pantallas medianas (hasta 992px) */
@media screen and (max-width: 992px) {
    .navbar {
        padding: 20px 40px; /* Reducimos los márgenes laterales */
    }

    .form-content {
        /* Centramos el formulario y quitamos el margen del 35% */
        margin: 50px auto; 
        width: 80%; 
        max-width: 500px; /* Evita que sea gigante en pantallas intermedias */
    }
}

/* Para Teléfonos Móviles (hasta 768px) */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Apilamos el logo y los enlaces */
        padding: 15px 20px;
        gap: 15px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px; /* Separación uniforme entre enlaces */
    }

    nav a {
        margin-left: 0; /* Quitamos el margen estricto para que fluyan mejor */
        font-size: 14px;
    }

    .form-content {
        width: 92%; /* Aprovechamos más el ancho de la pantalla */
        padding: 30px 20px; /* Reducimos el relleno interno */
        margin: 30px auto;
    }

    h1 {
        font-size: 26px; /* Hacemos el título un poco más pequeño */
    }

    /* Convertimos las filas de inputs en columnas para que no queden apretados */
    .input-row {
        flex-direction: column;
        gap: 15px;
    }

    .btn-submit {
        font-size: 18px; /* Ajustamos el botón al tamaño móvil */
        padding: 12px;
    }
}

