* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
    display: flex;
    min-height: 100vh;
    max-width: 100%;
}

.left {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('img/bg1.jpeg') no-repeat center center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    color: white;
    padding: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left h2 {
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.left p {
    margin-bottom: 20px;
    color: white;
    text-align: center;
    font-size: 20px;
}

#correu {
    font-size: 20px;
    font-weight: bold;
}

.text {
    margin-bottom: 25px;
    color: white;
    text-align: center;
    font-size: 18px;
}

.formulari {
    display: flex;
    background-color: #ffffff44;
    border-radius: 10px;
    padding: 20px;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto;
    width: fit-content;
}

.formulari form {
    width: 400px;
}

.imatge-dreta img {
    width: 200px;
    height: auto;
}

.left label {
    display: block;
    margin-bottom: 10px;
    color: white;
    transition: all 0.3s ease;
}

.left textarea {
    width: 100%;
    resize: vertical;
    border-radius: 5px;
    font-size: 14px;
    padding: 2%;
    transition: all 0.3s ease;
}

.left button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: white;
    border: none;
    color: #002d74;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.left button:hover {
    background-color: #002d74;
    color: white;
}

.logo {
    width: auto;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    align-items: center;
}

.logo img {
    width: 15%;
    transition: all 0.3s ease;
}

input[type="radio"]:checked {
    border: 7px solid white;
}

input[type="radio"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid white;
    border-radius: 100%;
    outline: none;
    cursor: pointer;
    position: relative;
    margin-bottom: 1%;
    vertical-align: middle;
}

@media (max-width: 1024px) {
    .left form {
        width: 40%;
    }

    .logo img {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .formulari {
        flex-direction: column;
    }

    .formulari form {
        width: 100%;
    }

    .imatge-dreta img {
        width: 150px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .left {
        padding: 15px;
    }

    .logo img {
        width: 60%;
    }

    .left h2 {
        font-size: 20px;
    }

    .left textarea {
        font-size: 12px;
    }

    .left label {
        font-size: 14px;
    }

    .left button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .left form {
        width: 100%;
    }
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 6px solid #ccc;
    border-top: 6px solid #0c5da3;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}