:root {
    --ink: #111827;
    --ink-soft: #1f2937;
    --sidebar: #101720;
    --sidebar-2: #18212d;
    --accent: #c9203f;
    --accent-dark: #a81531;
    --accent-soft: #fff0f3;
    --blue: #2563eb;
    --blue-soft: #eff6ff;
    --green: #059669;
    --green-soft: #ecfdf5;
    --amber: #d97706;
    --amber-soft: #fffbeb;
    --purple: #7c3aed;
    --purple-soft: #f5f3ff;
    --page: #f3f5f8;
    --card: #ffffff;
    --line: #e5e9ef;
    --line-dark: #d7dde5;
    --text: #202938;
    --muted: #6b7280;
    --muted-2: #9aa3af;
    --shadow: 0 12px 32px rgba(15, 23, 42, .06);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--page);
    color: var(--text);
    font-family: "Vazirmatn", "IRANSansX", Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.app-layout { min-height: 100vh; }
.sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 0 0 auto;
    width: 272px;
    min-height: 100vh;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    color: #d9e0e9;
    background:
        radial-gradient(circle at 10% 0, rgba(201,32,63,.16), transparent 28%),
        linear-gradient(180deg, var(--sidebar), #0b1119 100%);
    border-left: 1px solid rgba(255,255,255,.05);
}
.brand-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 5px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(145deg, #df284a, #ad1230);
    box-shadow: 0 9px 24px rgba(201,32,63,.28);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
}
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { color: #fff; font-size: 18px; line-height: 1.2; }
.brand-copy small { color: #8e99a8; font-size: 10px; margin-top: 5px; }
.sidebar-close {
    display: none;
    border: 0;
    color: white;
    background: transparent;
    font-size: 26px;
}
.side-nav { overflow-y: auto; padding: 15px 0 20px; scrollbar-width: thin; }
.nav-label {
    display: block;
    padding: 16px 13px 7px;
    color: #6f7c8c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2px;
}
.nav-item {
    width: 100%;
    min-height: 44px;
    margin: 3px 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 0;
    border-radius: 11px;
    color: #b7c0cc;
    background: transparent;
    text-align: right;
    transition: .18s ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(201,32,63,.96), rgba(177,21,51,.96));
    box-shadow: 0 8px 20px rgba(201,32,63,.16);
}
.nav-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(255,255,255,.06);
    font-size: 15px;
}
.nav-item.active .nav-icon { background: rgba(255,255,255,.14); }
.sidebar-bottom {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-bottom form { margin: 0; }
.nav-item.subtle { color: #8f9aaa; }
.nav-item.logout { color: #d798a5; }
.sidebar-backdrop { display: none; }

.main-area { min-height: 100vh; margin-right: 272px; }
.topbar {
    min-height: 92px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.topbar-start { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar h1 { margin: 0 0 4px; font-size: 23px; line-height: 1.35; color: var(--ink); }
.topbar p { margin: 0; color: var(--muted); font-size: 12px; }
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    color: var(--ink);
}
.account-chip {
    min-width: 190px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #293548, #111827);
    font-weight: 800;
}
.account-text strong, .account-text small { display: block; }
.account-text strong { color: var(--ink); font-size: 12px; }
.account-text small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.page-content { padding: 26px 30px 50px; }

.message-stack { position: fixed; z-index: 90; top: 20px; left: 20px; width: min(380px, calc(100vw - 40px)); }
.message {
    margin-bottom: 10px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #b7ead7;
    border-radius: 13px;
    color: #056647;
    background: #effcf7;
    box-shadow: var(--shadow);
}
.message.error { border-color: #ffc8d2; color: #a81531; background: #fff4f6; }
.message button { border: 0; background: transparent; color: inherit; font-size: 20px; }

.btn {
    min-height: 42px;
    padding: 9px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 700;
    font-size: 12px;
    transition: .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(145deg, #d82547, #b41634); box-shadow: 0 8px 18px rgba(201,32,63,.18); }
.btn-primary:hover { background: linear-gradient(145deg, #c61b3c, #991029); }
.btn-secondary { color: #354052; background: #fff; border-color: var(--line-dark); }
.btn-secondary:hover { border-color: #b9c1cc; background: #fbfcfd; }
.btn-dark { color: #fff; background: var(--ink-soft); }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-light { color: var(--accent-dark); background: #fff; }
.btn-light-outline { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.07); }

.hero-card {
    min-height: 190px;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    position: relative;
    border-radius: 22px;
    color: white;
    background:
        radial-gradient(circle at 5% 100%, rgba(255,255,255,.10), transparent 32%),
        radial-gradient(circle at 95% 0, rgba(201,32,63,.55), transparent 40%),
        linear-gradient(120deg, #151f2c, #202d3e 68%, #381522);
    box-shadow: 0 18px 42px rgba(15,23,42,.15);
}
.hero-card::after {
    content: "TIS";
    position: absolute;
    left: 28px;
    bottom: -42px;
    color: rgba(255,255,255,.035);
    font-size: 150px;
    font-weight: 900;
    line-height: 1;
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card h2 { margin: 6px 0 9px; font-size: 25px; }
.hero-card p { max-width: 680px; margin: 0; color: #c4ccd7; font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.eyebrow { display: inline-block; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .2px; }
.eyebrow.light { color: #ff9bad; }

.metric-grid {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    gap: 14px;
}
.metric-card {
    min-height: 130px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    transition: .18s ease;
}
.metric-card:hover { transform: translateY(-3px); border-color: #cfd6df; box-shadow: 0 16px 36px rgba(15,23,42,.09); }
.metric-icon, .row-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    font-weight: 800;
}
.metric-icon { width: 46px; height: 46px; font-size: 19px; }
.metric-icon.blue, .row-avatar.blue { color: var(--blue); background: var(--blue-soft); }
.metric-icon.red, .row-avatar.red { color: var(--accent); background: var(--accent-soft); }
.metric-icon.green, .row-avatar.green { color: var(--green); background: var(--green-soft); }
.metric-icon.amber, .row-avatar.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon.purple, .row-avatar.purple { color: var(--purple); background: var(--purple-soft); }
.row-avatar.dark { color: #fff; background: var(--ink-soft); }
.metric-card small, .metric-card strong, .metric-card em { display: block; font-style: normal; }
.metric-card small { color: var(--muted); font-size: 11px; }
.metric-card strong { margin: 3px 0; color: var(--ink); font-size: 29px; line-height: 1.2; }
.metric-card em { color: var(--muted-2); font-size: 9px; }

.dashboard-columns, .detail-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}
.dashboard-columns { grid-template-columns: 1.25fr .75fr; }
.content-card, .data-card, .toolbar-card, .form-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}
.content-card { overflow: hidden; }
.span-2 { min-width: 0; }
.full-width { grid-column: 1 / -1; }
.card-heading {
    min-height: 78px;
    padding: 16px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}
.card-heading h3 { margin: 2px 0 0; color: var(--ink); font-size: 15px; }
.card-heading > a { color: var(--accent); font-size: 11px; font-weight: 700; }
.compact-list { display: grid; }
.compact-list.horizontal { grid-template-columns: repeat(2, minmax(0,1fr)); }
.compact-row {
    min-height: 72px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    transition: .14s ease;
}
.compact-row:last-child { border-bottom: 0; }
a.compact-row:hover { background: #fafbfc; }
.row-avatar { width: 38px; height: 38px; font-size: 11px; }
.row-main { flex: 1; min-width: 0; }
.row-main strong, .row-main small { display: block; }
.row-main strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.row-main small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    max-width: 180px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #4b5563;
    background: #f1f3f6;
    font-size: 10px;
    white-space: nowrap;
}
.empty-mini { padding: 28px; color: var(--muted); text-align: center; font-size: 11px; }
.project-cards { padding: 16px; display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; }
.project-mini-card { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; }
.project-mini-card:hover { border-color: #bec6d1; background: #fff; }
.project-mini-card strong, .project-mini-card small { display: block; }
.project-mini-card strong { margin: 9px 0 4px; color: var(--ink); font-size: 12px; }
.project-mini-card small { margin-bottom: 10px; color: var(--muted); font-size: 10px; }
.project-code { color: var(--accent); font-size: 9px; font-weight: 800; }

.toolbar-card {
    margin-bottom: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.search-form { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.search-form input {
    width: min(470px, 100%);
    min-height: 43px;
    padding: 9px 14px;
    border: 1px solid var(--line-dark);
    border-radius: 11px;
    outline: none;
    color: var(--text);
    background: #fbfcfd;
}
.search-form input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(201,32,63,.08); }
.search-icon { margin-left: -1px; color: var(--muted); font-size: 20px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.data-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { color: #7a8492; background: #fafbfc; font-size: 10px; font-weight: 700; white-space: nowrap; }
.data-table td { color: #394454; font-size: 11px; }
.data-table tbody tr:hover { background: #fcfcfd; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.table-title { color: var(--ink); font-size: 11px; }
.muted-text { color: var(--muted); }
.actions-head { width: 150px; }
.row-actions { white-space: nowrap; }
.action-link { margin-left: 9px; color: #647084; font-size: 10px; font-weight: 700; }
.action-link.primary { color: var(--accent); }
.action-link:hover { text-decoration: underline; }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-state span { width: 52px; height: 52px; margin: 0 auto 9px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: #f3f5f7; font-size: 22px; }
.empty-state strong, .empty-state p { display: block; }
.empty-state strong { color: var(--ink); }
.empty-state p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.pagination-bar { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); background: #fafbfc; border-top: 1px solid var(--line); font-size: 10px; }
.pagination-bar div { display: flex; gap: 7px; }
.pagination-bar a { padding: 6px 10px; border: 1px solid var(--line-dark); border-radius: 8px; background: white; }

.form-page { max-width: 1120px; margin: 0 auto; }
.form-intro { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.form-intro h2 { margin: 4px 0; color: var(--ink); font-size: 18px; }
.form-intro p { margin: 0; color: var(--muted); font-size: 11px; }
.form-card { padding: 23px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field.wide { grid-column: 1 / -1; }
.form-field label { color: #343e4c; font-size: 11px; font-weight: 800; }
.form-field label em { margin-right: 3px; color: var(--accent); font-style: normal; }
.form-field small { color: var(--muted); font-size: 9px; }
.input-control {
    width: 100%;
    min-height: 45px;
    padding: 9px 12px;
    border: 1px solid var(--line-dark);
    border-radius: 11px;
    outline: none;
    color: var(--text);
    background: #fbfcfd;
    transition: .15s ease;
}
.input-control:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(201,32,63,.08); }
textarea.input-control { min-height: 112px; resize: vertical; }
select.input-control { cursor: pointer; }
.field-error { color: var(--accent-dark); font-size: 10px; }
.form-alert {
    margin-bottom: 15px;
    padding: 12px 14px;
    border: 1px solid #ffc5d0;
    border-radius: 11px;
    color: #9f1239;
    background: #fff4f6;
    font-size: 11px;
}
.form-alert ul { margin: 0; padding-right: 18px; }
.form-alert.full { grid-column: 1 / -1; }
.switch-field {
    min-height: 66px;
    padding: 11px 13px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfd;
}
.switch-field label { display: block; }
.switch { position: relative; width: 46px; height: 25px; flex: 0 0 46px; }
.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-slider { position: absolute; inset: 0; border-radius: 999px; background: #ced4dc; transition: .18s; }
.switch-slider::after { content: ""; position: absolute; width: 19px; height: 19px; top: 3px; right: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.16); transition: .18s; }
.switch-input:checked + .switch-slider { background: var(--accent); }
.switch-input:checked + .switch-slider::after { transform: translateX(-21px); }
.form-footer { margin-top: 23px; padding-top: 18px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }

.detail-actions { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-card { padding: 18px; margin-bottom: 17px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.detail-cell { min-height: 86px; padding: 13px 14px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.detail-cell span, .detail-cell strong { display: block; }
.detail-cell span { margin-bottom: 7px; color: var(--muted); font-size: 9px; }
.detail-cell strong { color: #303a48; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.detail-columns { margin-top: 17px; }

.login-page { min-height: 100vh; background: #0f1722; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-visual {
    padding: 70px clamp(40px,8vw,120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    background:
        radial-gradient(circle at 15% 15%, rgba(201,32,63,.36), transparent 30%),
        radial-gradient(circle at 80% 100%, rgba(37,99,235,.18), transparent 35%),
        linear-gradient(135deg, #111a26, #101720 65%, #21111a);
}
.login-brand-large { display: flex; align-items: center; gap: 13px; margin-bottom: 55px; }
.login-brand-large span, .mobile-login-brand span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; color: white; background: var(--accent); font-weight: 900; }
.login-brand-large strong { font-size: 22px; }
.login-visual h1 { max-width: 620px; margin: 0 0 16px; font-size: clamp(32px,4vw,52px); line-height: 1.45; }
.login-visual > p { max-width: 620px; margin: 0; color: #aeb8c5; font-size: 14px; }
.login-points { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.login-points span { padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: #cbd3dd; background: rgba(255,255,255,.035); font-size: 10px; text-align: center; }
.login-card { padding: 60px clamp(35px,7vw,110px); display: flex; flex-direction: column; justify-content: center; background: #fff; }
.mobile-login-brand { display: none; }
.login-heading h2 { margin: 0 0 6px; color: var(--ink); font-size: 27px; }
.login-heading p { margin: 0 0 24px; color: var(--muted); font-size: 12px; }
.login-form { display: grid; gap: 8px; }
.login-form label { margin-top: 8px; color: #374151; font-size: 11px; font-weight: 800; }
.login-form input { width: 100%; min-height: 49px; padding: 10px 13px; border: 1px solid var(--line-dark); border-radius: 12px; outline: none; background: #fbfcfd; }
.login-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,32,63,.08); background: #fff; }
.login-form button { min-height: 50px; margin-top: 18px; border: 0; border-radius: 12px; color: white; background: linear-gradient(145deg, #d52445, #ad1331); font-weight: 800; }
.login-form button:hover { background: var(--accent-dark); }
.login-foot { margin-top: 20px; color: var(--muted-2); font-size: 9px; text-align: center; }

@media (max-width: 1280px) {
    .metric-grid { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
    .project-cards { grid-template-columns: repeat(3, minmax(150px,1fr)); }
    .detail-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1050px) {
    .sidebar { transform: translateX(100%); transition: transform .22s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-close { display: block; }
    .sidebar-backdrop { position: fixed; z-index: 45; inset: 0; background: rgba(5,10,18,.56); }
    body.sidebar-open .sidebar-backdrop { display: block; }
    .main-area { margin-right: 0; }
    .menu-toggle { display: grid; place-items: center; }
    .dashboard-columns { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
    .detail-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-card { min-height: 100vh; max-width: 620px; width: 100%; margin: auto; }
    .mobile-login-brand { margin-bottom: 40px; display: flex; align-items: center; gap: 12px; }
}
@media (max-width: 760px) {
    .topbar { min-height: 80px; padding: 14px 16px; }
    .topbar h1 { font-size: 17px; }
    .topbar p { display: none; }
    .account-chip { min-width: 0; padding: 5px; border: 0; background: transparent; }
    .account-text { display: none; }
    .page-content { padding: 16px 13px 35px; }
    .hero-card { padding: 23px 20px; align-items: flex-start; flex-direction: column; }
    .hero-card h2 { font-size: 20px; }
    .hero-actions { justify-content: flex-start; }
    .metric-grid, .detail-columns { grid-template-columns: 1fr; }
    .metric-card { min-height: 105px; }
    .toolbar-card, .detail-actions, .form-intro { align-items: stretch; flex-direction: column; }
    .search-form { align-items: stretch; flex-wrap: wrap; }
    .search-form input { width: 100%; flex: 1 0 100%; }
    .toolbar-actions, .detail-actions > div { justify-content: stretch; }
    .toolbar-actions .btn, .detail-actions > div .btn { flex: 1; }
    .form-card { padding: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field.wide { grid-column: auto; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-cell { border-left: 0; }
    .compact-list.horizontal { grid-template-columns: 1fr; }
    .project-cards { grid-template-columns: 1fr; }
    .login-card { padding: 40px 24px; }
}


/* TIS Pro V2.2 - visible form validation */
.form-error-summary {
    margin-bottom: 20px;
    padding: 16px 18px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
    border: 1px solid #f4a7b6;
    border-radius: 14px;
    background: #fff5f7;
    color: #8f1530;
}

.form-error-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--accent);
    font-weight: 900;
}

.form-error-summary strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.form-error-summary p {
    margin: 0 0 8px;
    font-size: 11px;
}

.form-error-summary ul {
    margin: 0;
    padding-right: 18px;
    font-size: 11px;
    line-height: 1.9;
}

.form-error-summary a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-field.has-error .input-control {
    border-color: var(--accent);
    background: #fff8f9;
    box-shadow: 0 0 0 3px rgba(201, 32, 63, .07);
}

.form-field.has-error > label {
    color: var(--accent-dark);
}

.field-error {
    display: block;
    padding: 7px 9px;
    border-radius: 8px;
    color: #9f1239;
    background: #fff1f4;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.7;
}
