/* Kosmos.coop Base Styles — Compilat: 26/02/2026 */

/* Canvas per estrelles fugaces */
#shooting-stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

/* Animacions compartides */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInLights {
    to { opacity: 1; }
}

@keyframes fadeInFooter {
    to { opacity: 0.6; }
}

/* Footer */
footer {
    width: 100%;
    padding: 60px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-sizing: border-box;
}

.footer-sponsors-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    opacity: 0;
    animation: fadeInFooter 0.8s ease forwards 3s;
}

.footer-sponsors {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 0;
    opacity: 0;
    animation: fadeInFooter 0.8s ease forwards 3s;
}

.footer-sponsors a {
    transition: opacity 0.3s ease;
}

.footer-sponsors img {
    height: 32px;
    transition: opacity 0.3s ease;
}

.footer-sponsors a:hover img {
    opacity: 1;
}

.footer-sponsors .logo-bcn {
    height: 47px;
}

.footer-opengea {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    opacity: 0;
    animation: fadeInFooter 0.8s ease forwards 3.3s;
}

.footer-opengea img {
    height: 42px;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

.footer-opengea:hover img {
    opacity: 1;
}

.footer-copyright {
    font-size: 13px;
    color: #fff;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.show.fade-in {
    opacity: 1;
}

.modal-content {
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show.fade-in .modal-content {
    transform: scale(1);
}

.modal-header {
    margin-bottom: 30px;
    text-align: center;
}

.modal-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 25px;
    display: block;
    filter: brightness(0) invert(1);
}

.modal-header h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.modal-header p {
    color: #e0e0e0;
    font-size: 14px;
    margin: 0;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: #cccccc;
}

/* Formulari */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #ffffff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgb(62, 33, 33);
    border: 1px solid #ffffff;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgb(62, 33, 33) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

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

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: rgb(62, 33, 33);
    border: 2px solid #ffffff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #6b7280;
    color: #333333;
    border-color: #6b7280;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid #ffffff;
    display: block;
}

.form-message.error {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid #ffffff;
    display: block;
}

/* Modal responsive */
@media screen and (max-width: 768px) {
    .modal-content {
        padding: 25px 18px;
        width: 92%;
        max-width: 480px;
        max-height: 88vh;
        overflow-y: auto;
    }

    .modal-logo {
        width: 100px;
        margin-bottom: 18px;
    }

    .modal-header h2 {
        font-size: 22px;
        margin-right: 25px;
    }

    .modal-header {
        margin-bottom: 20px;
    }

    .close-modal {
        top: 15px;
        right: 15px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 15px;
    }

    .form-group textarea {
        min-height: 85px;
    }

    .submit-btn {
        padding: 13px;
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        padding: 14px 10px;
        width: 96%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-logo {
        width: 85px;
        margin-bottom: 15px;
    }

    .modal-header h2 {
        font-size: 18px;
        margin: 0 20px 6px 0;
    }

    .modal-header {
        margin-bottom: 12px;
    }

    .modal-header p {
        font-size: 11px;
        line-height: 1.3;
    }

    .close-modal {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group textarea {
        padding: 11px 10px;
        font-size: 16px;
        border-radius: 6px;
    }

    .form-group textarea {
        min-height: 70px;
    }

    .submit-btn {
        padding: 13px 12px;
        font-size: 15px;
        border-radius: 8px;
        margin-top: 4px;
    }

    .form-message {
        font-size: 12px;
        padding: 8px;
        margin-top: 10px;
    }
}
