.vistrix-contact-form-wrapper {
    max_width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.vistrix-contact-form .form-group {
    margin-bottom: 20px;
}

.vistrix-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* Increased specificity to override theme styles */
body .vistrix-contact-form input[type="text"],
body .vistrix-contact-form input[type="email"],
body .vistrix-contact-form select,
body .vistrix-contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #999999 !important;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    background-color: #ffffff !important;
    color: #333333 !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    -webkit-appearance: none; /* Remove default browser styling */
    -moz-appearance: none;
    appearance: none;
}

.vistrix-contact-form input[type="text"]:focus,
.vistrix-contact-form input[type="email"]:focus,
.vistrix-contact-form select:focus,
.vistrix-contact-form textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.vistrix-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.vistrix-contact-form .submit-btn {
    background-color: #007cba;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.vistrix-contact-form .submit-btn:hover {
    background-color: #006ba1;
}

.vistrix-success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .vistrix-contact-form-wrapper {
        padding: 15px;
        margin: 10px;
    }
    
    .vistrix-contact-form .submit-btn {
        width: 100%;
    }
}
