﻿.contact-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

    .contact-form label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-sizing: border-box;
    }

    .contact-form textarea {
        height: 150px;
        resize: vertical;
    }

    .contact-form button {
        background-color: #007bff;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

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

/* Base alert styles */
.alert {
    padding: 1rem; /* 16px based on Bootstrap's rem unit */
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem; /* 4px */
    position: relative;
}

    /* Ensure text is readable and consistent */
    .alert p {
        margin-bottom: 0;
    }

    /* Optional: Dismissible alert (if you add a close button) */
    .alert .close {
        position: absolute;
        top: 0;
        right: 0;
        padding: 0.75rem 1.25rem;
        color: inherit;
        background-color: transparent;
        border: 0;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
    }

.alert .close:hover {
            color: #000;
            text-decoration: none;
}

/* Warning alert variant */
.alert-warning {
    color: #856404; /* Dark yellow text */
    background-color: #fff3cd; /* Light yellow background */
    border-color: #ffeeba; /* Slightly darker yellow border */
}

/* Ensure links within warnings stand out */
.alert-warning a {
    color: #663d10;
    text-decoration: underline;
}

.alert-warning a:hover {
    color: #3f260a;
}

/* CAPTCHA styles */
#captchaContainer {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center;
}

#captchaCanvas {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px; /* Space between canvas and button */
}