/**
 * Provetsa Forms - estils dels formularis Home i Contacte
 */

.pf-wrap {
    --pf-blue: #00b3e6;
    --pf-blue-dark: #006e8c;
    --pf-dark: #0e2431;
    --pf-text: #3a4750;
    --pf-border: #e9e9e9;
    --pf-placeholder: #bfbcc1;
    --pf-gray-bg: #f7f7f5;
    font-family: 'Gr', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--pf-dark);
    box-sizing: border-box;
}

.pf-wrap * { box-sizing: border-box; }

.pf-accent { color: var(--pf-blue); }

/* Camp trampa anti-bot: fora de pantalla */
.pf-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Camps comuns: només layout, el visual va per contenidor */
.pf-form input,
.pf-form textarea {
    width: 100%;
    font-family: inherit;
    outline: none;
}

/* Botó */
.pf-btn {
    background: var(--pf-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .25s ease;
}

.pf-btn:hover { background: var(--pf-blue-dark); }
.pf-btn:disabled { opacity: .6; cursor: default; }
.pf-btn-upper { letter-spacing: .04em; }

/* Missatge d'estat */
.pf-status { font-size: 14px; margin-top: 14px; }
.pf-status.pf-ok { color: #1f7a3d; }
.pf-status.pf-err { color: #c0392b; }

/* ===================== HOME ===================== */
.pf-home-formcol { position: relative; }

.pf-deco-circle {
    position: absolute;
    top: -40px;
    right: -10px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--pf-blue);
    z-index: 0;
    pointer-events: none;
}

.pf-home-formcol form {
    position: relative;
    z-index: 1;
}

.pf-row {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.pf-row-3 { grid-template-columns: repeat(3, 1fr); }

.pf-home .pf-form input,
.pf-home .pf-form textarea {
    font-size: 15px;
    color: var(--pf-dark);
    background: #fff;
    border: 1px solid var(--pf-placeholder);
    border-radius: 12px;
    padding: 16px 18px;
    transition: border-color .2s, box-shadow .2s;
}

.pf-home .pf-form textarea {
    border-radius: 16px;
    resize: vertical;
    min-height: 150px;
    margin-bottom: 18px;
}

.pf-home .pf-form input::placeholder,
.pf-home .pf-form textarea::placeholder { color: var(--pf-placeholder); }

.pf-home .pf-form input:focus,
.pf-home .pf-form textarea:focus {
    border-color: var(--pf-blue);
    box-shadow: 0 0 0 3px rgba(91, 179, 230, .15);
}

.pf-home-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.pf-legal {
    font-size: 13px;
    line-height: 1.55;
    color: var(--pf-text);
    margin: 0;
    max-width: 62ch;
}

.pf-legal a { color: var(--pf-blue); text-decoration: none; }
.pf-legal a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .pf-row-3 { grid-template-columns: 1fr; }
    .pf-home-bottom { flex-direction: column; align-items: stretch; }
    .pf-home-bottom .pf-btn { width: 100%; }
    .pf-deco-circle { display: none; }
}

/* =================== CONTACTE =================== */
.pf-contacte-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 26px;
    align-items: start;
}

.pf-contacte-left .pf-row-2 {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.pf-contacte-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pf-contacte .pf-form input,
.pf-contacte .pf-form textarea {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 10px;
    padding: 16px 22px;
    font-size: 14px;
    color: var(--pf-dark);
    transition: box-shadow .2s, border-color .2s;
}

.pf-contacte .pf-form textarea {
    border-radius: 10px;
    resize: vertical;
    min-height: 230px;
}

.pf-contacte .pf-form input::placeholder,
.pf-contacte .pf-form textarea::placeholder {
    color: var(--pf-blue);
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 500;
    opacity: 1;
}

.pf-contacte .pf-form input:focus,
.pf-contacte .pf-form textarea:focus {
    border-color: var(--pf-blue);
    box-shadow: 0 0 0 3px rgba(91, 179, 230, .2);
}

.pf-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 26px 0 24px;
    color: #5a6671;
    font-size: 15px;
}

.pf-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--pf-blue);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 3px;
}

.pf-check a { color: var(--pf-blue); text-decoration: underline; }

.pf-contacte .pf-btn { padding: 15px 48px; }

@media (max-width: 900px) {
    .pf-contacte-grid { grid-template-columns: 1fr; gap: 18px; }
    .pf-contacte-left .pf-row-2 { grid-template-columns: 1fr; }
    .pf-contacte .pf-btn { width: 100%; }
}
