/* Contact Form Styles */

/* Basic reset and typography */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Off-canvas contact form container */
.contact-form-container {
    position: fixed;
    top: 0;
    right: -350px; /* Hidden off-screen initially */
    width: 300px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    padding: 20px;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 1000;
}

.contact-form-container.open {
    right: 0;
}

.contact-form-container h2 {
    margin-top: 0;
}

/* Form layout */
.contact-form-container form {
    display: flex;
    flex-direction: column;
}

.contact-form-container label {
    margin-top: 10px;
}

.contact-form-container .required {
    color: red;
    margin-left: 4px;
}

.contact-form-container input,
.contact-form-container textarea,
.contact-form-container select {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.contact-form-container textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form-container button {
    margin-top: 15px;
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.contact-form-container button:hover {
    background-color: #0056b3;
}

/* Floating button style */
.floating-button {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px 0 0 4px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1100;
}

/* Success and error messages */
.success-message {
    color: green;
    font-weight: bold;
}

.error-message {
    color: red;
    font-weight: bold;
}

/* Honeypot field hidden from view */
.hidden-field {
    display: none;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .contact-form-container {
        width: 80%;
    }
}
