.amest-contact-form {
    max-width: 600px;
}

.amest-form-group {
    margin-bottom: 1rem;
}

.amest-form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.amest-form-group input[type="text"],
.amest-form-group input[type="email"],
.amest-form-group input[type="tel"],
.amest-form-group select,
.amest-form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.amest-form-group .required {
    color: #d63638;
}

.amest-submit-button {
    position: relative;
    padding: 0.75rem 1.5rem;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.amest-submit-button .amest-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1em;
    height: 1em;
    margin: -0.5em 0 0 -0.5em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: amest-spin 0.6s linear infinite;
}

.amest-submit-button.amest-loading .amest-button-text {
    visibility: hidden;
}

.amest-submit-button.amest-loading .amest-spinner {
    display: block;
}

@keyframes amest-spin {
    to {
        transform: rotate(360deg);
    }
}

.amest-submit-button:hover {
    filter: brightness(0.9);
}

.amest-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.amest-form-messages {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    display: none;
}

.amest-form-messages.amest-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.amest-form-messages.amest-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}
