/**
 * Страницы аккаунта: вход, регистрация, кабинет.
 * Стиль темы — корпоративный минимализм: #1A1C1C / #fff / золото #D4AF37.
 * Написано напрямую (вёрстки в src нет). Использует общие .input / .button.
 */

.section-account {
    padding: 140px 0 90px;
    background: #f6f6f4;
    min-height: 70vh;
}

.section-account__container {
    width: 100%;
}

/* ---------- Карточка форм (вход/регистрация) ---------- */

.section-account__card {
    max-width: 460px;
    margin: 0 auto;
}

.account-card {
    background: #fff;
    border: 1px solid #e6e6e2;
    border-radius: 16px;
    padding: 40px 36px;
}

.account-card__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #1a1c1c;
    margin: 0 0 8px;
}

.account-card__subtitle {
    color: #6b6f6f;
    margin: 0 0 24px;
    font-size: 15px;
}

.account-card__status {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.account-card__status[data-state="error"] {
    background: #fdecec;
    color: #b32d2e;
}

.account-card__status[data-state="success"] {
    background: #eaf7ee;
    color: #1a7f37;
}

.account-card__alt {
    margin: 16px 0 0;
    font-size: 14px;
    color: #6b6f6f;
}

.account-card__alt a {
    color: #1a1c1c;
    font-weight: 600;
    border-bottom: 1px solid #d4af37;
    text-decoration: none;
}

.account-card__alt a:hover {
    color: #d4af37;
}

/* ---------- Форма ---------- */

.account-form__field {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.account-form__field label,
.account-form__legend {
    font-size: 13px;
    font-weight: 600;
    color: #1a1c1c;
    margin-bottom: 7px;
}

.account-form__required {
    color: #d4af37;
}

.account-form__hint {
    font-size: 12px;
    color: #9a9d9d;
    margin-top: 6px;
}

.account-form__row--type {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.account-form__radio,
.account-form__remember,
.account-form__consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #3a3d3d;
    cursor: pointer;
}

.account-form__radio input,
.account-form__remember input,
.account-form__consent input {
    width: 17px;
    height: 17px;
    accent-color: #d4af37;
    flex-shrink: 0;
}

.account-form__consent {
    align-items: flex-start;
    margin: 6px 0 22px;
    line-height: 1.4;
}

.account-form__consent a {
    color: #1a1c1c;
    border-bottom: 1px solid #d4af37;
    text-decoration: none;
}

.account-form__remember {
    margin-bottom: 22px;
}

.account-form__submit {
    width: 100%;
    justify-content: center;
}

.account-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Кабинет ---------- */

.cabinet__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cabinet__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #1a1c1c;
    margin: 0 0 6px;
}

.cabinet__greeting {
    color: #6b6f6f;
    margin: 0;
}

.cabinet__subtitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #1a1c1c;
    margin: 34px 0 18px;
}

.cabinet__empty {
    background: #fff;
    border: 1px dashed #d8d8d4;
    border-radius: 14px;
    padding: 32px;
    color: #6b6f6f;
    text-align: center;
}

.cabinet__orders {
    display: grid;
    gap: 20px;
}

/* ---------- Карточка заказа ---------- */

.order-card {
    background: #fff;
    border: 1px solid #e6e6e2;
    border-radius: 16px;
    padding: 26px 28px;
}

.order-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #efefec;
}

.order-card__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1a1c1c;
    margin: 0;
}

.order-card__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.order-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}

.order-badge--paid {
    background: #eaf7ee;
    color: #1a7f37;
}

.order-badge--unpaid {
    background: #f1f1ee;
    color: #6b6f6f;
}

.order-badge--delay {
    background: #fdf0e3;
    color: #b5621a;
}

.order-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 24px;
    margin: 0 0 20px;
}

.order-card__meta div {
    margin: 0;
}

.order-card__meta dt {
    font-size: 12px;
    color: #9a9d9d;
    margin-bottom: 3px;
}

.order-card__meta dd {
    font-size: 15px;
    color: #1a1c1c;
    margin: 0;
    font-weight: 500;
}

.order-card__vehicles {
    margin-bottom: 20px;
}

.order-card__vehicles h4 {
    font-size: 13px;
    color: #9a9d9d;
    margin: 0 0 6px;
    font-weight: 600;
}

.order-card__vehicles ul {
    margin: 0;
    padding-left: 18px;
}

.order-card__vehicles li {
    font-size: 14px;
    color: #3a3d3d;
}

/* ---------- Таймлайн этапов ---------- */

.order-timeline {
    list-style: none;
    margin: 0;
    padding: 14px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    counter-reset: step;
}

.order-timeline__step {
    position: relative;
    flex: 1 1 14%;
    min-width: 110px;
    padding: 0 8px;
    text-align: center;
}

.order-timeline__step::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #dededa;
    margin: 0 auto 8px;
    position: relative;
    z-index: 1;
}

.order-timeline__step::after {
    content: '';
    position: absolute;
    top: 6px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #e6e6e2;
    z-index: 0;
}

.order-timeline__step:first-child::after {
    display: none;
}

.order-timeline__step.is-done::before {
    background: #d4af37;
}

.order-timeline__step.is-done::after {
    background: #d4af37;
}

.order-timeline__label {
    display: block;
    font-size: 12px;
    color: #6b6f6f;
    line-height: 1.3;
}

.order-timeline__step.is-done .order-timeline__label {
    color: #1a1c1c;
    font-weight: 600;
}

.order-timeline__date {
    display: block;
    font-size: 11px;
    color: #9a9d9d;
    margin-top: 3px;
}

@media (max-width: 600px) {
    .order-timeline {
        flex-direction: column;
        gap: 14px;
    }

    .order-timeline__step {
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
        min-width: 0;
    }

    .order-timeline__step::before {
        margin: 0;
    }

    .order-timeline__step::after {
        display: none;
    }
}
