/* Support page (servicii_de_asistenta.php). Reuses css/achizitie.css (orbit hero, switch, price cards) and
   css/efactura.css (hero grid, steps); adds the icon orbit, advantages, extra rates, terms and a 4-step flow. */

/* ---------- Hero: icons instead of product logos ---------- */
.site-modern .as-orbit__icon { color: var(--site-blue); }
.site-modern .as-orbit__icon svg { position: absolute; inset: 28%; width: 44%; height: 44%; }
.site-modern.site-support .ac-orbit__offer { font-size: clamp(14px, 1.45vw, 18px); }

/* ---------- Advantages: dark band with tabs (same navy as "Important de știut" on e-Factura) ---------- */
.site-modern .as-why {
    padding: 88px 24px;
    background:
        radial-gradient(40% 60% at 10% 0%, rgba(44, 109, 229, .35), transparent 70%),
        radial-gradient(40% 60% at 100% 100%, rgba(244, 106, 37, .14), transparent 70%),
        #17263d;
    color: #fff;
}
.site-modern .as-why__inner { max-width: 1160px; margin: 0 auto; }
.site-modern .as-why .pp-section-header { max-width: 860px; }
.site-modern .as-why .pp-section-header h2 { color: #fff; font-size: clamp(26px, 2.6vw, 36px); }
.site-modern .as-why .pp-section-header h2 span { color: #8db6ff; }
.site-modern .as-why .pp-section-header p:not(.pp-eyebrow) { margin-top: 14px; color: rgba(255, 255, 255, .78); font-family: var(--site-font-body); font-size: 16px; line-height: 1.7; }
.site-modern .as-why .pp-eyebrow { color: #8db6ff; }

.site-modern .as-tabs { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 26px; align-items: stretch; }
.site-modern .as-tabs__list { display: grid; gap: 12px; align-content: start; }
.site-modern .as-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-family: var(--site-font-body);
    text-align: left;
    cursor: pointer;
    transition: background .25s, border-color .25s, transform .25s;
}
.site-modern .as-tab:hover { background: rgba(255, 255, 255, .09); transform: translateX(4px); }
.site-modern .as-tab[aria-selected="true"] { border-color: rgba(141, 182, 255, .55); background: linear-gradient(135deg, rgba(44, 109, 229, .45), rgba(29, 87, 200, .25)); }
.site-modern .as-tab:focus-visible { outline: 3px solid #8db6ff; outline-offset: 2px; }
.site-modern .as-tab__icon { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #8db6ff; transition: background .25s, color .25s; }
.site-modern .as-tab[aria-selected="true"] .as-tab__icon { background: #fff; color: var(--site-blue); }
.site-modern .as-tab__text strong { display: block; font-family: var(--site-font-heading); font-size: 18px; font-weight: 700; }
.site-modern .as-tab__text small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .7); font-size: 14px; }
/* Progress bar of the auto-advance */
.site-modern .as-tab__progress { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: linear-gradient(90deg, #8db6ff, #fff); transform: scaleX(0); transform-origin: left; }
.site-modern .as-tabs.is-playing .as-tab[aria-selected="true"] .as-tab__progress { animation: as-progress 7s linear forwards; }
@keyframes as-progress { to { transform: scaleX(1); } }

.site-modern .as-panel {
    position: relative;
    overflow: hidden;
    padding: 36px 36px 32px;
    border-radius: 24px;
    background: #fff;
    color: var(--site-ink);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    animation: as-panel-in .45s ease;
}
@keyframes as-panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.site-modern .as-panel__number { position: absolute; top: 14px; right: 26px; color: #e3ecfd; font-family: var(--site-font-heading); font-size: 92px; font-weight: 700; line-height: 1; }
.site-modern .as-panel__icon { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%); color: #fff; box-shadow: 0 12px 24px rgba(33, 101, 232, .3); }
.site-modern .as-panel h3 { position: relative; margin: 20px 0 16px; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 26px; font-weight: 700; }
.site-modern .as-panel__list { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.site-modern .as-panel__list li { position: relative; padding-left: 30px; color: #33435a; font-family: var(--site-font-body); font-size: 16px; line-height: 1.65; }
.site-modern .as-panel__list li::before { content: ""; position: absolute; top: .45em; left: 0; width: 14px; height: 14px; border: 3px solid var(--site-blue); border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #e3ecfd; }

@media (prefers-reduced-motion: reduce) {
    .site-modern .as-panel { animation: none; }
    .site-modern .as-tab:hover { transform: none; }
}

/* ---------- Packages ---------- */
.site-modern .as-plans { align-items: start; }
.site-modern .as-plan__station { margin: -8px 0 18px; padding: 8px 12px; border-radius: 12px; background: #eef3fd; color: var(--site-blue); font-family: var(--site-font-body); font-size: 14px; font-weight: 700; text-align: center; }
.site-modern .as-plan__rates-title { margin: 22px 0 10px; padding-top: 18px; border-top: 1px solid #e4ebf6; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 16px; font-weight: 700; }
.site-modern .as-rates { display: grid; gap: 8px; margin: 0; }
.site-modern .as-rates div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #f6f9ff; }
.site-modern .as-rates dt { color: var(--site-blue); font-family: var(--site-font-body); font-size: 15px; font-weight: 700; }
.site-modern .as-rates dd { margin: 0; color: #4a5a70; font-family: var(--site-font-body); font-size: 13px; line-height: 1.45; }

/* ---------- Terms ---------- */
.site-modern .as-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.site-modern .as-terms li { display: flex; gap: 16px; padding: 22px 24px; border: 1px solid #e4ebf6; border-radius: 20px; background: linear-gradient(160deg, #ffffff 0%, #f6f9ff 100%); }
.site-modern .as-terms__n { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%); color: #fff; font-family: var(--site-font-heading); font-size: 17px; font-weight: 700; box-shadow: 0 8px 16px rgba(33, 101, 232, .25); }
.site-modern .as-terms p { margin: 0; color: #33435a; font-family: var(--site-font-body); font-size: 15px; line-height: 1.65; }

/* ---------- Workflow: track with 4 nodes; the blue line fills and the nodes light up one after another ---------- */
.site-modern .as-flow { padding: 88px 24px; }
.site-modern .as-flow__inner { max-width: 1160px; margin: 0 auto; }
.site-modern .as-flow .pp-section-header h2 { margin: 0; color: var(--site-ink); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.25; }
.site-modern .as-flow .pp-section-header h2 span { color: var(--site-blue); }
.site-modern .fl-track { --gap: 22px; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
/* Grey track + blue fill, from the centre of the first node to the centre of the last */
.site-modern .fl-track::before, .site-modern .fl-track::after { content: ""; position: absolute; top: 34px; left: 12.5%; right: 12.5%; height: 4px; border-radius: 4px; }
.site-modern .fl-track::before { background: #dfe8f6; }
.site-modern .fl-track::after { background: linear-gradient(90deg, #2c6de5, #1d57c8); transform-origin: left; transition: transform 2.4s cubic-bezier(.4, 0, .2, 1); }
.site-modern .fl-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Chevron half-way to the next node */
.site-modern .fl-step:not(:last-child)::after { content: ""; position: absolute; z-index: 1; top: 21px; right: calc(var(--gap) / -2 - 15px); box-sizing: border-box; width: 30px; height: 30px; border: 2px solid var(--site-blue); border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%232165e8%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m9 6 6 6-6 6%27/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 6px 14px rgba(33, 101, 232, .2); transition: opacity .4s; transition-delay: calc(var(--i) * .6s + .45s); }
.site-modern .fl-step__node {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(33, 101, 232, .12), 0 14px 28px rgba(33, 101, 232, .3);
    transition: background .4s, color .4s, box-shadow .4s, transform .4s;
    transition-delay: calc(var(--i) * .6s);
}
.site-modern .fl-step__card {
    width: 100%;
    margin-top: 22px;
    padding: 22px 20px 24px;
    border: 1px solid #e4ebf6;
    border-top: 4px solid var(--site-blue);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 59, 99, .07);
    transition: opacity .5s, transform .5s;
    transition-delay: calc(var(--i) * .6s + .1s);
}
.site-modern .fl-step__label { color: var(--site-blue); font-family: var(--site-font-body); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-modern .fl-step__card h3 { margin: 6px 0 10px; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 19px; font-weight: 700; text-align: center; }
.site-modern .fl-step__card p { margin: 0; color: #4a5a70; font-family: var(--site-font-body); font-size: 14px; line-height: 1.65; }
/* Before the section is visible (only when JS armed it): empty track, grey nodes, cards lowered */
.site-modern .fl-track.is-armed::after { transform: scaleX(0); }
.site-modern .fl-track.is-armed .fl-step__node { background: #fff; color: #9fb3d1; box-shadow: 0 0 0 6px rgba(33, 101, 232, .06), 0 8px 18px rgba(31, 59, 99, .1); transform: scale(.9); }
.site-modern .fl-track.is-armed .fl-step__card { opacity: 0; transform: translateY(18px); }
.site-modern .fl-track.is-armed .fl-step:not(:last-child)::after { opacity: 0; }
.site-modern .fl-track.is-armed.is-visible::after { transform: none; }
.site-modern .fl-track.is-armed.is-visible .fl-step__node { background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%); color: #fff; box-shadow: 0 0 0 6px rgba(33, 101, 232, .12), 0 14px 28px rgba(33, 101, 232, .3); transform: none; }
.site-modern .fl-track.is-armed.is-visible .fl-step__card { opacity: 1; transform: none; }
.site-modern .fl-track.is-armed.is-visible .fl-step:not(:last-child)::after { opacity: 1; }

@media (max-width: 1100px) {
}
@media (max-width: 900px) {
    /* Vertical track on the left, cards on the right; the line fills downwards */
    .site-modern .fl-track { grid-template-columns: minmax(0, 1fr); --gap: 20px; }
    /* One segment per step (node to next node), filling one after another */
    .site-modern .fl-track::before, .site-modern .fl-track::after { display: none; }
    .site-modern .fl-step:not(:last-child)::before { content: ""; position: absolute; top: 72px; bottom: calc(var(--gap) * -1); left: 34px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #2c6de5, #1d57c8); transform-origin: top; transition: transform .6s ease; transition-delay: calc(var(--i) * .6s + .3s); }
    .site-modern .fl-track.is-armed .fl-step:not(:last-child)::before { transform: scaleY(0); }
    .site-modern .fl-track.is-armed.is-visible .fl-step:not(:last-child)::before { transform: none; }
    .site-modern .fl-step { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; align-items: start; text-align: left; }
    .site-modern .fl-step:not(:last-child)::after { top: calc(50% + 36px + var(--gap) / 2 - 15px); right: auto; left: 21px; transform: rotate(90deg); }
    .site-modern .fl-step__card { margin-top: 0; }
    .site-modern .fl-step__card h3 { text-align: left; }
    .site-modern .as-tabs { grid-template-columns: minmax(0, 1fr); }
    .site-modern .as-tabs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .site-modern .as-tab { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 10px; text-align: center; }
    .site-modern .as-tab:hover { transform: none; }
    .site-modern .as-tab__text small { display: none; }
    .site-modern .as-tab__text strong { font-size: 15px; }
}
@media (max-width: 760px) {
    .site-modern .as-flow { padding: 56px 16px; }
    .site-modern .fl-step { grid-template-columns: 60px minmax(0, 1fr); column-gap: 14px; }
    .site-modern .fl-step__node { width: 60px; height: 60px; }
    .site-modern .fl-step:not(:last-child)::before { top: 60px; left: 28px; }
    .site-modern .fl-step:not(:last-child)::after { top: calc(50% + 30px + var(--gap) / 2 - 15px); left: 15px; }
    .site-modern .as-why { padding: 56px 16px; }
    .site-modern .as-panel { padding: 26px 22px 24px; }
    .site-modern .as-panel__number { font-size: 64px; right: 18px; }
    .site-modern .as-panel h3 { font-size: 22px; }
    .site-modern .as-tab__icon { width: 40px; height: 40px; }
    .site-modern .as-tab__text strong { font-size: 13px; }
    .site-modern .as-terms { grid-template-columns: minmax(0, 1fr); }
    .site-modern .as-terms li { padding: 18px; }
}
