/**
 * BPA Global Enterprises — Welcome Experience Modal Stylesheet
 * File: assets/css/bpa-welcome-modal.css
 */

/* 1. Modal Overlay & Container */
#homeFormModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;

    background: rgba(10, 15, 20, 0.68) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 20px 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

#homeFormModal .modal-dialog {
    max-width: 880px;
    width: 100%;
    margin: 1.75rem auto;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#homeFormModal.fade .modal-dialog {
    transform: scale(0.94) translateY(15px);
}

#homeFormModal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

#homeFormModal .modal-content {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
}

/* 2. Sleek Floating Close Button */
#homeFormModal .bpa-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 15px;
    cursor: pointer;

    transition: all 0.25s ease;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

#homeFormModal .bpa-modal-close:hover {
    background: #E61C1B;
    border-color: #E61C1B;
    color: #ffffff;
    transform: rotate(90deg);
}

/* 3. Modal Header Section */
.bpa-welcome-header {
    text-align: center;
    padding: 34px 28px 20px;
    background: linear-gradient(180deg, #fdfbf7 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f1f1;
}

.bpa-welcome-logo-wrap {
    margin-bottom: 12px;
}

.bpa-welcome-logo {
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

.bpa-welcome-badge {
display: inline-block;
    font-family: "Epilogue", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e41b1b;
    background: rgb(229 26 25 / 9%);
    padding: 3px 14px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.bpa-welcome-title {
  
    font-size: 27px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.25;
}

.bpa-welcome-subtitle {
    font-family: "Epilogue", sans-serif;
    font-size: 14.5px;
    color: #6b7280;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.55;
}

/* 4. Dual Choice Grid */
.bpa-welcome-body {
    padding: 26px 28px 22px;
    background: #ffffff;
}

.bpa-welcome-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

/* Base Card */
.bpa-choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border: 2px solid #eef0f3;
    border-radius: 20px;
    padding: 26px 22px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.bpa-choice-card:hover {
    text-decoration: none !important;
    transform: translateY(-5px);
}

/* Icon & Category Pill */
.bpa-choice-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bpa-choice-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.3s ease;
}

.bpa-choice-card:hover .bpa-choice-icon {
    transform: scale(1.08);
}

.bpa-choice-pill {
    font-family: "Epilogue", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    padding: 4px 12px;
    border-radius: 50px;
}

/* Content Area */
.bpa-choice-content h3 {
  
    font-size: 21px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}

.bpa-choice-desc {
    font-family: "Epilogue", sans-serif;
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.55;
    margin: 0 0 16px;
}

/* Feature Bullets */
.bpa-choice-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.bpa-choice-features li {
    font-family: "Epilogue", sans-serif;
    font-size: 12.5px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    line-height: 1.4;
}

.bpa-choice-features li i {
    font-size: 12px;
}

/* Call to Action Buttons */
.bpa-choice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    font-family: "Epilogue", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: all 0.25s ease;
    border: none;
}

.bpa-choice-btn i {
    transition: transform 0.25s ease;
}

.bpa-choice-card:hover .bpa-choice-btn i {
    transform: translateX(4px);
}

/* -------------------------------------------------------------
   THEME PALETTE SPECIALIZATION: Retail vs Wholesale
   ------------------------------------------------------------- */
/* Retail Card (BPA Red Theme) */
.bpa-choice-card--retail {
    border-color: #fde8e8;
    background: linear-gradient(180deg, #ffffff 0%, #fffcfc 100%);
}

.bpa-choice-card--retail .bpa-choice-icon {
    background: rgba(230, 28, 27, 0.1);
    color: #E61C1B;
}

.bpa-choice-card--retail .bpa-choice-pill {
    background: rgba(230, 28, 27, 0.08);
    color: #E61C1B;
}

.bpa-choice-card--retail .bpa-choice-content h3 {
    color: #111827;
}

.bpa-choice-card--retail .bpa-choice-features li i {
    color: #E61C1B;
}

.bpa-choice-card--retail .bpa-choice-btn {
    background: #E61C1B;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(230, 28, 27, 0.25);
}

.bpa-choice-card--retail:hover {
    border-color: #E61C1B;
    box-shadow: 0 16px 36px rgba(230, 28, 27, 0.14);
}

.bpa-choice-card--retail:hover .bpa-choice-btn {
    background: #c81514;
    box-shadow: 0 6px 18px rgba(230, 28, 27, 0.35);
}

/* Wholesale Card (BPA Green & Gold Theme) */
.bpa-choice-card--wholesale {
    border-color: #e3edea;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfb 100%);
}

.bpa-choice-card--wholesale .bpa-choice-icon {
    background: rgba(7, 101, 93, 0.1);
    color: #07655D;
}

.bpa-choice-card--wholesale .bpa-choice-pill {
    background: rgba(7, 101, 93, 0.1);
    color: #07655D;
}

.bpa-choice-card--wholesale .bpa-choice-content h3 {
    color: #111827;
}

.bpa-choice-card--wholesale .bpa-choice-features li i {
    color: #07655D;
}

.bpa-choice-card--wholesale .bpa-choice-btn {
    background: #07655D;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(7, 101, 93, 0.25);
}

.bpa-choice-card--wholesale:hover {
    border-color: #07655D;
    box-shadow: 0 16px 36px rgba(7, 101, 93, 0.16);
}

.bpa-choice-card--wholesale:hover .bpa-choice-btn {
    background: #054e47;
    box-shadow: 0 6px 18px rgba(7, 101, 93, 0.35);
}

/* 5. Modal Footer Links */
.bpa-welcome-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px 22px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    font-family: "Epilogue", sans-serif;
    font-size: 13px;
    color: #6b7280;
}

.bpa-welcome-footer a {
    color: #E61C1B;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bpa-welcome-footer a:hover {
    color: #07655D;
    text-decoration: underline;
}

.bpa-welcome-dismiss-btn {
    background: transparent;
    border: none;
    padding: 0;
    font-family: "Epilogue", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
}

.bpa-welcome-dismiss-btn:hover {
    color: #111827;
    text-decoration: underline;
}

/* 6. Responsive Styles — Zero Scroll Mobile Layout */
@media (max-width: 767.98px) {
    #homeFormModal {
        display: flex;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 8px !important;
        overflow: hidden !important;
    }

    #homeFormModal .modal-dialog {
        margin: auto !important;
        max-width: 440px !important;
        width: 100% !important;
        max-height: 96dvh !important;
    }

    #homeFormModal .modal-content {
        border-radius: 16px !important;
        max-height: 96dvh !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28) !important;
    }

    #homeFormModal .bpa-modal-close {
        top: 8px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }

    .bpa-welcome-header {
        padding: 14px 12px 8px !important;
    }

    .bpa-welcome-logo-wrap {
        margin-bottom: 4px !important;
    }

    .bpa-welcome-logo {
        max-height: 55px !important;
    }

    .bpa-welcome-badge {
        font-size: 8.5px !important;
        padding: 2px 8px !important;
        margin-bottom: 4px !important;
        letter-spacing: 0.5px !important;
    }

    .bpa-welcome-title {
        font-size: 15.5px !important;
        font-weight: 600 !important;
        margin: 0 0 2px !important;
        line-height: 1.2 !important;
    }

    .bpa-welcome-subtitle {
        font-size: 11px !important;
        line-height: 1.3 !important;
        max-width: 290px !important;
        margin: 0 auto !important;
    }

    .bpa-welcome-body {
        padding: 8px 10px 10px !important;
    }

    .bpa-welcome-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .bpa-choice-card {
        padding: 10px 8px !important;
        border-radius: 12px !important;
        border-width: 1.5px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .bpa-choice-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 6px !important;
    }

    .bpa-choice-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    .bpa-choice-pill {
        font-size: 8.5px !important;
        font-weight: 700 !important;
        padding: 2px 6px !important;
        letter-spacing: 0.3px !important;
    }

    .bpa-choice-content h3 {
        font-size: 13.5px !important;
        font-weight: 600 !important;
        margin: 0 0 3px !important;
        line-height: 1.2 !important;
    }

    .bpa-choice-desc {
        font-size: 10.5px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        color: #4b5563 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Hide bulky bullet list on mobile */
    .bpa-choice-features {
        display: none !important;
    }

    .bpa-choice-btn {
        padding: 7px 6px !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        gap: 4px !important;
    }

    .bpa-choice-btn i {
        font-size: 10px !important;
    }

    .bpa-welcome-footer {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 12px 9px !important;
        font-size: 11px !important;
    }

    .bpa-welcome-footer div,
    .bpa-welcome-dismiss-btn {
        font-size: 11px !important;
    }
}

/* Extra Compact for smaller screens <= 360px */
@media (max-width: 360px) {
    .bpa-welcome-subtitle {
        display: none !important;
    }

    .bpa-choice-pill {
        display: none !important;
    }

    .bpa-choice-content h3 {
        font-size: 12.5px !important;
    }

    .bpa-choice-desc {
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }

    .bpa-choice-btn {
        font-size: 10.5px !important;
        padding: 6px 4px !important;
    }
}

/* Short screens / Landscape mode */
@media (max-height: 540px) {
    .bpa-welcome-badge,
    .bpa-welcome-subtitle,
    .bpa-choice-desc {
        display: none !important;
    }

    .bpa-welcome-header {
        padding: 8px 12px 4px !important;
    }

    .bpa-welcome-body {
        padding: 6px 8px 8px !important;
    }

    .bpa-welcome-footer {
        padding: 6px 10px 6px !important;
    }
}
