
/* ========================================
   CONFIGURACIÓ GENERAL
======================================== */

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(
        145deg,
        #592980 0%,
        #241134 25%,
        #030205 49%,
        #100d2d 76%,
        #1b1551 100%
    );
    background-attachment: fixed;
}


/* ========================================
   ANIMACIÓ VECTORIAL D'AIGUA
======================================== */

#aigua {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 65vh;
    pointer-events: none;
    z-index: 0;
}


/* ========================================
   ESTRUCTURA GENERAL
======================================== */

.layout {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    padding: 42px 7% 25px;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    display: grid;
    grid-template-columns: 1fr minmax(380px, 530px);
    gap: 7%;
    align-items: center;
    flex: 1;
    padding: 35px 0;
}


/* ========================================
   CAPÇALERA I LOGOTIP
======================================== */

header img {
    display: block;
    width: clamp(190px, 24vw, 300px);
    height: auto;
}


/* ========================================
   BLOC INTRODUCTORI
======================================== */

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    color: #ddd0e9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e5007e;
}

h1 {
    font-size: clamp(50px, 7vw, 104px);
    line-height: .96;
    letter-spacing: -.06em;
    margin: 24px 0;
    font-weight: 600;
}

h1 span {
    color: #e5007e;
}

.intro p {
    font-size: 19px;
    line-height: 1.6;
    color: #e1dbe9;
}


/* ========================================
   ENLLAÇOS DE CONTACTE
======================================== */

.contact-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 14px;
}

.contact-links a,
a {
    color: #bde8eb;
    text-decoration: none;
}

.contact-links a:hover,
a:hover {
    text-decoration: underline;
}


/* ========================================
   CONTENIDOR DEL FORMULARI
======================================== */

.panel {
    background: rgba(13, 10, 24, .78);
    border: 1px solid #ffffff30;
    padding: 28px;
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 20px 60px #0003;
}

h2 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -1px;
}

.sub {
    margin: 6px 0 20px;
    color: #c4bccc;
    font-size: 14px;
}


/* ========================================
   CAMPS DEL FORMULARI
======================================== */

.fields,
.checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

form label,
legend {
    font-size: 12px;
    color: #e6dfeb;
}

input:not([type=checkbox]),
textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    background: #ffffff09;
    border: 1px solid #ffffff30;
    border-radius: 5px;
    color: white;
    padding: 10px;
    font: inherit;
    font-size: 15px;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #9bd3d8;
    outline: 1px solid #9bd3d8;
}


/* ========================================
   SELECTOR DE SERVEIS
======================================== */

fieldset {
    padding: 0;
    border: 0;
    margin: 20px 0;
}

legend {
    padding: 0;
    margin-bottom: 12px;
}

.checks label,
.consent {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    line-height: 1.35;
}

input[type=checkbox] {
    accent-color: #e5007e;
    margin: 1px 0 0;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}


/* ========================================
   CAMP DE MISSATGE
======================================== */

textarea {
    resize: vertical;
    min-height: 80px;
}


/* ========================================
   ACCEPTACIÓ DE PRIVACITAT
======================================== */

.consent {
    margin: 15px 0;
    font-size: 11px;
    color: #c4bccc;
}


/* ========================================
   BOTÓ D'ENVIAMENT
======================================== */

button {
    background: #e5007e;
    color: white;
    border: 0;
    border-radius: 5px;
    width: 100%;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
}

button span {
    float: right;
}

button:hover {
    background: #bc0068;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #9bd3d8;
    outline-offset: 3px;
}


/* ========================================
   PROTECCIÓ ANTISPAM
======================================== */

.trap {
    position: absolute;
    left: -10000px;
}


/* ========================================
   MISSATGES DE CONFIRMACIÓ I AVÍS
======================================== */

.notice {
    padding: 10px;
    border: 1px solid #ffffff50;
    font-size: 13px;
}


/* ========================================
   PEU DE PÀGINA
======================================== */

footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #ffffff30;
    padding-top: 15px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #ccc;
}


/* ========================================
   RESPONSIVE: TAULETES I PANTALLES PETITES
======================================== */

@media (max-width: 850px) {

    main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .layout {
        padding: 28px 6% 20px;
    }

    .intro p {
        font-size: 17px;
    }

    .panel {
        max-width: 620px;
        width: 100%;
    }

    h1 {
        font-size: clamp(48px, 10vw, 78px);
    }

}


/* ========================================
   RESPONSIVE: TELÈFONS MÒBILS
======================================== */

@media (max-width: 450px) {

    .fields,
    .checks {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 20px;
    }

    footer {
        font-size: 9px;
        letter-spacing: 1px;
    }

}
