/* Main form styles */
.martinazzi-talk-to-us {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    font-family: 'Lufga', 'Arial', sans-serif;
    color: #333;
    padding: 40px;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

.martinazzi-talk-to-us h2 {
    font-size: 40px;
    margin-bottom: 30px;
    padding-top: 30px !important;
    font-weight: 500 !important;
    color: #333;
}

/* Form rows and fields */
.martinazzi-talk-to-us .martinazzi-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 20px;
    max-width: 1240px;
}

.martinazzi-talk-to-us .martinazzi-form-group {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.martinazzi-talk-to-us .martinazzi-form-group.form-full {
    flex: 1 0 100%;
    max-width: 100%;
}

/* Labels */
.martinazzi-talk-to-us .martinazzi-form-group label {
    display: block;
    margin-bottom: 5px !important;
    padding-bottom: 0 !important;
    font-weight: 500 !important;
    color: #000;
    font-size: 16px;
}

/* Form inputs */
.martinazzi-talk-to-us .martinazzi-form-group input[type="text"],
.martinazzi-talk-to-us .martinazzi-form-group input[type="email"],
.martinazzi-talk-to-us .martinazzi-form-group input[type="tel"],
.martinazzi-talk-to-us .martinazzi-form-group input[type="date"],
.martinazzi-talk-to-us .martinazzi-form-group input[type="number"],
.martinazzi-talk-to-us .martinazzi-form-group textarea,
.martinazzi-talk-to-us .martinazzi-form-group select {
    width: 100%;
    padding: 12px 16px;
    margin-top: 0 !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: 'Lufga', 'Arial', sans-serif;
    -webkit-appearance: none;
    appearance: none;
    height: 48px;
    max-width: 100%;
}

.martinazzi-talk-to-us .martinazzi-form-group textarea {
    height: auto;
    min-height: 120px;
}

/* Focus states */
.martinazzi-talk-to-us .martinazzi-form-group input:focus,
.martinazzi-talk-to-us .martinazzi-form-group textarea:focus,
.martinazzi-talk-to-us .martinazzi-form-group select:focus {
    border-color: #000;
    outline: none;
}

/* Agreement section */
.martinazzi-talk-to-us .martinazzi-agreement {
    margin: 25px 0;
}

.martinazzi-talk-to-us .martinazzi-agreement-options {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding-top: 8px;
}

.martinazzi-talk-to-us .martinazzi-agreement-option {
    display: flex;
    align-items: center;
}

.martinazzi-talk-to-us .martinazzi-agreement-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.martinazzi-talk-to-us .martinazzi-agreement-option input[type='radio'] {
    margin-right: 10px;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 50%;
    outline: none;
    position: relative;
    cursor: pointer;
}

.martinazzi-talk-to-us .martinazzi-agreement-option input[type='radio']:checked {
    border-color: #000;
}

.martinazzi-talk-to-us .martinazzi-agreement-option input[type='radio']:checked:after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #000;
}

.martinazzi-talk-to-us .martinazzi-important {
    font-weight: 600;
    margin-top: 5px;
}

/* Submit button */
.martinazzi-talk-to-us .martinazzi-submit-button {
    background: #000;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 16px 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: 'Lufga', 'Arial', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s;
}

.martinazzi-talk-to-us .martinazzi-submit-button:hover {
    background: #333;
}

/* Error messages */
.martinazzi-talk-to-us .martinazzi-error-message {
    color: #e53935;
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

.martinazzi-talk-to-us .martinazzi-form-group input.error,
.martinazzi-talk-to-us .martinazzi-form-group textarea.error,
.martinazzi-talk-to-us .martinazzi-form-group select.error {
    border-color: #e53935;
}

/* Success message */
.martinazzi-talk-to-us .martinazzi-success-message {
    background-color: #e8f5e9;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    display: none;
    margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 1300px) {
    .martinazzi-talk-to-us {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .martinazzi-talk-to-us .martinazzi-form-row {
        flex-direction: column;
        gap: 20px;
    }

    .martinazzi-talk-to-us .martinazzi-form-group {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .martinazzi-talk-to-us {
        padding-left: 13px !important;
        padding-right: 13px !important;
        padding-bottom: 120px !important;
    }
}

@media (max-width: 480px) {
    .martinazzi-talk-to-us {
        padding-top: 20px;
        padding-left: 13px !important;
        padding-right: 13px !important;
        padding-bottom: 120px !important;
    }

    .martinazzi-talk-to-us .martinazzi-submit-button {
        width: 100%;
        justify-content: center;
    }

    .martinazzi-talk-to-us .martinazzi-form-group input[type="text"],
    .martinazzi-talk-to-us .martinazzi-form-group input[type="email"],
    .martinazzi-talk-to-us .martinazzi-form-group input[type="tel"] {
        padding: 10px 12px;
        font-size: 14px;
        height: 44px;
    }

    .martinazzi-talk-to-us .martinazzi-agreement-options {
        gap: 15px;
    }
}