* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #172033;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 12px 14px;
    outline: none;
    background: #ffffff;
    color: #172033;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #1769e0;
    box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.12);
}

textarea {
    resize: vertical;
}

.top-header {
    background: #ffffff;
    border-bottom: 1px solid #dbe3ef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #1769e0;
    color: #ffffff;
    font-weight: 900;
}

.brand-text strong,
.brand-text small {
    display: block;
}

.brand-text small {
    margin-top: 3px;
    color: #637083;
    font-size: 12px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-nav a {
    padding: 9px 12px;
    border-radius: 8px;
    color: #637083;
    font-weight: 700;
    font-size: 14px;
}

.header-nav a:hover {
    background: #eef4ff;
    color: #1769e0;
}

.page-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

.hero-section {
    min-height: calc(100vh - 140px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hero-content {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 38px;
    box-shadow: 0 18px 50px rgba(23, 32, 51, 0.10);
}

.eyebrow {
    margin: 0 0 12px;
    color: #1769e0;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    font-size: 46px;
    line-height: 1.08;
}

.hero-content p {
    margin: 20px 0 28px;
    color: #637083;
    font-size: 17px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

.btn-primary {
    background: #1769e0;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0e4fab;
}

.btn-secondary {
    background: #eef4ff;
    color: #0e4fab;
}

.preview-panel,
.card,
.form-card,
.table-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(23, 32, 51, 0.08);
}

.preview-panel {
    padding: 22px;
}

.preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.preview-head h2 {
    margin: 0;
    font-size: 20px;
}

.status-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eaf8f2;
    color: #15956b;
    font-size: 12px;
    font-weight: 900;
}

.preview-list {
    display: grid;
    gap: 12px;
}

.preview-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
}

.preview-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef4ff;
    color: #1769e0;
    font-weight: 900;
}

.preview-item strong,
.preview-item span {
    display: block;
}

.preview-item span {
    margin-top: 4px;
    color: #637083;
    font-size: 13px;
}

.form-wrap {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
}

.form-card {
    width: min(430px, 100%);
    padding: 28px;
}

.form-card h1 {
    margin: 0 0 8px;
}

.form-card p {
    margin: 0 0 22px;
    color: #637083;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #637083;
    font-weight: 800;
    font-size: 13px;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 800;
}

.alert-error {
    background: #fff1f1;
    color: #c53f3f;
}

.alert-success {
    background: #eaf8f2;
    color: #15956b;
}

.site-footer {
    border-top: 1px solid #dbe3ef;
    background: #ffffff;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    color: #637083;
    font-size: 14px;
}

@media (max-width: 900px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .header-nav {
        flex-wrap: wrap;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 34px;
    }
}