/* application-flow.css
   Уникальные стили для steps/errors в application.php
   Без :root — опираемся на глобальные переменные/стили сайта (если есть)
*/

.app_flow_card{
    padding: 32px;
}

@media (max-width: 720px){
    .app_flow_card{ padding: 20px; }
}

.app_flow_head{
    margin-bottom: 18px;
}

.app_flow_badge{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(10, 143, 42, .10);
    color: rgba(11, 15, 20, .85);
    margin-bottom: 10px;
}

.app_flow_h2{
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
}

.app_flow_course_meta{
    /*display: grid;*/
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 720px){
    .app_flow_course_meta{ grid-template-columns: 1fr; }
}

.app_flow_meta_item{
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(255,255,255,.70);
    border-radius: 16px;
    padding: 12px 14px;
}

.app_flow_meta_label{
    font-size: 12px;
    font-weight: 800;
    color: rgba(11, 15, 20, .55);
    margin-bottom: 4px;
}

.app_flow_meta_value{
    font-weight: 900;
    color: rgba(11, 15, 20, .92);
}

/* alerts */
.app_flow_alert{
    border-radius: 16px;
    padding: 14px 16px;
    margin: 16px 0;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(255,255,255,.65);
    color: rgba(11, 15, 20, .85);
    line-height: 1.4;
}

.app_flow_alert--error{
    border-color: rgba(185, 46, 46, .25);
    background: rgba(185, 46, 46, .08);
    color: rgba(120, 25, 25, .95);
}

.app_flow_alert__list{
    margin-top: 6px;
    font-weight: 800;
}

/* form */
.app_flow_form{
    margin-top: 10px;
}

.app_flow_grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 720px){
    .app_flow_grid{ grid-template-columns: 1fr; }
}

.app_flow_field--full{
    grid-column: 1 / -1;
}

.app_flow_label{
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 6px;
    color: rgba(11, 15, 20, .86);
}

.app_flow_input,
.app_flow_textarea{
    width: 100%;
    border: 1px solid rgba(15, 23, 42, .14);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    color: rgba(11, 15, 20, .92);
    outline: none;
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.app_flow_textarea{
    resize: vertical;
    min-height: 140px;
}

/* Селект гражданства должен выглядеть как остальные поля. У нативного
   контрола своя стрелка и свой фон, поэтому гасим appearance и рисуем
   стрелку сами. */
select.app_flow_input{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 38px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%230b0f14' fill-opacity='.45' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px 7px;
    cursor: pointer;
}

.app_flow_input:focus,
.app_flow_textarea:focus{
    border-color: rgba(10, 143, 42, .55);
    box-shadow: 0 0 0 4px rgba(10, 143, 42, .12);
}

.app_flow_hint{
    margin-top: 6px;
    font-size: 12px;
    color: rgba(11, 15, 20, .55);
}

/* actions */
.app_flow_actions{
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.app_flow_checkbox{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    cursor: pointer;
    font-size: 13px;
    color: rgba(11, 15, 20, .78);
}

.app_flow_checkbox__input{
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.app_flow_checkbox__box{
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, .18);
    background: #fff;
    box-shadow: 0 6px 18px rgba(20,30,60,.06);
    display: inline-block;
    position: relative;
    box-sizing: border-box;
}

.app_flow_checkbox__input:checked + .app_flow_checkbox__box{
    background: rgba(10, 143, 42, .14);
    border-color: rgba(10, 143, 42, .55);
}

.app_flow_checkbox__input:checked + .app_flow_checkbox__box::after{
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #0a8f2a;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.app_flow_link{
    color: rgba(10, 143, 42, .95);
    text-decoration: none;
    font-weight: 800;
}

.app_flow_link:hover{
    text-decoration: underline;
}

.app_flow_buttons{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.app_flow_btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .14);
    background: #fff;
    color: rgba(11, 15, 20, .92);
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.app_flow_btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(20,30,60,.10);
}

.app_flow_btn:active{
    transform: translateY(0);
}

.app_flow_btn--primary{
    background: var(--green, #0a8f2a);
    border-color: rgba(10, 143, 42, .35);
    color: #fff;
}

.app_flow_btn__icon{
    width: 26px;
    height: 26px;
    border-radius: 10px;
    background: rgba(255,255,255,.16);
    display: grid;
    place-items: center;
    font-size: 12px;
}

.app_flow_btn--ghost{
    background: rgba(255,255,255,.75);
}

/* note */
.app_flow_note{
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, .10);
    color: rgba(11, 15, 20, .62);
    font-size: 13px;
    line-height: 1.45;
}
