/* ============================================
   ShoreTimer - Lead Generation Components
   Popup modal & Inline CTA styles
   ============================================ */

/* Popup Overlay */
.lead-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lead-popup-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

/* Popup Card */
.lead-popup {
    background: var(--white);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.lead-popup-overlay[aria-hidden="false"] .lead-popup {
    transform: scale(1) translateY(0);
}

/* Close button */
.lead-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lead-popup-close:hover {
    background: var(--gray-200);
    color: var(--navy);
}

/* Popup icon */
.lead-popup-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--teal) 0%, #1E8A7E 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.lead-popup-icon svg {
    width: 36px;
    height: 36px;
    color: var(--white);
}

/* Popup content */
.lead-popup-content {
    text-align: center;
}

.lead-popup h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.lead-popup-content > p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Popup form */
.lead-popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lead-popup-form input[type="email"] {
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.lead-popup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(38, 166, 154, 0.1);
}

.lead-popup-form input[type="email"]::placeholder {
    color: var(--gray-400);
}

.lead-popup-form .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.75rem;
}

/* Consent checkbox in popup */
.lead-popup-consent {
    text-align: left;
}

.lead-popup-consent .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.lead-popup-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--teal);
    flex-shrink: 0;
    cursor: pointer;
}

.lead-popup-privacy {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

/* Popup success state */
.lead-popup-success {
    text-align: center;
    padding: 1rem 0;
}

.lead-popup-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--teal) 0%, #1E8A7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.lead-popup-success-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.lead-popup-success h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.lead-popup-success p {
    color: var(--gray-600);
}

/* Honeypot field - hidden from users */
.lead-popup-form .honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   Inline CTA Box
   ============================================ */

.checklist-cta-box {
    background: linear-gradient(135deg, rgba(38, 166, 154, 0.08) 0%, rgba(38, 166, 154, 0.03) 100%);
    border: 2px solid var(--teal);
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.checklist-cta-icon {
    width: 56px;
    height: 56px;
    background: var(--teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checklist-cta-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.checklist-cta-content {
    flex: 1;
    min-width: 0;
}

.checklist-cta-content strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.checklist-cta-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.checklist-cta-box .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .lead-popup {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .lead-popup h3 {
        font-size: 1.25rem;
    }

    .checklist-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .checklist-cta-box .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Loading spinner for form button */
.lead-popup-form .btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.lead-popup-form .btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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