/* -----------------------------
   PHP Email Form Messages
----------------------------- */
.php-email-form .error-message {
    display: none;
    background: #df1529;
    color: #ffffff;
    text-align: left;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.php-email-form .sent-message {
    display: none;
    color: #ffffff;
    background: #059652;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.php-email-form .loading {
    display: none;
    background: var(--surface-color);
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
}

.php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid var(--accent-color);
    border-top-color: var(--surface-color);
    animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* -----------------------------
   Waiting List Form
----------------------------- */
#waiting-list-form .sent-message {
    background-color: #424DFE !important;
    color: #ffffff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
}

#waiting-list-form .newsletter-form input[type="submit"] {
    background: linear-gradient(135deg, #424DFE, #7271FB);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

#waiting-list-form .newsletter-form input[type="submit"]:hover {
    opacity: 0.9;
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
    background: linear-gradient(135deg, #424DFE, #7271FB);
}

.scroll-top i {
    color: #fff !important;
}

.scroll-top:hover {
    background: linear-gradient(135deg, #424DFE 80%, #7271FB 100%);
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# Disable AOS delay on mobile
--------------------------------------------------------------*/
@media (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}

/* =============================================================
   SECTION SPACING — tighten globally + remove “double” gaps
   (load this AFTER all other CSS so it wins the cascade)
============================================================= */

/* How much space sits BETWEEN sections */
:root {
    /* tweak to taste */
    --section-gap: clamp(4px, 4vw, 4px);
}

/* apply gap between consecutive sections */
.section+.section {
    margin-top: var(--section-gap) !important;
}

:root {
    --section-space-lg: clamp(40px, 5vw, 64px);
    --section-space-md: clamp(24px, 3.5vw, 40px);
    --section-space-sm: clamp(12px, 3vw, 28px);
}

/* Global section padding */
.section {
    padding-block: var(--section-space-lg) !important;
}

/* Utilities (use in HTML when you want tighter spacing) */
.section--tight {
    padding-block: var(--section-space-md) !important;
}

.section--tight-top {
    padding-top: var(--section-space-md) !important;
}

.section--tight-bottom {
    padding-bottom: var(--section-space-md) !important;
}

.section--compact {
    padding-block: var(--section-space-sm) !important;
}

/* Kill stray last-child margins so they don’t add extra space */
.section>.container>*:last-child,
.section .section-panel>*:last-child {
    margin-bottom: 0 !important;
}

/* Also tame first-child top margins inside sections/panels */
.section .section-panel>*:first-child,
.section>.container>*:first-child {
    margin-top: 0 !important;
}

/* =============================================================
   PANELS — reduce apparent whitespace from big fades/padding
============================================================= */
/* Reduce the fade-out height so it doesn’t read like extra gap */
.section-panel .fade-out::after,
.section-panel-fade::after {
    height: clamp(16px, 4vw, 48px) !important;
    /* was up to 120px */
}

/* Slightly reduce internal panel padding on tight sections */
#integration .section-panel,
#cta .section-panel {
    --pad: clamp(20px, 3vw, 40px) !important;
}

/* Optional: make ALL panels a bit tighter by default */
/* .section-panel { --pad: clamp(24px, 3.5vw, 48px) !important; } */

/* =============================================================
   TARGETED TIGHTENING — Integration → CTA
============================================================= */
#integration.section {
    padding-bottom: var(--section-space-sm) !important;
}

#cta.section {
    padding-top: var(--section-space-sm) !important;
}

/* The integrations image uses .mt-3 (adds to the gap). Trim it. */
#integration .mt-3 {
    margin-top: .5rem !important;
}

/* (Optional) tighten other adjacent pairs the same way */
/*
#values.section       { padding-bottom: var(--section-space-sm) !important; }
#how-it-works.section { padding-top: var(--section-space-sm) !important; }
*/

:root {
    --header-offset: 88px;
}

/* fallback */

/* don’t push the whole page */
.main {
    padding-top: 0 !important;
}

/* anchor jumps land below header */
.section {
    scroll-margin-top: calc(var(--header-offset) + 12px);
}

/* just pad the content of the first section */
#intro .intro-stack {
    padding-top: calc(var(--header-offset) + 16px);
}

/* generic fallback if the first section id changes */
.main>.section:first-of-type>.container:first-child {
    padding-top: calc(var(--header-offset) + 16px);
}