.form-message {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    animation: form-message-in 0.25s ease;
}

@keyframes form-message-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message:empty {
    display: none;
}

.form-message.success,
.form-message.error {
    display: flex;
}

.form-message::before {
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: 17px;
    flex-shrink: 0;
}

.form-message.success {
    background: #e8f5e9;
    color: #1e7d32;
    border: 1px solid #bfe6c2;
}

.form-message.success::before {
    content: "\f058"; /* fa-circle-check */
}

.form-message.error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c0;
}

.form-message.error::before {
    content: "\f06a"; /* fa-circle-exclamation */
}

/*
 * main.css has a generic ".appointment-wrapper .contact-content span { color: var(--white) }"
 * rule meant for other labels in that section. Since these contact forms live inside
 * .contact-content, it also matches our .btn-text span and turns it white-on-white.
 * Force it back to the button's own (already-correct) text color.
 */
.theme-btn .btn-text {
    color: inherit !important;
}

/* Submit button loading state (theme-btn is used across the site) */
.theme-btn.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.theme-btn.is-loading .btn-text::after {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -2px;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}
