/* ═══════════════════════════════════════════════════
   SYNC2SYS — Help popup (free setup lead capture)
   Centred modal over a dimmed page.
   ═══════════════════════════════════════════════════ */

.helpop-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(4, 6, 5, 0.82);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.helpop-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.helpop {
    position: relative;
    width: 480px;
    max-width: 100%;
    padding: 36px 32px 28px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
    font-family: var(--font-sans, 'Inter', sans-serif);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.24s ease;
}

.helpop-overlay.is-open .helpop {
    transform: translateY(0) scale(1);
}

.helpop__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.helpop__close:hover {
    color: #111111;
    background: #f3f4f6;
}

.helpop__close svg {
    width: 18px;
    height: 18px;
}

.helpop__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #22c55e;
    color: #ffffff;
}

.helpop__icon svg {
    width: 24px;
    height: 24px;
}

.helpop__title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #0a0a0a;
}

.helpop__text {
    margin: 0 0 22px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4b5563;
}

.helpop__form {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.helpop__input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 0.9375rem;
    color: #111111;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.helpop__input::placeholder {
    color: #9ca3af;
}

.helpop__input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.helpop__input.is-invalid {
    border-color: #ef4444;
}

.helpop__submit {
    height: 48px;
    padding: 0 22px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    background: #16a34a;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.helpop__submit:hover {
    background: #15803d;
}

.helpop__submit[disabled] {
    opacity: 0.6;
    cursor: default;
}

.helpop__note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6b7280;
}

.helpop__note svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.helpop__error {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #dc2626;
}

.helpop__success {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.helpop__success svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: #16a34a;
}

body.helpop-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .helpop-overlay {
        padding: 1rem;
    }

    .helpop {
        padding: 28px 20px 22px;
        border-radius: 16px;
    }

    .helpop__title {
        font-size: 1.3125rem;
    }

    .helpop__form {
        flex-direction: column;
    }

    .helpop__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .helpop-overlay,
    .helpop {
        transition: opacity 0.01s;
        transform: none;
    }
}
