#section-pricing {
    background-color: rgb(237, 237, 237);
    padding: 40px 20px;
}

/* ── Quick Price Calculator ───────────────────────────────────────── */

.price-calculator {
    max-width: 780px;
    margin: 48px auto 16px;
    background: linear-gradient(135deg, #1a0040 0%, #3c0292 60%, #6600ff 100%);
    border-radius: 18px;
    padding: 36px 40px 32px;
    box-shadow: 0 8px 32px rgba(98, 0, 238, 0.35);
    color: #fff;
}

.calc-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 28px;
    letter-spacing: 0.02em;
    color: #00f5ff;
    text-shadow: 0 0 12px rgba(0, 245, 255, 0.5);
}

.calc-fields {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.calc-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 220px;
    max-width: 320px;
}

.calc-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c4a8ff;
    margin-bottom: 7px;
}

.calc-input {
    background: rgba(255, 255, 255, 0.10);
    border: 1.5px solid rgba(0, 245, 255, 0.35);
    border-radius: 8px;
    color: #fff;
    padding: 9px 14px;
    font-size: 0.97rem;
    outline: none;
    transition: border-color 0.2s;
    appearance: auto;
}

    .calc-input:focus {
        border-color: #00f5ff;
        background: rgba(255, 255, 255, 0.15);
    }

    .calc-input option {
        background: #3c0292;
        color: #fff;
    }

.calc-action {
    text-align: center;
}

.calc-button {
    background: #00f5ff;
    color: #1a0040;
    border: none;
    border-radius: 8px;
    padding: 11px 36px;
    font-size: 0.97rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 20px;
}

    .calc-button:hover:not(:disabled) {
        background: #00d4e0;
        transform: translateY(-1px);
    }

    .calc-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.calc-result {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 245, 255, 0.10);
    border: 1.5px solid rgba(0, 245, 255, 0.4);
    border-radius: 12px;
    padding: 16px 40px;
    transition: opacity 0.2s;
}

.calc-result-stale {
    opacity: 0.5;
}

.calc-result-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c4a8ff;
    margin-bottom: 4px;
}

.calc-result-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #00f5ff;
    line-height: 1.1;
    text-shadow: 0 0 16px rgba(0, 245, 255, 0.6);
}

.calc-stale-note {
    font-size: 0.78rem;
    color: #c4a8ff;
    margin-top: 6px;
}

.calc-error {
    color: #ff6b6b;
    font-size: 0.88rem;
    margin-top: 8px;
}

.coming-soon-badge {
    background-color: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 10px;
    vertical-align: middle;
    white-space: nowrap;
}

#pricing {
    display: block;
    margin: 0 auto;
    width: 100%;
}

.full-width.bg-gray {
    background-color: rgb(237, 237, 237); /* Gray background */
    min-height: 100vh; /* Full viewport height when content is smaller */
    padding: 20px 0; /* Add some padding for spacing */
}

.pricing-container {
    display: block;
}

    .pricing-container .mat-tab-group {
        min-width: 0;
        min-height: 0;
        overflow: visible;
    }

        .pricing-container .mat-tab-group .mdc-tab-bar .mdc-tab-scroller {
            overflow-x: auto; /* Enable horizontal scrolling */
            white-space: nowrap; /* Prevent tabs from breaking into a new line */
        }

            .pricing-container .mat-tab-group .mdc-tab-bar .mdc-tab-scroller .mdc-tab {
                display: inline-block; /* Ensure tabs are displayed inline */
            }

@media (max-width: 768px) {
    .pricing-container .mat-tab-group .mdc-tab-bar .mdc-tab-scroller .mat-tab-label-container {
        white-space: normal; /* Allow tabs to break into a new line */
        display: flex;
        flex-wrap: wrap; /* Allow tabs to wrap into multiple lines */
    }

    .pricing-container .mat-tab-group .mdc-tab-bar .mdc-tab-scroller .mdc-tab-scroller__scroll-area {
        flex: 1 1 auto; /* Allow tabs to grow and shrink */
        min-width: 100px; /* Set a minimum width for tabs */
        overflow-x: scroll;
    }
}

.pricing-tab {
    align-items: flex-start;
    justify-content: center;
}

