/* ── Kaidan Billing Form v1.3.0 ── */

/* Classe usata dal JS per nascondere .pagamento */
.kbf-pagamento-hide {
    display: none !important;
}

/* ── Wrapper ── */
.kbf-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: inherit;
}

.kbf-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

/* ── Grid 2 colonne ── */
.kbf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .kbf-grid {
        grid-template-columns: 1fr;
    }
}

/* Campo a larghezza piena (es. Mail) */
.kbf-field--full {
    grid-column: 1 / -1;
}

/* ── Campi ── */
.kbf-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 0.4rem;
}

.kbf-field input[type="text"],
.kbf-field input[type="email"],
.kbf-field input[type="date"],
.kbf-field select.kbf-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.kbf-field input[type="text"]:focus,
.kbf-field input[type="email"]:focus,
.kbf-field input[type="date"]:focus,
.kbf-field select.kbf-select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Campo readonly (Mail) */
.kbf-readonly {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
}

/* ── Bottone primario (Aggiorna / Salva Modifiche) ── */
.kbf-submit {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    margin-top: 0.5rem;
}

.kbf-submit:hover {
    background: #2563eb;
}

.kbf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Bottone Modifica Fatturazione ── */
.kbf-edit-btn {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    border-radius: 999px;
    padding: 0.55rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.kbf-edit-btn:hover {
    background: #3b82f6;
    color: #fff;
}

/* ── Messaggi di stato ── */
.kbf-notice {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.kbf-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.kbf-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
