/* ==========================================================================
   Pricing Options page (pricing.php) — page-specific styles (Bootstrap 5).
   Same look as the old Tailwind version: teal / dark-teal / navy licence
   columns, navy feature labels, 3-step progress bar.
   ========================================================================== */

/* Colours on :root — the billing modal sits outside .pricing-page and uses them too. */
:root {
    --plan-1: #2bb3bd;
    --plan-1-text: #2fa6ac;
    --plan-2: #1e8a91;
    --plan-2-text: #278b8b;
    --plan-3: #23486a;
    --plan-3-text: #2c4966;
    --label-bg: #2c4966;
    --line: #1f2937;
    --line-soft: #d1d5db;
}

.pricing-page {
    color: #1f2937;
}

.pricing-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.pricing-report a {
    color: var(--plan-1-text);
    text-decoration: none;
    font-weight: 500;
}

.pricing-report a:hover {
    text-decoration: underline;
}

/* ---------- Steps (Select licence / Pay / Receive) ---------- */
.pricing-steps {
    display: flex;
    justify-content: space-between;
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    position: relative;
    counter-reset: step;
}

.pricing-steps::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 16.66%;
    right: 16.66%;
    height: 4px;
    background: var(--line-soft);
}

.pricing-steps li {
    flex: 1;
    position: relative;
    text-align: center;
    font-size: .875rem;
    color: #6b7280;
}

.pricing-steps li::before {
    content: "";
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 auto .5rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--line-soft) 0 7px, #fff 8px);
    border: 4px solid var(--line-soft);
    position: relative;
    z-index: 1;
}

.pricing-steps li.is-active {
    color: #374151;
    font-weight: 500;
}

.pricing-steps li.is-active::before {
    border: 11px solid #0d9488;
    background: #fff;
}

.pricing-steps li.is-done::before {
    border-color: #0d9488;
    background: radial-gradient(circle, #0d9488 0 7px, #fff 8px);
}

/* ---------- Pricing table (≥ 768px) ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(150px, 1fr));
    max-width: 1232px;
    margin: 0 auto;
}

.pricing-grid__corner {
    font-weight: 700;
    font-size: 1.125rem;
    padding: .5rem 1.25rem;
    border-bottom: 2px solid var(--line);
    text-align: center;
}

.pricing-grid__head {
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: .5rem;
}

.pricing-grid__head.plan-1 { background: var(--plan-1); border-top-left-radius: 1rem; }
.pricing-grid__head.plan-2 { background: var(--plan-2); }
.pricing-grid__head.plan-3 { background: var(--plan-3); border-top-right-radius: 1rem; }

.pricing-grid__label {
    background: var(--label-bg);
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: .375rem .75rem;
    margin: 0 0 .75rem;
    border-radius: .375rem 0 0 .375rem;
    align-self: start;
}

.pricing-grid__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    padding: .5rem;
    border-right: 2px solid var(--line-soft);
    border-bottom: 2px solid var(--line-soft);
    background: #fff;
}

.pricing-grid__cell.pack-1 { border-left: 2px solid var(--line); }
.pricing-grid__cell.pack-3 { border-right-color: var(--line); }

.pricing-grid__price {
    font-size: 1.25rem;
    padding: 1.5rem .5rem;
    border-top: 2px solid var(--line);
}

.pricing-grid__action {
    display: block;
    padding: .75rem .5rem 1rem;
    border-bottom: 2px solid var(--line);
}

.pricing-grid__action.pack-1 { border-bottom-left-radius: 1rem; }
.pricing-grid__action.pack-3 { border-bottom-right-radius: 1rem; }

.pricing-grid__cell .fa-check { font-size: 1.25rem; }

/* Plan text colours (table + cards) */
.pricing-page .plan-1:not(.pricing-grid__head):not(.pricing-card__head):not(.pricing-btn) { color: var(--plan-1-text); }
.pricing-page .plan-2:not(.pricing-grid__head):not(.pricing-card__head):not(.pricing-btn) { color: var(--plan-2-text); }
.pricing-page .plan-3:not(.pricing-grid__head):not(.pricing-card__head):not(.pricing-btn) { color: var(--plan-3-text); }

/* Selected licence */
.selected-column {
    transform: scale(1.06);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 0, 0, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}

/* ---------- Pricing cards (< 768px) ---------- */
.pricing-card {
    border: 2px solid var(--line);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    padding-bottom: 1rem;
}

.pricing-card.selected-column { transform: none; }

.pricing-card__head {
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: .5rem;
}

.pricing-card__head.plan-1 { background: var(--plan-1); }
.pricing-card__head.plan-2 { background: var(--plan-2); }
.pricing-card__head.plan-3 { background: var(--plan-3); }

.pricing-card__price {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1rem 0 .5rem;
}

.pricing-card li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 1rem;
    border-top: 1px solid var(--line-soft);
    font-size: .9rem;
}

