/* Sendy Forms - Frontend Styles */

.sendy-form {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f7f4;
    border: 1px solid #e0d5c8;
    border-radius: 4px;
}

.sendy-form-group {
    margin-bottom: 1.5rem;
}

.sendy-form-group:last-child {
    margin-bottom: 0;
}

.sendy-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.sendy-form-label .required {
    color: #d63638;
    margin-left: 0.25rem;
}

.sendy-form-input,
.sendy-form-textarea,
.sendy-form-select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sendy-form-input:focus,
.sendy-form-textarea:focus,
.sendy-form-select:focus {
    outline: none;
    border-color: #8B7355;
    box-shadow: 0 0 0 2px rgba(139, 115, 85, 0.1);
}

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

.sendy-form-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #8B7355;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sendy-form-button:hover {
    background: #6d5844;
}

.sendy-form-button:active {
    background: #5a4836;
}

.sendy-form-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Error and Success Messages */
.sendy-form-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: none;
}

.sendy-form-message.show {
    display: block;
}

.sendy-form-message.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #d63638;
}

.sendy-form-message.success {
    background: #efe;
    border: 1px solid #cfc;
    color: #2d5016;
}

/* Responsive Design */
@media (max-width: 600px) {
    .sendy-form {
        padding: 1rem;
    }

    .sendy-form-input,
    .sendy-form-textarea,
    .sendy-form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
