body {
    font-family: Georgia, "Times New Roman", serif;
    background: #f6f0e6;
    color: #2d241c;
    margin: 0 !important;
    padding: 0 !important;
}

/* HEADER DEL FORM */

.form-site-header {
    background: #111;
    border-bottom: 3px solid #8a6b2f;
    padding: 12px 24px;
    margin-top: 0 !important;
}

.form-site-header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.form-site-logo img {
    max-height: 64px;
    width: auto;
    display: block;
}

.form-site-title {
    flex: 1;
    text-align: center;
    color: #f5f1e8;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.form-close-button {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: auto;
    height: auto;
    line-height: 1;
}

.form-close-button:hover {
    background: #8a6b2f;
    color: #fff;
}

/* LAYOUT FORM */

.form-page {
    min-height: calc(100vh - 91px);
    padding: 25px 20px 40px;
    box-sizing: border-box;
}

.form-container {
    max-width: 720px;
    margin: 0 auto;
    background: #fffaf2;
    padding: 38px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.form-header h1 {
    margin-top: 0;
    font-size: 2rem;
    color: #4b2e1f;
}

.form-header p {
    font-size: 1rem;
    line-height: 1.6;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.required {
    color: #8b1e1e;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #c8b89f;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    background: #ffffff;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid #8b5e34;
    border-color: #8b5e34;
}

/* PRIVACY */

.form-privacy {
    margin: 24px 0;
    padding: 18px;
    background: #f3eadc;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.form-privacy label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-privacy a {
    color: #6b3f24;
    font-weight: bold;
}

/* AZIONI */

.form-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.form-button {
    display: inline-block;
    border: none;
    background: #6b3f24;
    color: #ffffff;
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}

.form-button:hover {
    background: #4b2e1f;
}

.form-back {
    border: none;
    background: transparent;
    color: #6b3f24;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.form-back:hover {
    text-decoration: underline;
}

/* HONEYPOT */

.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* MESSAGGI */

.success-box,
.error-box {
    text-align: center;
}

.success-box h1 {
    color: #315c2b;
}

.error-box h1 {
    color: #8b1e1e;
}

/* MOBILE */

@media (max-width: 600px) {
    .form-site-header {
        padding: 10px 16px;
    }

    .form-site-logo img {
        max-height: 54px;
    }

    .form-container {
        padding: 25px;
    }

    .form-header h1 {
        font-size: 1.8rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-button,
    .form-back {
        text-align: center;
    }
}