.pricing-card li span {
    color: #374151;
    font-weight: 500;
}

/* ---------- Buttons ---------- */
.pricing-btn {
    color: #fff;
    font-weight: 700;
    padding: .5rem 1.25rem;
    border: 0;
    border-radius: .25rem;
}

.pricing-btn.plan-1 { background: var(--plan-1-text); }
.pricing-btn.plan-2 { background: var(--plan-2-text); }
.pricing-btn.plan-3 { background: var(--plan-3-text); }

.pricing-btn:hover,
.pricing-btn:focus {
    color: #fff;
    filter: brightness(.92);
}

/* ---------- We accept / Trusted by ---------- */
.logo-box {
    border: 1px solid #000;
    border-radius: .75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .08);
    padding: .25rem;
    height: 100%;
}

.logo-box__head {
    background: var(--label-bg);
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: .5rem;
    border-radius: .75rem .75rem 0 0;
}

/* Both boxes: always one row of logos at the same height, whatever the
   window width or browser zoom (125%, 150% ...) — logos shrink, never wrap. */
.logo-box__body {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(.5rem, 2.5%, 1.5rem);
    padding: 1rem .75rem;
    height: 80px;
}

.logo-box__body img {
    flex: 1 1 0;
    min-width: 0;
    max-width: 110px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

/* Trusted by: many logos glide in one row (no scrollbar). The track holds the
   list twice; moving it by half its width loops seamlessly. */
.logo-marquee {
    justify-content: flex-start;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.logo-marquee__track {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: max-content;
    animation: logo-marquee 40s linear infinite;
}

.logo-marquee:hover .logo-marquee__track {
    animation-play-state: paused;
}

.logo-marquee__track img {
    flex: 0 0 auto;
    width: 130px;
    height: 60px;
    max-height: none;
    margin-right: 2rem;
}

/* Older pricing.php markup (no track): still a scrolling row at full logo size. */
.logo-box__body--scroll {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
}

.logo-box__body--scroll img {
    flex: 0 0 auto;
    width: 130px;
    max-width: none;
    height: 60px;
    max-height: none;
}

@keyframes logo-marquee {
    to { transform: translateX(-50%); }
}

/* Visitors who turn motion off: no gliding, logos can be scrolled by hand. */
@media (prefers-reduced-motion: reduce) {
    .logo-marquee { overflow-x: auto; }
    .logo-marquee__track { animation: none; }
}

/* Footer call / mail bar: no underline (same as the report page). */
.footer-top-bar a {
    text-decoration: none;
}

/* ---------- Billing modal ---------- */
/* styles.css gives every <button> flex / padding / shadow — undo that for
   Bootstrap's modal close (×) button so it stays a small icon. */
#billingModal .btn-close {
    flex: none;
    display: block;
    padding: .25em;
    box-shadow: none;
    border-radius: .375rem;
}

.cus_label {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #5e5e5e;
    margin-bottom: 2px;
}

.billing-plan {
    font-size: .95rem;
    color: #374151;
}

@media (max-width: 767.98px) {
    .pricing-title { font-size: 1.5rem; }

    .pricing-steps li { font-size: .75rem; padding: 0 .25rem; }
}
