/* Styles for the shared landing-page enquiry modal
   (newdesign/includes/landing-contact-form.php).

   Same spinner / .field-error / .form-toast rules the home-page contact
   popup uses (newdesign/assets/css/index.css) — kept here so the landing
   pages, which don't load index.css, get identical validation feedback.
   Previously every landingpage*.php carried only the spinner rule inline
   in a <style> block in <head>. */

/* ── Spinner loader ──────────────────────────────────────────── */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ── Inline field errors ─────────────────────────────────────── */
.contactForm .field-error {
    display: none;
    color: #dc3545;
    font-size: .8rem;
    margin-top: 4px;
    font-weight: 500;
    animation: errIn .2s ease;
}

@keyframes errIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.contactForm .form-control.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .15) !important;
}

/* ── Toast notification (submit result) ──────────────────────── */
.form-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    z-index: 99999;
    max-width: 380px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .35s ease, transform .35s ease;
}

.form-toast--show {
    opacity: 1;
    transform: translateY(0);
}

.form-toast--success { background: #1a7f4b; }
.form-toast--error   { background: #c0392b; }

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}
