.contact-container {
    overflow-y: auto;
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 30, 0.85);
    border-radius: 24px;
    box-shadow: 0 0 40px #00fff7, 0 0 10px #0ff;
    padding: 40px;
    text-align: left;
    max-width: 600px;
    width: 90%;
    max-height: 75vh;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .contact-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        padding: 120px 20px 20px 20px; /* Afegit padding-top extra per evitar que el navbar tapi el títol */
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        overflow-y: auto;
        box-sizing: border-box;
    }
}

        .contact-title {
            font-family: 'Press Start 2P', Arial, sans-serif;
            color: #fff;
            text-align: center;
            margin-bottom: 30px;
            font-size: 1.5rem;
            text-shadow: 0 0 10px #00fff7;
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-label {
            font-family: 'Press Start 2P', Arial, sans-serif;
            color: #fff;
            font-size: 0.8rem;
            text-shadow: 0 0 5px #F20881;
        }

        .form-input, .form-textarea {
            background: rgba(10, 10, 30, 0.7);
            border: 2px solid #F20881;
            border-radius: 8px;
            padding: 12px;
            color: #fff;
            font-size: 1rem;
            transition: border-color 0.3s, box-shadow 0.3s;
            font-family: Arial, sans-serif;
        }

        .form-input:focus, .form-textarea:focus {
            outline: none;
            border-color: #00fff7;
            box-shadow: 0 0 10px #00fff7;
        }

        .form-textarea {
            resize: vertical;
            min-height: 120px;
        }

        .submit-btn {
            font-family: 'Press Start 2P', Arial, sans-serif;
            font-size: 1rem;
            color: #fff;
            background: transparent;
            border: 2px solid #F20881;
            border-radius: 8px;
            padding: 16px 32px;
            cursor: pointer;
            box-shadow: 0 0 8px #F20881, 0 0 32px #F20881 inset;
            text-shadow: 0 0 8px #F20881, 0 0 2px #fff;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s;
            margin-top: 10px;
        }

        .submit-btn:hover {
            background: #F20881;
            color: #0a0a1e;
            box-shadow: 0 0 24px #F20881, 0 0 64px #F20881 inset;
        }

        .back-btn {
            position: fixed;
            top: 20px;
            left: 30px;
            font-family: 'Press Start 2P', Arial, sans-serif;
            font-size: 0.8rem;
            color: #fff;
            background: transparent;
            border: 2px solid #00fff7;
            border-radius: 8px;
            padding: 10px 20px;
            cursor: pointer;
            box-shadow: 0 0 8px #00fff7;
            text-shadow: 0 0 8px #00fff7;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s;
            text-decoration: none;
            z-index: 1001;
        }

        .back-btn:hover {
            background: #00fff7;
            color: #0a0a1e;
            box-shadow: 0 0 24px #00fff7;
            text-decoration: none;
        }

        .contact-info {
            background: rgba(10, 10, 30, 0.6);
            border: 1px solid #00fff7;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 30px;
        }

        .contact-info h3 {
            font-family: 'Press Start 2P', Arial, sans-serif;
            color: #14e1c9;
            font-size: 1rem;
            margin-bottom: 15px;
           
        }

        .contact-info p {
            color: #fff;
            margin: 8px 0;
            font-size: 0.9rem;
        }

        .success-message {
            background: rgba(0, 255, 0, 0.2);
            border: 2px solid #00ff00;
            border-radius: 8px;
            padding: 15px;
            color: #00ff00;
            text-align: center;
            margin-bottom: 20px;
            font-family: 'Press Start 2P', Arial, sans-serif;
            font-size: 0.8rem;
        }

        .error-message {
            background: rgba(255, 0, 0, 0.2);
            border: 2px solid #ff0000;
            border-radius: 8px;
            padding: 15px;
            color: #ff0000;
            text-align: center;
            margin-bottom: 20px;
            font-family: 'Press Start 2P', Arial, sans-serif;
            font-size: 0.8rem;
        }

        .contact-link {
            color: #e5ff00;
            text-decoration: none;
            font-family: 'Press Start 2P', Arial, sans-serif;
            font-size: 0.6rem;
        }

        @media (max-width: 600px) {
            .contact-container {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                transform: none;
                padding: 40px 20px 20px 20px; /* Afegit padding-top extra per evitar que el navbar tapi el títol */
                width: 100vw;
                height: 100vh;
                max-width: none;
                max-height: none;
                overflow-y: auto;
                box-sizing: border-box;
            }
            
            .contact-title {
                font-size: 1.2rem;
                margin-top: 10px;
            }
            
            .form-label {
                font-size: 0.7rem;
            }
            
            .submit-btn {
                font-size: 0.8rem;
                padding: 12px 24px;
            }
            
            .back-btn {
                font-size: 0.7rem;
                padding: 8px 16px;
                position: fixed;
                top: 10px;
                left: 10px;
                z-index: 1001;
            }
        }