:root {
    --sch-blue: #1e3a8a;
    --sch-blue-dark: #16296b;
    --sch-border: #d9dee6;
    --sch-text: #1f2937;
    --sch-muted: #6b7280;
    --sch-bg: #f4f6fb;
    --sch-danger: #dc2626;
    --sch-danger-bg: #fdeceb;
    --sch-success: #16a34a;
    --sch-success-bg: #eafaf0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--sch-bg);
    color: var(--sch-text);
}

.sch-header__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.sch-header { background: #fff; box-shadow: 0 2px 8px rgba(30, 58, 138, 0.08); position: relative; z-index: 1; }

.sch-header__logo { display: flex; align-items: center; }
.sch-header__logo img { height: 44px; width: auto; display: block; }

.sch-header__links { display: flex; gap: 10px; flex-wrap: wrap; }
.sch-header__link {
    color: var(--sch-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--sch-border);
    border-radius: 999px;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.sch-header__link:hover { background: var(--sch-blue); color: #fff; border-color: var(--sch-blue); }

.sch-main { max-width: 960px; margin: 24px auto; padding: 0 20px; }

.sch-form {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.sch-form__header {
    background: var(--sch-blue);
    background: linear-gradient(135deg, var(--sch-blue), var(--sch-blue-dark));
    color: #fff;
    padding: 24px;
}
.sch-form__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 10px;
}
.sch-form__header h1 { margin: 0; font-size: 26px; font-weight: 700; }

.sch-form__body { padding: 28px; }

.sch-back-link {
    display: inline-block;
    color: var(--sch-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 14px;
}
.sch-back-link:hover { color: var(--sch-blue); text-decoration: underline; }

.sch-section { margin-bottom: 32px; }
.sch-section h2 { font-size: 17px; color: var(--sch-blue); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sch-section h3 { font-size: 14px; margin: 18px 0 8px; color: var(--sch-text); font-weight: 600; }
.sch-section__num {
    background: #e7e5fb;
    color: var(--sch-blue);
    width: 26px; height: 26px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.sch-grid-2, .sch-grid-3 {
    display: grid;
    gap: 16px;
    margin-bottom: 14px;
}
.sch-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sch-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sch-grid-full { display: block; margin-bottom: 14px; }

label { font-size: 14px; color: var(--sch-blue); font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.sch-required { color: var(--sch-danger); }
input, select {
    width: 100%;
    font: inherit;
    font-weight: 400;
    color: var(--sch-text);
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 14px;
}
input:focus, select:focus { outline: none; background: #fff; border-color: var(--sch-blue); }
input::placeholder { color: #9ca3af; }

.sch-banner {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    margin: 10px 0 18px;
}
.sch-banner--error { background: var(--sch-danger-bg); color: var(--sch-danger); }
.sch-banner--success { background: var(--sch-success-bg); color: var(--sch-success); }

.sch-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}
.sch-toggle { display: flex; border: 1px solid var(--sch-border); border-radius: 999px; overflow: hidden; }
.sch-toggle button {
    border: none; background: #fff; padding: 6px 16px; font-size: 13px; cursor: pointer; color: var(--sch-muted);
}
.sch-toggle button.active { background: var(--sch-blue); color: #fff; }

.sch-repeat { border-top: 1px solid var(--sch-border); padding: 12px 0; }
.sch-repeat__header { display: flex; justify-content: space-between; align-items: center; }
.sch-repeat__header span { font-size: 14px; }
.sch-repeat__add {
    border: 1px solid var(--sch-border); background: #fff; border-radius: 6px;
    padding: 5px 12px; font-size: 13px; cursor: pointer;
}
.sch-repeat__empty { color: var(--sch-muted); font-size: 13px; font-style: italic; margin-top: 6px; }
.sch-repeat__row { display: grid; gap: 10px; margin-top: 10px; grid-template-columns: 1fr auto; align-items: end; }
.sch-repeat__row-fields { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.sch-repeat__remove { background: none; border: none; color: var(--sch-danger); cursor: pointer; font-size: 13px; }

.sch-total-row {
    display: flex; justify-content: space-between; background: #f1f4f9;
    padding: 10px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 12px;
}

.sch-consent { display: block; font-size: 13px; font-weight: 400; color: var(--sch-text); line-height: 1.5; }
.sch-consent input { width: auto; display: inline; margin-right: 8px; }

.sch-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.sch-btn { border: none; border-radius: 6px; padding: 10px 22px; font-size: 14px; cursor: pointer; }
.sch-btn--primary { background: var(--sch-blue); color: #fff; }
.sch-btn--primary:disabled { background: #94a3b8; cursor: not-allowed; }

.sch-footer { background: var(--sch-blue-dark); color: #cbd5e1; margin-top: 40px; }
.sch-footer__inner {
    max-width: 960px; margin: 0 auto; padding: 30px 20px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.sch-footer h4 { color: #fff; margin: 0 0 8px; }
.sch-footer h4 a { color: #fff; text-decoration: none; }
.sch-footer h4 a:hover { text-decoration: underline; }
.sch-footer p { font-size: 13px; margin: 4px 0; }
.sch-footer__bottom { text-align: center; padding: 14px; font-size: 12px; border-top: 1px solid rgba(255,255,255,.1); }

@media (max-width: 640px) {
    .sch-grid-2, .sch-grid-3, .sch-footer__inner { grid-template-columns: 1fr; }
}
