/* ── LDD Forms — stile coerente con il resto del sito ──────────────────── */

.ldd-form-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.ldd-form {
    font-family: 'Montserrat', sans-serif;
}

/* Rows */
.ldd-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

/* Fields */
.ldd-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ldd-form-field-full {
    grid-column: 1 / -1;
}

.ldd-form-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8A8A8A;
}

.ldd-form-field input,
.ldd-form-field select,
.ldd-form-field textarea {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #1A1817;
    background: #FAF8F5;
    border: 1px solid #E0D5C5;
    border-radius: 10px;
    padding: 11px 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.ldd-form-field input:focus,
.ldd-form-field select:focus,
.ldd-form-field textarea:focus {
    border-color: #CB9C73;
    box-shadow: 0 0 0 3px rgba(203,156,115,.12);
}

.ldd-form-field input[readonly] {
    background: #F2EDE6;
    color: #8A8A8A;
    cursor: default;
}

.ldd-form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.ldd-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Privacy */
.ldd-form-privacy {
    margin-bottom: 20px;
}

.ldd-form-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #5A5A5A;
    cursor: pointer;
    line-height: 1.5;
}

.ldd-form-privacy input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 1px;
    accent-color: #CB9C73;
    cursor: pointer;
}

.ldd-form-privacy a {
    color: #CB9C73;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Feedback messages */
.ldd-form-msg {
    font-size: 13px;
    line-height: 1.5;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 0;
    transition: all .2s;
}

.ldd-form-msg:not(:empty) {
    padding: 12px 16px;
    margin-bottom: 16px;
}

.ldd-form-msg-success {
    background: #F0F7F0;
    border: 1px solid #C8DECA;
    color: #3A6B3A;
    font-weight: 600;
}

.ldd-form-msg-error {
    background: #FDF0F0;
    border: 1px solid #E8C0C0;
    color: #8B2020;
}

/* Submit button */
.ldd-form-actions {
    display: flex;
    justify-content: flex-start;
}

.ldd-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #CB9C73;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .2s, transform .1s;
    min-width: 180px;
}

.ldd-form-btn:hover:not(:disabled) {
    background: #B88558;
}

.ldd-form-btn:active:not(:disabled) {
    transform: scale(.98);
}

.ldd-form-btn:disabled {
    opacity: .7;
    cursor: default;
}

/* Spinner */
.ldd-form-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ldd-spin .7s linear infinite;
}

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

/* Mobile */
@media (max-width: 480px) {
    .ldd-form-row {
        grid-template-columns: 1fr;
    }
    .ldd-form-btn {
        width: 100%;
    }
}

/* ── Success state ──────────────────────────────────────────────────────── */
.ldd-form-success {
    text-align: center;
    padding: 48px 24px;
    font-family: 'Montserrat', sans-serif;
}
.ldd-form-success-icon {
    width: 56px;
    height: 56px;
    background: #6A8F70;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.ldd-form-success-title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1817;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
}
.ldd-form-success-text {
    font-size: 13px;
    color: #5A5A5A;
    line-height: 1.6;
}
