/* =========================================
   Pricing Calculator Page Styles
   ========================================= */

/* Hero Pricing Override */
.pricing-hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero__grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

.hero__orb--1 {
    top: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: #2b5af4;
    /* Primary Accent */
}

.hero__orb--2 {
    bottom: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: #ff5000;
    /* Orange Accent */
    opacity: 0.2;
}

.pricing-hero .hero__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-hero .hero__title {
    margin-top: 0;
}

.pricing-hero .hero__description {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

/* Pricing Tabs - Premium Sliding Design */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto 64px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px;
    border-radius: 24px;
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 10px 30px -5px rgba(15, 23, 42, 0.1),
        0 4px 6px -2px rgba(15, 23, 42, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 16px 32px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.tab-btn:hover {
    color: #ffffff;
    background-color: #ff5000;
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.2);
}

.tab-btn:hover svg {
    opacity: 1;
    color: #ffffff;
}

.tab-btn.active {
    color: #ffffff;
}

/* Sliding Background Indicator */
.tab-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: #ff5000;
    border-radius: 18px;
    box-shadow:
        0 10px 15px -3px rgba(255, 80, 0, 0.3),
        0 4px 6px -2px rgba(255, 80, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.tab-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.tab-btn.active svg {
    opacity: 1;
    color: #ffffff;
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .pricing-tabs {
        width: 100%;
        margin-top: 0;
        margin-bottom: 32px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .pricing-tabs {
        flex-direction: column;
        padding: 12px;
        width: 100%;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .tab-slider {
        display: none;
    }

    .tab-btn.active {
        background: white;
        box-shadow: 0 4px 12px rgba(255, 80, 0, 0.1);
    }
}

/* Pricing Group (Table Container) */
.pricing-group {
    display: none;
    animation: tabSlideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.pricing-group.active {
    display: block;
}

@keyframes tabSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-group h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.pricing-group h2::before {
    content: '';
    width: 6px;
    height: 32px;
    background: #ff5000;
    border-radius: 10px;
}

/* Pricing Table */
.pricing-table-container {
    margin-top: 40px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.pricing-table-container:hover {
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 700px;
}

.pricing-table th,
.pricing-table td {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.pricing-table th {
    background: #f8fafc;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid #edf2f7;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table td {
    color: #334155;
    font-size: 15px;
}

.product-name-cell {
    font-weight: 600;
    color: #0f172a;
    max-width: 500px;
}

.price-cell {
    white-space: nowrap;
    font-weight: 600;
    color: #64748b;
}

.quantity-cell {
    width: 140px;
}

.total-cell {
    width: 180px;
    font-weight: 700;
    color: #ff5000;
    text-align: right;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    width: fit-content;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: none;
    border-radius: 6px;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.quantity-btn:hover {
    background: #ff5000;
    color: white;
}

.quantity-input {
    width: 44px;
    text-align: center;
    background: transparent;
    border: none;
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Sticky Summary (Floating at bottom) */
.pricing-summary {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(15, 23, 59, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 48px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.4);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-summary.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.summary-stats {
    display: flex;
    gap: 48px;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    font-weight: 600;
}

.summary-value {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.summary-value.total-price {
    color: #ff5000;
    font-size: 32px;
}

.summary-cta {
    display: flex;
    gap: 16px;
}

@media (max-width: 768px) {
    .pricing-summary {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        bottom: 16px;
        padding: 24px;
    }

    .summary-stats {
        gap: 24px;
        width: 100%;
        justify-content: center;
    }

    .summary-value {
        font-size: 20px;
    }

    .summary-value.total-price {
        font-size: 24px;
    }

    .summary-cta {
        width: 100%;
    }

    .summary-cta .btn {
        width: 100%;
    }

    .pricing-table-container {
        padding: 0;
    }

    .pricing-table th:nth-child(4),
    .pricing-table td:nth-child(4) {
        display: none;
    }
}

/* Contact Section in Pricing */
.pricing-result-card {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.pricing-result-card .result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.result-value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.result-total {
    font-size: 20px;
    font-weight: 800;
    color: #ff5000;
}

/* Form Grid for 2-column layout */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Table Scroll Hint */
@media (max-width: 768px) {
    .pricing-table-container::after {
        content: "← Прокрутіть для перегляду →";
        display: block;
        text-align: center;
        font-size: 12px;
        color: #94a3b8;
        margin-top: 16px;
        font-weight: 500;
    }
}

/* Support Pricing Styles */
.support-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .support-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .support-pricing-grid {
        grid-template-columns: 1fr;
    }
}

.support-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.support-card.popular-card {
    border: 2px solid #ff5000;
    box-shadow: 0 20px 25px -5px rgba(255, 80, 0, 0.15);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff5000;
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
}

.support-card__hours {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.support-card__price {
    font-size: 36px;
    font-weight: 700;
    color: #ff5000;
    line-height: 1;
    margin-bottom: 4px;
}

.support-card__price .currency {
    font-size: 18px;
    font-weight: 500;
    color: #64748b;
}

.support-card__meta {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.support-card__rate {
    background: #f1f5f9;
    color: #334155;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.support-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    width: 100%;
}

.support-card__features li {
    padding: 8px 0;
    color: #475569;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.support-card__features li:last-child {
    border-bottom: none;
}

.btn-full {
    width: 100%;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid #ff5000;
    color: #ff5000;
}

.btn-outline-primary:hover {
    background: #ff5000;
    color: white;
}