/* Nexus Modals CSS - Standalone Package */

/* CSS Variables for Nexus Theme */
:root {
    --nexus-blue: #1d4ed8;
    --nexus-blue-light: #3b82f6;
    --nexus-gold: #f59e0b;
    --nexus-gold-light: #fbbf24;
    --nexus-ice-white: #f0f9ff;
    --nexus-clean-white: #f8fafc;
    --nexus-green: #10b981;
    --nexus-beige: #ebd9bf;
    --gradient-nexus: linear-gradient(135deg, #1d4ed8 0%, #f59e0b 100%);
}

/* Demo Page Styles */
.demo-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.demo-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.integration-info {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.btn-bill-reduction {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
}

.btn-bill-reduction:hover {
    background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.btn-prescription {
    background: linear-gradient(135deg, #22c55e 0%, #14b8a6 100%);
    color: white;
}

.btn-prescription:hover {
    background: linear-gradient(135deg, #16a34a 0%, #0d9488 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.btn-primary {
    background: var(--gradient-nexus);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.modal-close:hover {
    background: #f3f4f6;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    margin: 0 auto;
}

.video-container video {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

/* Bill Reduction Modal Styles */
.step-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.step-icon {
    color: var(--nexus-blue-light);
    margin-bottom: 0.5rem;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--gradient-nexus);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3);
}

.savings-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(29, 78, 216, 0.05);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(29, 78, 216, 0.1);
    transition: all 0.3s ease;
}

.savings-item:hover {
    background: rgba(29, 78, 216, 0.1);
    border-color: rgba(29, 78, 216, 0.2);
    transform: translateY(-2px);
}

.savings-icon {
    margin-right: 1rem;
    color: var(--nexus-blue-light);
    flex-shrink: 0;
}

.savings-type {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.savings-percentage {
    font-weight: 600;
    color: var(--nexus-blue);
    background: rgba(29, 78, 216, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

/* Prescription Modal Styles */
.prescription-process {
    margin: 2rem 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid rgba(29, 78, 216, 0.1);
    position: relative;
}

.process-step .step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nexus-blue-light);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.step-icon {
    font-size: 2rem;
    margin: 1rem 0 0.5rem 0;
}

.process-step h5 {
    color: var(--nexus-blue);
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.process-step p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.savings-examples {
    margin: 2rem 0;
}

.medication-savings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.medication-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.medication-card h6 {
    color: #1e3a8a;
    font-weight: 600;
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
}

.price-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.retail-price {
    color: #dc2626;
    font-size: 1rem;
    text-decoration: line-through;
    font-weight: 500;
}

.nexus-price {
    color: #059669;
    font-weight: 600;
    font-size: 1.125rem;
}

.savings-percent {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: white;
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.key-benefits {
    margin: 2rem 0;
}

.benefits-list {
    background: #1e3a8a;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.checkmark {
    color: #fbbf24;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit-item span:last-child {
    color: white;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 400;
}

/* Utility Classes */
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.text-center { text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 1rem; }
.col-md-4 { flex: 1; min-width: 250px; }
.col-md-6 { flex: 1; min-width: 300px; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .demo-buttons {
        flex-direction: column;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-md-4,
    .col-md-6 {
        min-width: auto;
    }
    
    /* Hotel images in travel modal - tablet optimization */
    .hotel-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    
    .hotel-card img {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    .demo-container {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Hotel images in travel modal - mobile optimization */
    .hotel-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    .hotel-card {
        margin-bottom: 0.25rem !important;
    }
    
    .hotel-card img {
        height: 350px !important;
    }
    
    /* Optimize text spacing for mobile to maximize image space */
    .hotel-card div {
        padding: 0.75rem !important;
    }
    
    .hotel-card h5 {
        font-size: 1.05rem !important;
        margin-bottom: 0.15rem !important;
        line-height: 1.3 !important;
    }
    
    .hotel-card p {
        margin-bottom: 0.1rem !important;
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }
    
    .hotel-card p:last-of-type {
        margin-bottom: 0.5rem !important;
    }
    
    /* Make savings badge smaller on mobile */
    .hotel-card span {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Optimize modal spacing for mobile */
    .vip-savings-section {
        margin-top: 2rem !important;
    }
    
    .vip-savings-section h4 {
        margin-bottom: 1rem !important;
        font-size: 1.3rem !important;
    }
}
