/**
 * Pricing Section Styles
 * Clean, minimal design with subtle shadow differentiation
 */

/* ===================================
   CSS Variables
   =================================== */
:root {
    --pricing-primary: #2563eb;
    --pricing-primary-light: #3b82f6;
    --pricing-background: #f8fafc;
    --pricing-card-bg: #ffffff;
    --pricing-text-primary: #1e293b;
    --pricing-text-secondary: #64748b;
    --pricing-text-muted: #94a3b8;
    --pricing-border: #e2e8f0;
    --pricing-success: #160e3b;
    --pricing-radius: 16px;
    --pricing-radius-sm: 8px;
}

/* ===================================
   Pricing Section Container
   =================================== */
.pricing-section {
    padding: 2rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-section.hidden {
    display: none !important;
}

/* ===================================
   Pricing Header
   =================================== */
.pricing-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pricing-text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.pricing-header p {
    color: var(--pricing-text-secondary);
    font-size: 1rem;
    margin: 0;
}

.industry-badge {
    display: inline-block;
    background: var(--pricing-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ===================================
   Pricing Cards Grid
   =================================== */
.pricing-cards-container .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

#pricing-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
    align-items: stretch;
}

/* ===================================
   Individual Pricing Card - Base
   =================================== */
.pricing-card {
    background: var(--pricing-card-bg);
    border-radius: var(--pricing-radius);
    border: 1px solid var(--pricing-border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2),
                0 8px 24px rgba(37, 99, 235, 0.15),
                0 20px 40px rgba(37, 99, 235, 0.1);
}

.pricing-card.selected {
    border-color: var(--pricing-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Popular card - same styling as basic */
.pricing-card.popular {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pricing-card.popular:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2),
                0 8px 24px rgba(37, 99, 235, 0.15),
                0 20px 40px rgba(37, 99, 235, 0.1);
}

/* ===================================
   Card Header
   =================================== */
.card-header-section {
    padding: 1.75rem 1.75rem 1.25rem;
    text-align: center;
}

.plan-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    margin-bottom: 0.75rem;
    background: #f1f5f9;
    color: var(--pricing-text-secondary);
}

.plan-badge.basic {
    background: #f1f5f9;
    color: var(--pricing-text-secondary);
}

.plan-badge.popular {
    background: #f1f5f9;
    color: var(--pricing-text-secondary);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pricing-text-primary);
    margin: 0;
    letter-spacing: -0.025em;
}

/* ===================================
   Transaction Fee Highlight
   =================================== */
.transaction-fee {
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    margin: 0 1.75rem 1rem;
    border-radius: var(--pricing-radius-sm);
    text-align: center;
    border: 1px solid var(--pricing-border);
}

.transaction-fee-label {
    font-size: 0.6875rem;
    color: var(--pricing-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.transaction-fee-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--pricing-primary);
    letter-spacing: -0.025em;
}

/* ===================================
   Services Table
   =================================== */
.services-section {
    padding: 0.5rem 1.75rem 1rem;
    flex-grow: 1;
}

.service-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.service-table th,
.service-table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
}

.service-table th {
    font-weight: 600;
    color: var(--pricing-text-primary);
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--pricing-border);
}

.service-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.service-table tbody tr:last-child {
    border-bottom: none;
}

.service-table .service-name {
    color: var(--pricing-text-secondary);
}

.service-table .service-price {
    text-align: right;
    font-weight: 600;
    color: var(--pricing-text-primary);
    white-space: nowrap;
}

.service-table .sub-item {
    padding-left: 1.25rem;
    font-size: 0.8125rem;
}

.service-table .main-service {
    font-weight: 600;
    color: var(--pricing-text-primary);
}

/* ===================================
   Highlights Section
   =================================== */
.highlights-section {
    padding: 1.25rem 1.75rem;
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
    min-height: 180px;
    flex-grow: 1;
}

.highlights-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--pricing-text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--pricing-text-secondary);
    line-height: 1.5;
}

.highlights-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--pricing-success);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===================================
   Customer Profile
   =================================== */
.customer-profile {
    padding: 1rem 1.75rem;
    border-top: 1px solid #f1f5f9;
}

.profile-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--pricing-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.625rem;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-tag {
    background: #f1f5f9;
    color: var(--pricing-text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===================================
   CTA Button
   =================================== */
.card-footer-section {
    padding: 1.25rem 1.75rem 1.75rem;
    margin-top: auto;
}

.select-plan-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: var(--pricing-radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: var(--pricing-primary);
    color: white;
}

.select-plan-btn:hover {
    background: var(--pricing-primary-light);
    transform: translateY(-1px);
}

.select-plan-btn.selected {
    background: var(--pricing-success);
}

/* Both card types use the same button style */
.pricing-card.popular .select-plan-btn {
    background: var(--pricing-primary);
    color: white;
}

.pricing-card.popular .select-plan-btn:hover {
    background: var(--pricing-primary-light);
}

/* ===================================
   Empty/Loading States
   =================================== */
.pricing-empty,
.pricing-loading {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--pricing-text-secondary);
    grid-column: 1 / -1;
}

.pricing-empty h3 {
    color: var(--pricing-text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ===================================
   Responsive Styles
   =================================== */
@media (max-width: 992px) {
    #pricing-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    #pricing-cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-section {
        padding: 1.5rem 1rem;
    }
    
    .pricing-header h2 {
        font-size: 1.5rem;
    }
    
    .plan-name {
        font-size: 1.375rem;
    }
    
    .card-header-section,
    .services-section,
    .highlights-section,
    .customer-profile,
    .card-footer-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .transaction-fee {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }
}

/* ===================================
   Custom Quote Card
   =================================== */
.pricing-card.custom-quote-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed var(--pricing-border);
}

.pricing-card.custom-quote-card:hover {
    border-color: var(--pricing-primary);
    border-style: solid;
}

.plan-badge.enterprise {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.custom-quote-content {
    padding: 1.5rem 1.75rem;
    text-align: center;
}

.custom-quote-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--pricing-primary);
}

.custom-quote-description {
    font-size: 0.9375rem;
    color: var(--pricing-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.custom-quote-btn {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.custom-quote-btn:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    color: white;
}

/* ===================================
   Industry Selection Button States
   =================================== */
.selection.pricing-active {
    border-color: var(--pricing-primary) !important;
    background: rgba(37, 99, 235, 0.03);
}

/* ===================================
   Custom Quote Modal
   =================================== */
.custom-quote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.custom-quote-modal.active {
    display: flex;
}

.custom-quote-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.custom-quote-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-quote-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-quote-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.custom-quote-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.custom-quote-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

.custom-quote-modal-header p {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
}

.custom-quote-form {
    padding: 1.5rem 2rem 2rem;
}

.quote-form-group {
    margin-bottom: 1.25rem;
}

.quote-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e293b;
}

.quote-form-group label .required {
    color: #dc3545;
}

.quote-form-group input,
.quote-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-form-group input:focus,
.quote-form-group textarea:focus {
    outline: none;
    border-color: var(--pricing-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.quote-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.quote-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quote-cancel-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quote-cancel-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.quote-submit-btn {
    flex: 2;
    padding: 0.875rem 1.5rem;
    border: none;
    background: var(--pricing-primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quote-submit-btn:hover {
    background: var(--pricing-primary-light);
}

@media (max-width: 576px) {
    .custom-quote-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .custom-quote-modal-header,
    .custom-quote-form {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .quote-form-actions {
        flex-direction: column;
    }
    
    .quote-cancel-btn,
    .quote-submit-btn {
        flex: none;
        width: 100%;
    }
}
