/* =============================================
   CONTACT FORM — spinner & validation styles
============================================= */
.cf-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cf-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}
@keyframes cf-spin { to { transform: rotate(360deg); } }

.form-control.is-invalid { border-color: #e50914 !important; }

/* =============================================
   SUCCESS / ERROR POPUP OVERLAY
============================================= */
.cf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 30, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.cf-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cf-popup {
    background: #fff;
    border-radius: 28px;
    padding: 52px 44px 44px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 40px 100px rgba(0,0,0,.18);
}
.cf-overlay.show .cf-popup {
    transform: translateY(0) scale(1);
}

/* Close X */
.cf-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f4f4f8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    transition: .2s;
}
.cf-popup-close:hover { background: #e8e8f0; color: #000; }

/* ---- Success icon ring ---- */
.cf-icon-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.cf-icon-ring.success { background: linear-gradient(135deg, #e8fff3, #d4f7e7); }
.cf-icon-ring.error   { background: linear-gradient(135deg, #fff0f0, #fde2e2); }

/* Animated pulse ring */
.cf-icon-ring::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: cf-ring-pulse 1.8s ease-out infinite;
}
.cf-icon-ring.success::before { border-color: rgba(22,163,74,.3); }
.cf-icon-ring.error::before   { border-color: rgba(229,9,20,.3); }

@keyframes cf-ring-pulse {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1.35); opacity: 0; }
}

.cf-icon-ring i {
    font-size: 42px;
}
.cf-icon-ring.success i { color: #581c87; }
.cf-icon-ring.error   i { color: #e50914; }

/* ---- Text ---- */
.cf-popup h3 {
    font-size: 22px;
    font-weight: 800;
    color: #141f39;
    margin-bottom: 10px;
}
.cf-popup p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ---- CTA button ---- */
.cf-popup-btn {
    display: inline-block;
    padding: 13px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: .3s;
}
.cf-popup-btn.success {
    background: linear-gradient(135deg, #581c87, #7e22ce);
    color: #fff;
    box-shadow: 0 10px 25px rgba(88,28,135,.3);
}
.cf-popup-btn.success:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(22,163,74,.4);
}
.cf-popup-btn.error {
    background: linear-gradient(135deg, #e50914, #ff4d55);
    color: #fff;
    box-shadow: 0 10px 25px rgba(229,9,20,.3);
}
.cf-popup-btn.error:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(229,9,20,.4);
}

/* ---- Confetti dots (success only) ---- */
.cf-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 28px; }
.cf-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
    animation: cf-fall 1.2s ease-out forwards;
}
@keyframes cf-fall {
    0%   { opacity: 1; transform: translateY(-10px) rotate(0deg); }
    100% { opacity: 0; transform: translateY(180px) rotate(360deg); }
}

/* .page-hero-banner is defined globally in assets/css/style.css */