.price-card {
    flex: 0 0 calc(20% - 20px); /* Five cards per row with spacing */
    max-width: 300px; /* Ensures cards stay at a reasonable width */
    background: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 10px; /* Add margin to create space between cards */
}

    .price-card .header-tile {
        color: rgb(255, 255, 255);
        padding: 20px;
        text-align: center;
        font-weight: bold;
        word-wrap: break-word; /* Ensures long words wrap if necessary */
        word-break: keep-all; /* Prevents breaking words like "Go" */
        white-space: normal; /* Allows wrapping onto new lines */
        font-size: 18px; /* Adjust font size for better readability */
        line-height: 1.5; /* Adds spacing between lines for readability */
    }

        .price-card .header-tile .details {
            display: block; /* Forces the details onto a new line */
            margin-top: 10px; /* Adds spacing between main text and details */
            font-weight: normal; /* Use normal weight for secondary text */
            font-size: 12px; /* Slightly smaller font size for details */
            line-height: 1.4; /* Maintain readability */
        }

.bg-modern-orange .header-tile {
    background: rgb(245, 166, 35); /* Pastel orange */
}

.bg-modern-red .header-tile {
    background: rgb(246, 77, 77); /* Pastel red */
}

.bg-modern-green .header-tile {
    background: rgb(48, 219, 181); /* Pastel green */
}

.bg-modern-blue .header-tile {
    background: rgb(86, 156, 214); /* Pastel blue */
}

.bg-modern-purple .header-tile {
    background: rgb(173, 117, 229); /* Pastel purple */
}

.bg-modern-pink .header-tile {
    background: rgb(255, 128, 171); /* Pastel pink */
}

.price-card .price-item {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
}

.price-card .name-item {
    font-size: 16px;
    margin: 5px 0;
}

.price-card .features {
    list-style: none;
    padding: 0 20px 20px;
    text-align: left !important; /* Ensure text alignment is applied */
    font-size: 14px;
    color: rgb(85, 85, 85);
    flex-grow: 1;
    overflow-wrap: break-word !important; /* Ensure overflow wrap is applied */
    word-wrap: break-word !important; /* Ensure word wrap is applied */
    word-break: break-word !important; /* Ensure word break is applied */
    white-space: normal !important; /* Ensure white space is applied */
}

    .price-card .features li {
        margin: 10px 0;
    }

.price-card .modern-button {
    background-color: rgb(48, 219, 181); /* Default button color */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    margin: 20px auto;
    display: block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .price-card .modern-button:hover {
        background-color: rgb(38, 176, 146); /* Darker green on hover */
    }

.bg-modern-orange .modern-button {
    background-color: rgb(245, 166, 35);
}

.bg-modern-red .modern-button {
    background-color: rgb(246, 77, 77);
}

.bg-modern-green .modern-button {
    background-color: rgb(48, 219, 181);
}

.bg-modern-blue .modern-button {
    background-color: rgb(86, 156, 214);
}

.bg-modern-purple .modern-button {
    background-color: rgb(173, 117, 229);
}

.bg-modern-pink .modern-button {
    background-color: rgb(255, 128, 171);
}

.price-card .tip {
    font-family: 'Indie Flower', cursive;
    color: rgb(117, 117, 117);
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
}

@media (min-width: 671px) and (max-width: 768px) {
    .price-card {
        flex: 0 0 calc(50% - 20px); /* Two cards per row for smaller screens */
        max-width: 100%;
    }
}

@media (min-width: 481px) and (max-width: 670px) {
    .price-card {
        flex: 1 1 auto; /* Two cards per row for smaller screens */
        max-width: 100%;
        justify-content: center;
        margin-left: 50px;
        margin-right: 50px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .pricing-container {
        justify-content: center;
    }

    .price-card {
        flex: 1 1 auto; /* One card per row for very small screens */
        max-width: 100%;
        justify-content: center;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 8px;
    }

        .price-card .features {
            list-style: none;
            padding: 0 10px 20px;
            text-align: left !important;
            font-size: 14px;
            color: rgb(85, 85, 85);
            flex-grow: 1;
        }

            .price-card .features li {
                margin: 10px 0;
                max-width: 100%;
                overflow-wrap: break-word; /* Ensure long words break to fit within the container */
                word-wrap: break-word; /* Ensure long words wrap if necessary */
                word-break: break-word; /* Ensure long words break if necessary */
                white-space: normal; /* Allows wrapping onto new lines */
            }
}
