/* ===== CROCI CONTACT v1.1.0 ===== */

.csc-wrap,
.csc-wrap * {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

.csc-wrap {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.csc-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ── Row nome + email affiancati ── */
.csc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── Field ── */
.csc-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.csc-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: .02em;
}

.csc-field label span {
    color: #C8102E;
    margin-left: 2px;
}

/* ── Input e textarea ── */
.csc-field input[type="text"],
.csc-field input[type="email"],
.csc-field textarea {
    width: 100%;
    background: #f8f9fa;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 400;
    color: #111827;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
    resize: none;
}

.csc-field input::placeholder,
.csc-field textarea::placeholder {
    color: #9ca3af;
}

.csc-field input:focus,
.csc-field textarea:focus {
    border-color: #C8102E;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,16,46,.08);
}

.csc-field input.csc-invalid,
.csc-field textarea.csc-invalid {
    border-color: #C8102E !important;
    box-shadow: 0 0 0 3px rgba(200,16,46,.08) !important;
}

/* ── Privacy ── */
.csc-privacy { gap: 10px; }

.csc-check-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.csc-check-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    accent-color: #C8102E;
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
}

.csc-check-label span {
    font-size: 13px;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.6;
}

.csc-check-label span a {
    color: #C8102E;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.csc-check-label span a:hover { color: #9B0C22; }

/* ── Errori inline ── */
.csc-err {
    font-size: 12px;
    color: #C8102E;
    min-height: 16px;
    display: block;
    font-weight: 500;
}

/* ── Bottone ── */
.csc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    background: #C8102E;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    margin-top: 4px;
}

.csc-btn:hover {
    background: #9B0C22;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(200,16,46,.3);
}
.csc-btn:active { transform: translateY(0); }
.csc-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.csc-btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: csc-spin .7s linear infinite;
    flex-shrink: 0;
}

.csc-btn.loading .csc-btn__text    { display: none; }
.csc-btn.loading .csc-btn__spinner { display: block; }

@keyframes csc-spin { to { transform: rotate(360deg); } }

/* ── Feedback finale ── */
.csc-feedback {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
    font-weight: 500;
}
.csc-feedback.success {
    display: block;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
}
.csc-feedback.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

/* =============================================
   MOBILE — max 600px
============================================= */
@media (max-width: 600px) {

    .csc-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .csc-field input[type="text"],
    .csc-field input[type="email"],
    .csc-field textarea {
        font-size: 16px; /* evita zoom automatico iOS */
        padding: 15px 16px;
        border-radius: 12px;
    }

    .csc-field label {
        font-size: 14px;
    }

    .csc-btn {
        height: 56px;
        font-size: 15px;
        border-radius: 12px;
    }

    .csc-check-label span {
        font-size: 12px;
    }
}
/* ===== END CROCI CONTACT ===== */
