
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}
.nav-links {
    display: flex;
  justify-content: center; /* Centra los elementos horizontalmente */
  align-items: center;    /* Centra los elementos verticalmente (opcional) */
 }

/* --- Contenidor del Formulari --- */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: radial-gradient(circle, #2a0808 0%, #121212 100%);


}

.contact-box {
     
    max-width: 600px;
    width: 100%;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(255, 69, 0, 0.15);
   border-radius: 20px;
   border:solid 5px #180203;
}

.contact-box h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
    color: #e40a85;
}

.contact-box h1 span {
    color: #ff4500; /* Taronja foc */
}

.contact-box p {
    text-align: center;
    color: #aaa;
    margin-bottom: 30px;
    font-size: 0.8rem;
}

/* --- Grups de Formularis --- */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #ddd;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    background-color: #262626;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.4);
}

/* Estil per al selector (desplegable) */
.form-group select option {
    background-color: #1a1a1a;
    color: #fff;
}

/* Cas especial del Checkbox */
.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: #ff4500;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #bbb;
    cursor: pointer;
}

/* --- Botó d'enviament --- */
.btn-submit {
    background: linear-gradient(135deg, #ff4500 0%,  #660033 100%);
    color: #fff;
    border: none;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 100, 0, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333; /* Cambia esto al color de tu tema */
    transition: all 0.3s ease-in-out;
}
.nav-links {
    display: flex;
    list-style: none;
     border: 3px solid #000000;
   
}

.nav-links li a {
    color: #f5f2eb;
    text-decoration: none;
    padding: 5px 5px;
    transition: all 0.3s ease;
    border-radius: 4px;

}

.nav-links li a:hover, .nav-links li a.active {
    color: #2c221e;
    background-color: #d4af37;
}

 @media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001; /* Asegura que quede por encima de otros elementos */
    }

    .nav-links {
        display: none; /* Oculto por defecto */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Ajusta según la altura de tu header */
        left: 0;
        width: 100%;
        background-color: #262626; /* Cambia esto al fondo de tu menú */
        z-index: 1000;
    }
.hamburger span {
    height: 3px;
    width: 25px;
    background-color: #ffff;
    margin: 4px 0;
    transition: 0.3s;
}
    /* ESTA ES LA CLASE CLAVE QUE ACTIVA EL JAVASCRIPT */
    .nav-links.active {
        display: flex;
    }

    /* Animación opcional a "X" */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}