/**
 * Paperwork Showcase Lightbox
 * Beautiful UI to display automated customs documents
 */

/* ===== Document Cards Grid ===== */
.paperwork-showcase {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.paperwork-showcase .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.paperwork-showcase .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.paperwork-showcase .section-badge svg {
    width: 18px;
    height: 18px;
}

.paperwork-showcase .section-header h2 {
    font-size: 2.25rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
}

.paperwork-showcase .section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* Requirements Section */
.paperwork-requirements {
    background: #fff;
    border-radius: 16px;
    padding: 25px 30px;
    max-width: 700px;
    margin: 0 auto 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.paperwork-requirements h4 {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-align: center;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 700px) {
    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.requirement-item svg {
    width: 22px;
    height: 22px;
    color: #3b82f6;
    flex-shrink: 0;
}

.requirement-item span {
    font-size: 0.85rem;
    color: #334155;
    font-weight: 500;
}

.document-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .document-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .document-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 3-card fallback (when canada doc not shown) */
.document-cards:has(> .doc-card:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
}

@media (max-width: 900px) {
    .document-cards:has(> .doc-card:nth-child(3):last-child) {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Individual Document Card */
.doc-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.doc-card:hover::before {
    transform: scaleX(1);
}

.doc-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.doc-card:hover .doc-card-icon {
    transform: scale(1.1);
}

.doc-card-icon svg {
    width: 36px;
    height: 36px;
    color: #3b82f6;
}

.doc-card h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 600;
}

.doc-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 15px;
}

.doc-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.doc-card-badge svg {
    width: 14px;
    height: 14px;
}

.doc-card-cta {
    margin-top: 15px;
    color: #3b82f6;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.doc-card-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.doc-card:hover .doc-card-cta svg {
    transform: translateX(4px);
}

/* ===== Lightbox Overlay ===== */
.paperwork-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.paperwork-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.paperwork-lightbox.active .lightbox-content {
    transform: scale(1) translateY(0);
}

/* Lightbox Content Container */
.lightbox-content {
    background: #fff;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

/* Lightbox Header */
.lightbox-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.lightbox-header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lightbox-header-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.lightbox-header-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.lightbox-header-text p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* Lightbox Body */
.lightbox-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Document Preview */
.doc-preview {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.doc-preview-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-preview-image {
    max-width: 200px;
    margin: 0 auto 15px;
    opacity: 0.7;
}

.doc-preview-image svg {
    width: 100%;
    height: auto;
}

.doc-preview h4 {
    color: #334155;
    font-size: 1rem;
    margin-bottom: 8px;
}

.doc-preview p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Feature List */
.doc-features {
    display: grid;
    gap: 15px;
}

.doc-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.doc-feature:hover {
    background: #f1f5f9;
}

.doc-feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-feature-icon svg {
    width: 20px;
    height: 20px;
    color: #2563eb;
}

.doc-feature-text h5 {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 4px;
}

.doc-feature-text p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* Lightbox Footer */
.lightbox-footer {
    padding: 20px 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.lightbox-footer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.9rem;
}

.lightbox-footer-info svg {
    width: 18px;
    height: 18px;
    color: #10b981;
}

.lightbox-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lightbox-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    color: #fff;
}

.lightbox-cta svg {
    width: 18px;
    height: 18px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .lightbox-content {
        max-height: 95vh;
        border-radius: 16px;
    }

    .lightbox-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }

    .lightbox-body {
        padding: 20px;
    }

    .lightbox-footer {
        flex-direction: column;
        text-align: center;
    }

    .lightbox-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Compact Inline Version ===== */
.paperwork-inline {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.paperwork-inline h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.paperwork-inline h3 svg {
    width: 24px;
    height: 24px;
    color: #3b82f6;
}

.paperwork-inline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 900px) {
    .paperwork-inline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .paperwork-inline-grid {
        grid-template-columns: 1fr;
    }
}

.paperwork-inline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.paperwork-inline-item:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.paperwork-inline-item svg {
    width: 28px;
    height: 28px;
    color: #3b82f6;
    flex-shrink: 0;
}

.paperwork-inline-item span {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

/* ===== Tracking Upgrade Banner ===== */
.tracking-upgrade {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 25px 30px;
    margin-top: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}

.tracking-upgrade-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tracking-upgrade-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.tracking-upgrade-text {
    flex: 1;
}

.tracking-upgrade-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.tracking-upgrade-text span {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .tracking-upgrade {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .tracking-upgrade-icon {
        margin-bottom: 5px;
    }
}
