/* ================================
   AB Performance - Keynote LP Form Loading Overlay
   For /andrew-bennett-keynote-speaker — dark theme
   Brand Colours: Red #e1303a, Black #1a1a1a, Gold #E9A329
   ================================ */

.ab-performance-lp-form-loading {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.96) 0%, rgba(13, 13, 13, 0.96) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ab-performance-lp-form-loading.is-active {
    opacity: 1;
    visibility: visible;
}

.ab-performance-lp-form-loading-inner {
    text-align: center;
    max-width: 440px;
    padding: 40px 30px;
    position: relative;
}

.ab-performance-lp-form-loading-inner::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 163, 41, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.ab-performance-lp-form-loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.ab-performance-lp-form-loading-spinner::before,
.ab-performance-lp-form-loading-spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
}

.ab-performance-lp-form-loading-spinner::before {
    border-top-color: #E9A329;
    border-right-color: #E9A329;
    animation: abLpSpin 1s linear infinite;
    box-shadow: 0 0 20px rgba(233, 163, 41, 0.3);
}

.ab-performance-lp-form-loading-spinner::after {
    border-bottom-color: #e1303a;
    border-left-color: #e1303a;
    animation: abLpSpin 1.5s linear infinite reverse;
    inset: 10px;
    box-shadow: 0 0 15px rgba(225, 48, 58, 0.3);
}

@keyframes abLpSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ab-performance-lp-form-loading h3 {
    font-family: 'Gantari', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff 0%, #E9A329 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ab-performance-lp-form-loading p {
    font-family: 'Gantari', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.7;
}

/* Mobile */
@media (max-width: 767px) {
    .ab-performance-lp-form-loading-inner {
        padding: 30px 20px;
    }

    .ab-performance-lp-form-loading-spinner {
        width: 65px;
        height: 65px;
        margin-bottom: 24px;
    }

    .ab-performance-lp-form-loading h3 {
        font-size: 22px;
    }

    .ab-performance-lp-form-loading p {
        font-size: 14px;
    }
}
