/**
 * Ayofex Free Pack Promotional Component CSS
 */

/* Modal Base */
.fp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.fp-modal.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.fp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 31, 61, 0.85); /* Deep navy translucent */
}

.fp-modal-container {
    position: relative;
    background: #FFFFFF;
    width: 90%;
    max-width: 780px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    overflow: hidden;
    transform: scale(0.97) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    flex-direction: row;
}

.fp-modal.is-active .fp-modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Content Area */
.fp-modal-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Close Button */
.fp-close-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #5C677D;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    z-index: 10;
}
.fp-close-icon:hover {
    background-color: #F7FAFC;
    color: #071F3D;
}
.fp-close-icon svg {
    width: 20px;
    height: 20px;
}

/* Modal Typography */
.fp-eyebrow {
    font-family: 'Inter', sans-serif;
    color: #208AF0; /* Vivid blue */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.fp-title {
    font-family: 'Playfair Display', serif;
    color: #071F3D;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.fp-desc {
    font-family: 'Inter', sans-serif;
    color: #5C677D;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Checklist */
.fp-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.fp-checklist li {
    font-family: 'Inter', sans-serif;
    color: #172033;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.fp-checklist svg {
    color: #0F5DB8; /* Rich sapphire */
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Reassurance & Disclaimers */
.fp-reassurance {
    font-family: 'Inter', sans-serif;
    color: #0F5DB8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.fp-disclaimer {
    font-family: 'Inter', sans-serif;
    color: #5C677D;
    font-size: 0.7rem;
    line-height: 1.4;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Actions */
.fp-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.fp-btn-primary {
    font-family: 'Inter', sans-serif;
    background-color: #208AF0;
    color: #FFFFFF;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
}
.fp-btn-primary:hover {
    background-color: #0F5DB8;
}

.fp-btn-secondary {
    font-family: 'Inter', sans-serif;
    background: none;
    border: none;
    color: #5C677D;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.5rem;
}
.fp-btn-secondary:hover {
    color: #172033;
}

/* Visual Area */
.fp-modal-visual {
    flex: 0 0 45%;
    background-color: #F7FAFC; /* Off-white */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #DCE6F2;
    overflow: hidden;
}

.fp-visual-pathway {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 20px, #0F5DB8 20px, #0F5DB8 40px);
}

.fp-pack-composition {
    position: relative;
    z-index: 2;
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fp-doc-placeholder {
    background: #FFFFFF;
    border: 1px solid #DCE6F2;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(7, 31, 61, 0.1);
    position: absolute;
    display: flex;
    flex-direction: column;
    padding: 10px;
}
.fp-doc-1 {
    width: 140px;
    height: 180px;
    transform: rotate(-5deg) translateX(-30px);
    z-index: 1;
}
.fp-doc-2 {
    width: 150px;
    height: 190px;
    transform: rotate(3deg) translateX(30px);
    z-index: 2;
}
.fp-doc-3 {
    width: 160px;
    height: 200px;
    z-index: 3;
    border-top: 4px solid #208AF0;
}
.fp-doc-lines {
    width: 100%;
    height: 4px;
    background: #DCE6F2;
    margin-bottom: 6px;
    border-radius: 2px;
}
.fp-doc-title {
    width: 60%;
    height: 6px;
    background: #0F5DB8;
    margin-bottom: 12px;
    border-radius: 2px;
}

/* Floating Banner */
.fp-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    background: #FFFFFF;
    border: 1px solid #DCE6F2;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(7, 31, 61, 0.15);
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    max-width: calc(100vw - 40px);
}

.fp-banner.is-active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.fp-banner-icon {
    background: #EBF4FF; /* Very pale blue */
    color: #208AF0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fp-banner-icon svg {
    width: 24px;
    height: 24px;
}

.fp-banner-content {
    display: flex;
    flex-direction: column;
}
.fp-banner-title {
    font-family: 'Inter', sans-serif;
    color: #071F3D;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 2px 0;
}
.fp-banner-subtitle {
    font-family: 'Inter', sans-serif;
    color: #5C677D;
    font-size: 0.8rem;
    margin: 0;
}

.fp-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.fp-banner-cta {
    font-family: 'Inter', sans-serif;
    background-color: #208AF0;
    color: #FFFFFF;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
}
.fp-banner-cta:hover {
    background-color: #0F5DB8;
}

.fp-banner-details {
    background: none;
    border: none;
    color: #5C677D;
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.25rem;
    white-space: nowrap;
}

.fp-banner-close {
    background: none;
    border: none;
    color: #5C677D;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: background-color 0.2s;
}
.fp-banner-close:hover {
    background-color: #F7FAFC;
    color: #172033;
}
.fp-banner-close svg {
    width: 16px;
    height: 16px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .fp-modal, .fp-modal-container, .fp-banner {
        transition: none;
        transform: none;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .fp-modal-container {
        flex-direction: column;
        width: 92%;
        max-height: 90vh; /* Fit within viewport safely */
        overflow-y: auto;
    }
    
    .fp-modal-visual {
        display: none; /* Hide visual on mobile to save space */
    }
    
    .fp-modal-content {
        padding: 1.5rem;
    }
    
    .fp-title {
        font-size: 1.5rem;
    }
    
    .fp-desc {
        font-size: 0.95rem;
    }
    
    .fp-close-icon {
        top: 1rem;
        right: 1rem;
    }
    
    .fp-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fp-btn-primary {
        width: 100%;
        padding: 1rem; /* 44px min touch target */
    }
    
    .fp-btn-secondary {
        padding: 1rem; /* 44px min touch target */
    }

    /* Mobile Floating Banner */
    .fp-banner {
        bottom: env(safe-area-inset-bottom, 16px);
        left: 16px;
        right: 16px;
        max-width: none;
        transform: translateY(20px);
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .fp-banner.is-active {
        transform: translateY(0);
    }
    
    .fp-banner-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }
}
