<div class="stepper-wrapper mt-[80px] mb-[24px]">
<div class="stepper-item active">
<div class="step-counter">01</div>
<div class="step-name">{% trans from 'tarif_choice' %}Тарифні плани{% endtrans %}</div>
</div>
<div class="stepper-item ">
<div class="step-counter">02</div>
<div class="step-name">{% trans from 'tarif_choice' %}Реєстрація E-mail{% endtrans %}</div>
</div>
<div class="stepper-item ">
<div class="step-counter">03</div>
<div class="step-name">{% trans from 'tarif_choice' %}Отримання номеру{% endtrans %}</div>
</div>
<div class="stepper-item">
<div class="step-counter">04</div>
<div class="step-name">{% trans from 'tarif_choice' %}Підтвердження та оплата{% endtrans %}</div>
</div>
<div class="stepper-item">
<div class="step-counter">05</div>
<div class="step-name">{% trans from 'tarif_choice' %}Отримання eSIM{% endtrans %}</div>
</div>
</div>
<div class="rounded-[16px] p-[16px] md:p-[32px] border border-[#E2E2E9] bg-[#F7F7FA]" data-anchor="operators">
<div class="flex justify-between items-center relative">
<div class="flex flex-col gap-[16px] text-center mx-auto max-w-[485px]">
<div
class="text-[24px] font-medium text-white text-center max-w-max {% if companyStyles.titleTextAlign == 'center' %}mx-auto{% else %}md:mx-auto{% endif %}"
style="{{ inlineStyles(app.request.get('companyInner'), constant('App\\Constants\\SettingConstants::TITLE_STYLES')) }}"
>{% trans from 'main' %}Вибір оператора{% endtrans %}
</div>
<div class="text-[14px] font-medium text-[#A0A4AE] mb-[22px] leading-[18px] mx-auto text-{{ companyStyles.descriptionTextAlign }} {% if companyStyles.descriptionTextAlign == 'center' %}max-w-[360px]{% endif %}">{% trans from 'tarif_choice' %}Для того, щоб перейти до вибору тарифного плану, необхідно обрати мобільного оператора.{% endtrans %}</div>
</div>
<div class="absolute right-[-10px] top-[-10px] md:right-0 md:top-0">
<div class="relative group">
<button data-modal="#modal_faq"
class="js--modal hover:underline transition ease-in-out duration-150 block text-center w-[34px] h-[34px] p-[7px] md:w-[48px] md:h-[48px] md:p-[14px] bg-transparent border rounded-[50%] border-none font-semibold text-[16px] focus:outline-none"
style="color: {{ companyStyles.linkTextColor }}; --custom-color: {{ companyStyles.buttonColor }}; background-color: rgba(from var(--custom-color) r g b / 0.2)">
<svg class="w-[20px] h-[20px]"
style="fill: {{ companyStyles.buttonColor }}; border-color: {{ companyStyles.buttonColor }}">
<use href="{{ asset('build/sprite.svg#question') }}"></use>
</svg>
</button>
<!-- Тултип -->
<div class="w-[160px] text-right text-[14px] absolute hidden group-hover:block bg-[#1A1A1A] text-white rounded py-[4px] px-[8px] right-full top-1/2 -translate-y-1/2 mr-2 transition-opacity duration-200 opacity-0 group-hover:opacity-100">
{% trans from 'tarif_choice' %}Поширені питання та відповіді{% endtrans %}
<!-- Стрелка -->
<div class="absolute w-0 h-0 border-4 border-transparent border-l-[#1A1A1A] -right-2 top-1/2 -translate-y-1/2"></div>
</div>
</div>
</div>
</div>
<div class="mt-[14px] p-0 md:p-[18px] max-w-max min-w-full mx-auto ">
<div class="flex flex-col md:flex-row flex-wrap xl:flex-nowrap gap-[16px] justify-center items-baseline mb-[32px] md:mb-[76px]">
{% for item in operators %}
<div class="rounded-[16px] p-[16px] md:min-w-[394px] md:w-[394px] md:p-[24px] {% if item.active %}{% else %} opacity-60 pointer-events-none {% endif %} border border-[#E2E2E9] bg-white">
{% if item.connectionError %}
<div>
{% else %}
{% if item.isServerActive == true %}
<a href="{{ path('operator_tariff_page',{slug:item.slug}) }}">
{% else %}
<div>
{% endif %}
{% endif %}
<div class="flex items-center content-start gap-[16px]">
<div>
<svg class="w-[48px] h-[48px]">
{% if item.type == operatorLifecellType() %}
<use href="{{ asset('build/sprite.svg#lifecell_rebrending') }}"></use>
{% elseif item.type == operatorVodafoneType() %}
<use href="{{ asset('build/sprite.svg#vodafone') }}"></use>
{% else %}
<use href="{{ asset('build/sprite.svg#kyivstar_logo') }}"></use>
{% endif %}
</svg>
</div>
<div class="text-[24px] text-[#1B2028] font-medium">{{ item.name }}</div>
</div>
<hr class="h-px my-[8px] bg-[#E2E2E9] border-0 ">
<p class="text-[14px] font-medium text-[#5B5B5B] leading-tight mb-[8px]">
{{ item.description }}
</p>
{# <div class="flex w-full justify-between items-center"> #}
{# {% if item.connectionError %} #}
{# <p class="text-[14px] font-semibold" style="color: red"> #}
{# {% trans from 'main' %}Наразі послуга недоступна - спробуйте пізніше{% endtrans %} #}
{# </p> #}
{# {% else %} #}
{# <p class="text-[14px] font-semibold" style="color: {{ companyStyles.linkTextColor }}"> #}
{# {% trans from 'main' %}Обрати тариф та Купити eSIM{% endtrans %} #}
{# </p> #}
{# <div class="text-white bg-[#EDEDF1] hover:bg-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded-full text-sm p-[12px] text-center inline-flex items-center hover:ease-in duration-150"> #}
{# <svg class="w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 11"> #}
{# <path fill-rule="evenodd" clip-rule="evenodd" fill="{{ companyStyles.linkTextColor }}" d="M11.6814 10.5123L16.316 5.87774C16.6004 5.59334 16.6004 5.13224 16.316 4.84784L11.6814 0.213299C11.397 -0.0711002 10.9359 -0.0711003 10.6515 0.213299C10.3671 0.497698 10.3671 0.958799 10.6515 1.2432L14.0429 4.63455L1.23606 4.63454C0.833861 4.63454 0.507813 4.96059 0.507813 5.36279C0.507813 5.76499 0.833861 6.09104 1.23606 6.09104L14.0429 6.09104L10.6515 9.48239C10.3671 9.76679 10.3671 10.2279 10.6515 10.5123C10.9359 10.7967 11.397 10.7967 11.6814 10.5123Z"/> #}
{# </svg> #}
{# </div> #}
{# {% endif %} #}
{# </div> #}
{% if item.connectionError %}
</div>
{% else %}
{% if item.isServerActive == true %}
</a>
{% else %}
</div>
{% endif %}
{% endif %}
{% if item.tariffs is not empty and item.connectionError is empty %}
<div id="accordion-collapse" data-accordion="keep">
<h2 id="accordion-collapse-heading-{{ item.type }}" class="peer">
<button type="button"
class="js--accordionBtn group text-[14px] mt-[6px] flex items-center justify-start w-full font-semibold text-gray-500 gap-3"
data-accordion-target="#accordion-collapse-body-{{ item.type }}"
aria-expanded="false" aria-controls="accordion-collapse-body-{{ item.type }}">
<span class="pointer-events-none">{% trans from 'main' %}Доступні тарифні плани{% endtrans %}</span>
<svg data-accordion-icon
class="pointer-events-none w-3 h-3 group-aria-expanded:rotate-0 rotate-180 shrink-0 transition ease-in-out duration-150"
aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none"
viewBox="0 0 10 6">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
stroke-width="2" d="M9 5 5 1 1 5"/>
</svg>
</button>
</h2>
<div id="accordion-collapse-body-{{ item.type }}"
class="mt-[14px] peer-[.open]:block hidden"
aria-labelledby="accordion-collapse-heading-{{ item.type }}">
{% for tarif in item.tariffs %}
<div>
{% if item.isServerActive == true %}
<a href="{{ path('tariff_selected_page', {'tariff': tarif.id}) }}">
{% else %}
<div>
{% endif %}
<p class="font-medium text-[16px] hover:underline transition ease-in-out duration-150"
style="color: {{ companyStyles.linkTextColor }}">{{ tarif.name }}</p>
{% if item.type == operatorLifecellType() %}
<p class="text-[#5B5B5B] font-medium text-[13px]">{% trans from 'tarif_choice' %}Після покупки та активації можно обрати один з тарифних планів: Вільний Лайф/Просто Лайф/Platinum Лайф/Шкільний Лайф/Смарт Лайф/Потужний/Вільний Лайф. Регіон/Дзвінкий БЕЗМЕЖ/Смарт/Сім’я/Ґаджет Смарт/Ґаджет Планшет/Ґаджет Роутер{% endtrans %}</p>
{% else %}
<p class="text-[#5B5B5B] font-medium text-[13px]">{% trans from 'main' %}Ціна з пакетом послуг на перші 4 тижні{% endtrans %} {{ tarif.price }}
₴</p>
<p class="text-[#5B5B5B] font-medium text-[13px]">{% trans from 'main' %}Абонплата{% endtrans %} {{ tarif.subscription }}{% if item.type == operatorLifecellType() %}{% else %}₴ {% trans from 'main' %}за 4 тижні{% endtrans %}{% endif %}</p>
{% endif %}
{% if item.isServerActive == true %}
</a>
{% else %}
</div>
{% endif %}
{% set currentCompany = app.request.get('companyInner') %}
{% if tarif.promoImage is not empty and (tarif.promoImageCompanies is empty or currentCompany in tarif.promoImageCompanies) %}
<div class="[&_img]:max-w-full [&_img]:max-h-[96px] [&_img]:object-fill [&_img]:rounded-[10px]">
{% if tarif.promoImageUrl %}
<a href="{{ tarif.promoImageUrl }}" target="_blank" rel="noopener noreferrer" class="block mt-[8px]">
{{ sonata_media(tarif.promoImage, 'reference') }}
</a>
{% else %}
<div class="mt-[8px]">
{{ sonata_media(tarif.promoImage, 'reference') }}
</div>
{% endif %}
</div>
{% endif %}
</div>
{% if loop.length >= 1 and not loop.last %}
<hr class="h-px my-[12px] bg-[#E2E2E9] border-0 ">
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
<a href="{{ path('operator_tariff_page',{slug:item.slug}) }}"
class="js--operator-btn font-medium text-[#fff] text-[16px] min-h-[48px] text-center block hover:underline"
style="color: {{ companyStyles.notFilledButtonTextColor }}; border-color: {{ companyStyles.notFilledButtonTextColor }}"
data-active="{{ item.isServerActive ? 'true' : 'false' }}"
data-inactive-text="{{ item.inactiveText|default('operator.tariff.unavailable')|trans({'%operator%': item.name}, 'main')|e('html_attr') }}"
>
<button class=" md:min-w-[282px] hover:underline transition ease-in-out duration-150 w-full flex flex-row gap-[8px] justify-center text-center mt-[12px] p-[12px] min-h-[48px] bg-transparent border rounded-[10px] font-semibold text-[14px] focus:outline-none"
style="color:{{ companyStyles.notFilledButtonTextColor }}; border-color: {{ companyStyles.notFilledButtonTextColor }}">
{% trans from 'main' %}Обрати тариф та Купити eSIM{% endtrans %}
</button>
</a>
</div>
{% endfor %}
</div>
</div>
<div class="flex flex-col md:flex-row gap-[16px] justify-center">
<a href="{{ path('how_it_works') }}"
class="font-medium text-[#fff] text-[16px] min-h-[48px] text-center block hover:underline"
style="color: {{ companyStyles.notFilledButtonTextColor }}; border-color: {{ companyStyles.notFilledButtonTextColor }}">
<button class="min-w-[282px] hover:underline transition ease-in-out duration-150 w-full flex flex-row gap-[8px] justify-center text-center p-[12px] min-h-[48px] bg-transparent border rounded-[10px] font-semibold text-[14px] focus:outline-none"
style="color: {{ companyStyles.notFilledButtonTextColor }}; border-color: {{ companyStyles.notFilledButtonTextColor }}">
<svg class="w-[20px] h-[20px]"
style="fill: {{ companyStyles.notFilledButtonTextColor }}">
<use href="{{ asset('build/sprite.svg#information-line') }}"></use>
</svg>
{% trans from 'main' %}Як працює eSIM?{% endtrans %}
</button>
</a>
<a href="{% if is_granted('ROLE_FRONT_USER') %}{{ path('profile_page') }}{% else %}{{ path('login_locale') }}{% endif %}"
class="font-medium text-[#fff] text-[16px] min-h-[48px] text-center block hover:underline"
style="color: {{ companyStyles.notFilledButtonTextColor }}; border-color: {{ companyStyles.notFilledButtonTextColor }}">
<button class="min-w-[282px] hover:underline transition ease-in-out duration-150 w-full flex flex-row gap-[8px] justify-center text-center p-[12px] min-h-[48px] bg-transparent border rounded-[10px] font-semibold text-[14px] focus:outline-none"
style="color: {{ companyStyles.notFilledButtonTextColor }}; border-color: {{ companyStyles.notFilledButtonTextColor }}">
{% trans from 'main' %}Історія Ваших покупок eSIM{% endtrans %}
</button>
</a>
</div>
<p class="text-[#909299] max-w-[466px] mx-auto mt-[24px] text-center font-medium text-[12px]">{% trans from 'main' %}Якщо Ви вже купували eSІM у нас, реєструвалися та не встигли купити eSIM або хочете купити ще, залогіньтесь до власної історії покупок.{% endtrans %}</p>
</div>