/* ============================================
   ENHANCED PRICING PAGE - LIGHT BLUE THEME
   Keep all existing functionality, add visual enhancements
   ============================================ */

/* Color Variables - Light Blue Theme */
:root {
    --primary-color: #42a5f5;
    --primary-dark: #1976d2;
    --primary-light: #64b5f6;
    --success-color: #66bb6a;
    --success-dark: #43a047;
    --text-dark: #212121;
    --text-gray: #616161;
    --text-light: #9e9e9e;
    --bg-light: #f5f9fc;
    --bg-white: #ffffff;
    --bg-blue-light: #e3f2fd;
    --bg-blue-lighter: #f0f7ff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Pricing Hero Section */
.pricing-hero-section {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    padding: 70px 0;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.pricing-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right:  0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.pricing-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-icon {
    width: 90px;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius:  50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-icon i {
    font-size: 2.8rem;
    color: var(--bg-white);
}

.pricing-hero-title {
    font-size: 2.75rem;
    font-weight:  700;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.pricing-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
}

.btn-hero-download {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: none;
    padding: 16px 40px;
    font-size: 1.15rem;
    font-weight:  600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-hero-download:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Pricing Content Section */
.pricing-content-section {
    background-color: var(--bg-light);
    padding: 30px 0 80px 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

/* Billing Period Selector Enhancement */
.pricing-content-section .form-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}


/* Table Container Enhancement */
.pricing-content-section .table-responsive {
    border-radius: 16px ! important;
    overflow: hidden;
    box-shadow: var(--shadow-lg) !important;
    border: 2px solid var(--border-color);
}

/* Pricing table styles */
.table.pricing-table {
    border-collapse: collapse;
    margin-bottom: 0;
}

.pricing-table {
    table-layout: fixed ! important;
}

/* Table Header Enhancement */
.pricing-thead {
    background:  linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.pricing-thead th {
    border-bottom: none !important;
    padding: 22px 12px !important;
    color: var(--bg-white) !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #0a58ca;
}

.pricing-table td,
.pricing-table th {
    vertical-align: middle;
    padding: 15px 12px;
}

/* Alternating Row Colors */
.pricing-table tbody tr:nth-child(odd) {
    background: var(--bg-blue-lighter);
}

.pricing-table tbody tr:nth-child(even) {
    background: var(--bg-white);
}

.pricing-table tbody tr:hover {
    background-color: var(--bg-blue-light) !important;
    transition: background-color 0.2s ease;
}

/* Feature Name Cell */
.pricing-table td:first-child {
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
}

/* Price Icons */
.price-icon {
    display: inline-block;
    font-size: 18px;
    padding: 4px 6px;
    border-radius: 4px;
}

.price-icon.success {
    color: var(--success-color);
}

.price-icon.danger {
    color: #e53935;
}

/* Pricing Badge */
.pricing-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
    background-color: var(--bg-blue-light);
}

/* Enhanced Controls */
.pricing-select-wrap {
    position: relative;
    display: inline-block;
}

.pricing-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 8px 34px 8px 12px;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    background:  var(--bg-white);
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(66, 165, 245, 0.25);
}

.pricing-select-wrap:after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform:  translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--primary-color);
    pointer-events: none;
}

/* Checkbox Styling */
.pricing-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.pricing-checkbox-input {
    width: 20px;
    height: 20px;
    margin:  0;
    flex:  0 0 auto;
    border-radius: 4px;
    border: 2px solid var(--primary-light);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.pricing-checkbox-input:checked {
    background:  var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label {
    color: var(--text-dark);
    font-weight: 500;
}

.option-price {
    display: inline-block;
    min-width: 48px;
    text-align:  right;
    padding: 4px 8px;
    margin-left: 6px;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Inline Option Layout */
.pricing-option-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


.option-price {
    white-space: nowrap;
}

/* Fixed Price Display */
.pricing-fixed,.form-check-label {
    background:  var(--bg-blue-light);
    padding: 6px 12px;
    border-radius: 8px;
    color: #0a58ca;
    font-weight: 600;
}

/* Currency Display */
.pricing-currency {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pricing-currency .amount {
    font-weight: 700;
    color: var(--primary-dark);
}

.pricing-currency .currency-icon {
    background:  var(--bg-blue-light);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Total Row Enhancement */
.pricing-total-row {
    background: linear-gradient(90deg, #fff8e1, #fff3bf) !important;
    font-weight: 700;
    border-top: 3px solid #ffd166 !important;
}

.pricing-total-row .total-value {
    display: inline-block;
    min-width: 60px;
    text-align: right;
    color: #f57f17;
    font-weight:  800;
}

.pricing-currency.total-currency .currency-icon {
    font-size: 1.25rem;
    padding: 6px 10px;
}

/* Form Check Input */
.form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex:  0 0 auto;
    border-radius: 4px;
    border: 2px solid var(--primary-light);
    background: var(--bg-white);
    cursor: pointer;
}

.form-check-input:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Fixes for select dropdown clipping and arrow overlap inside the pricing table */
/* Allow native dropdowns to render above the table container */
.pricing-content-section .table-responsive {
    overflow: visible !important;
}

/* Ensure custom arrow stays behind the select dropdown */
.pricing-select-wrap {
    position: relative;
    display: inline-block;
}

.plan-feature-dropdown
{
    width: fit-content;
    display: inline-block;
    color: #0a58ca;
    font-weight: 600;
}

/* Align all table body data to left */
.pricing-table tbody td,
.pricing-table tbody th {
    text-align: left !important;
}

.form-check-input:disabled {
    opacity: 0.85;
    cursor: default;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Custom Visual Checkbox */
.pricing-checkbox .form-check-input {
    position: absolute ! important;
    width: 1px !important;
    height:  1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 ! important;
}

.pricing-checkbox .form-check-label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    user-select: none;
    color: var(--text-dark);
}

.pricing-checkbox .checkbox-label {
    color: var(--text-dark);
}

.pricing-checkbox .form-check-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--primary-light);
    background: var(--bg-white);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.pricing-checkbox .form-check-input:checked + .form-check-label::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pricing-checkbox .form-check-input:checked + .form-check-label::after {
    content: "";
    position: absolute;
    left:  7px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 11px;
    border: solid var(--bg-white);
    border-width: 0 2px 2px 0;
    box-sizing: border-box;
}

.pricing-checkbox .form-check-input:focus + .form-check-label::before {
    outline: 3px solid rgba(66, 165, 245, 0.2);
    outline-offset: 2px;
}

/* Plan Price Row */
.fw-bold.table-active {
    background: linear-gradient(90deg, var(--bg-blue-light), var(--bg-blue-lighter)) !important;
    border-top: 3px solid var(--primary-color) !important;
    border-bottom: 3px solid var(--primary-color) !important;
}

.fw-bold.table-active td {
    padding: 20px 12px !important;
    font-size: 1.1rem !important;
}

.price-value {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
}

/* Selected Total Row */
.selected-total-row {
    background: linear-gradient(90deg, #e0f7fa, #b2ebf2) !important;
    font-weight: 700;
    border-bottom: 3px solid #00acc1 !important;
}

.selected-total-row td {
    padding: 20px 12px !important;
}

.selected-total-value {
        font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
}

.option-optionValue {
    color: var(--text-dark) !important;
    font-weight: 600;
}

/* Purchase Row Enhancement */
.purchase-row {
    background-color: var(--bg-light) !important;
}

.purchase-row .purchase-btn {
    padding: 12px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    border: none;
    color: var(--bg-white);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.purchase-row .purchase-btn:hover {
    background:  linear-gradient(135deg, var(--success-dark), var(--success-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.purchase-row td {
    vertical-align: middle;
    padding: 25px 12px ! important;
}

.purchase-btn .btn-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 1.1rem;
    line-height: 1;
}

/* Download Button */
.download-btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.download-btn .btn-icon {
    margin-right: 8px;
    font-size: 1.05rem;
}



.span-optionvalue {
    color: var(--text-dark) !important;
    font-weight: 600;
}

/* Column Width Management */
.pricing-table th,
.pricing-table td {
    overflow: visible;
}

.pricing-table {
    word-break: break-word;
}


.pricing-table td:first-child,
.pricing-table th:first-child {
    width: 28%;
    white-space: normal;
}

.pricing-table th:not(:first-child),
.pricing-table td:not(:first-child) {
    width: 18%;
}

/* Help Section */
.pricing-help-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 70px 0;
    color:  var(--bg-white);
    position: relative;
    overflow: hidden;
}

.pricing-help-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right:  0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.help-content {
    position: relative;
    z-index: 1;
}

.help-icon {
    font-size: 4rem;
    margin-bottom:  25px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.help-title {
    font-size: 2.25rem;
    font-weight:  700;
    margin-bottom: 1rem;
}

.help-subtitle {
    font-size: 1.15rem;
    margin-bottom:  2.5rem;
    opacity: 0.95;
}

.help-buttons .btn {
    padding: 14px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    border:  2px solid var(--bg-white);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.help-buttons .btn:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .pricing-hero-title {
        font-size: 2.25rem;
    }

    .pricing-hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-icon {
        width: 70px;
        height: 70px;
    }

    .hero-icon i {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .pricing-hero-section {
        padding: 50px 0;
    }

    .pricing-hero-title {
        font-size: 1.85rem;
    }

    .pricing-hero-subtitle {
        font-size: 1rem;
    }

    .btn-hero-download {
        font-size: 1rem;
        padding: 14px 28px;
    }

    .pricing-table td,
    .pricing-table th {
        padding: 10px 6px ! important;
        font-size: 0.85rem !important;
    }

    .purchase-btn {
        padding: 10px 16px ! important;
        font-size:  0.9rem !important;
    }

    .help-buttons .btn {
        display: block;
        margin: 10px auto ! important;
        width: 90%;
        max-width: 300px;
    }

    .price-value {
        font-size: 1.2rem !important;
    }

    .selected-total-value {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 576px) {
    .pricing-table td {
        padding: 8px 4px !important;
    }
}