/* Container for the contact form and error message */
.cu-contact-container {
    max-width: 780px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

/* ---------------- Error Message Styles ---------------- */
.center-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid; /* Color set by modifier class */
}

.center-message.is-warning {
    border-left-color: #ffb900; /* WordPress warning yellow */
    background-color: #fff8e5;
}

.cu-icon {
    margin-bottom: 1.25rem;
    font-size: 1.8rem;
    color: #ffb900; /* Matches the border */
}

.cu-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d2327; /* Near-black for good contrast */
}

.cu-sub {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #646970;
    max-width: 35em;
}

.cu-sub a {
    color: #2271b1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cu-sub a:hover,
.cu-sub a:focus {
    color: #135e96;
    text-decoration: none;
}

/* ---------------- Contact Form Styles ---------------- */
/* (Styles for the content in route.php would go here) */
.cu-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cu-form .form-group {
    margin-bottom: 1.5rem;
}

.cu-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1d2327;
}

.cu-form input[type="text"],
.cu-form input[type="email"],
.cu-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.4;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.cu-form input:focus,
.cu-form textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(33, 133, 208, 0.25);
}

.cu-form .submit-btn {
    background-color: #2271b1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.cu-form .submit-btn:hover,
.cu-form .submit-btn:focus {
    background-color: #135e96;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .cu-contact-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .center-message {
        padding: 2rem 1rem;
    }

    .cu-title {
        font-size: 1.25rem;
    }

    .cu-form {
        padding: 1.5rem;
    }
}