/* Genpar Ultra Modern Abandoned Cart & Survey Styles (Phone Required) */

.genpar-ac-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 25, 50, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
    box-sizing: border-box;
}

.genpar-ac-backdrop.genpar-ac-show {
    opacity: 1;
    visibility: visible;
}

.genpar-ac-modal {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 28px 24px 20px;
    box-sizing: border-box;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    max-height: 92vh;
    overflow-y: auto;
}

.genpar-ac-backdrop.genpar-ac-show .genpar-ac-modal {
    transform: scale(1) translateY(0);
}

.genpar-ac-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.genpar-ac-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.08);
}

/* Header */
.genpar-ac-header {
    text-align: center;
    margin-bottom: 16px;
}

.genpar-ac-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #093a7a;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 10px;
    border: 1px solid #dbeafe;
}

.genpar-ac-dot-pulse {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    animation: genpar-ac-pulse 1.8s infinite;
}

@keyframes genpar-ac-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.genpar-ac-title {
    font-size: 20px;
    font-weight: 800;
    color: #093a7a;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.genpar-ac-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Phone Input Section */
.genpar-ac-phone-section {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.genpar-ac-phone-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.genpar-ac-phone-input-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.genpar-ac-phone-input-wrap:focus-within {
    border-color: #093a7a;
    box-shadow: 0 0 0 3px rgba(9, 58, 122, 0.12);
}

.genpar-ac-phone-flag {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    padding-right: 8px;
    border-right: 1px solid #e2e8f0;
    user-select: none;
}

.genpar-ac-phone-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 10px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    background: transparent;
    letter-spacing: 0.5px;
}

.genpar-ac-input-invalid {
    border-color: #ef4444 !important;
    animation: genpar-ac-shake 0.4s ease-in-out;
}

@keyframes genpar-ac-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.genpar-ac-phone-error {
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

/* Survey Cards Grid */
.genpar-ac-survey-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.genpar-ac-reason-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
}

.genpar-ac-reason-card:hover {
    background: #eff6ff;
    border-color: #093a7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 58, 122, 0.08);
}

.genpar-ac-reason-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.genpar-ac-reason-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.genpar-ac-reason-text strong {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}

.genpar-ac-reason-text span {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 1px;
}

.genpar-ac-arrow {
    font-size: 15px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.genpar-ac-reason-card:hover .genpar-ac-arrow {
    color: #093a7a;
    transform: translateX(4px);
}

/* Quick Summary Row */
.genpar-ac-quick-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 12.5px;
    color: #475569;
    margin-bottom: 12px;
}

.genpar-ac-quick-summary strong {
    color: #093a7a;
    font-size: 14px;
}

.genpar-ac-link-btn {
    color: #093a7a !important;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 12.5px;
    transition: color 0.2s;
}

.genpar-ac-link-btn:hover {
    text-decoration: underline !important;
}

/* Security Footer */
.genpar-ac-footer-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 480px) {
    .genpar-ac-modal {
        padding: 22px 16px 16px;
    }
    .genpar-ac-title {
        font-size: 17px;
    }
    .genpar-ac-reason-card {
        padding: 9px 11px;
    }
}
