:root {
    --brand-yellow: #fbba00;
    --brand-blue: #2a4eef;
    --brand-blue-dark: #1032cf;
    --ink: #141617;
    --muted: #60646c;
    --surface: #f4f5f7;
    --white: #ffffff;
    --border: #dfe2e7;
    --success: #157347;
    --success-background: #eaf8f0;
    --shadow: 0 18px 55px rgba(20, 22, 23, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.5;
}

.top-line {
    height: 5px;
    background: var(--brand-yellow);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    padding: 14px max(24px, calc((100% - 1180px) / 2));
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.logo {
    display: block;
    width: 300px;
    height: 62px;
    object-fit: contain;
    object-position: left center;
}

.secure-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

.secure-dot {
    width: 10px;
    height: 10px;
    background: #23a566;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(35, 165, 102, 0.12);
}

.hero {
    padding: 52px 24px 110px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(42, 78, 239, 0.35),
            transparent 35%
        ),
        var(--ink);
    color: var(--white);
}

.hero-content {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--brand-yellow);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
}

.hero p {
    max-width: 640px;
    margin: 18px 0 0;
    color: #d6d8dd;
    font-size: 17px;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    width: min(1180px, calc(100% - 48px));
    margin: -62px auto 60px;
    align-items: start;
}

.card {
    background: var(--white);
    border: 1px solid rgba(223, 226, 231, 0.9);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.form-card {
    padding: 34px;
}

.card-heading {
    margin-bottom: 28px;
}

.card-heading h2 {
    margin: 0 0 6px;
    font-size: 25px;
}

.card-heading p {
    margin: 0;
    color: var(--muted);
}

.progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 32px;
}

.progress-step {
    padding: 11px 12px;
    background: var(--surface);
    color: var(--muted);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.progress-step.active {
    background: rgba(42, 78, 239, 0.1);
    color: var(--brand-blue-dark);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 14px;
    font-weight: 600;
}

input,
select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #cfd3d9;
    border-radius: 9px;
    font: inherit;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

input:focus,
select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(42, 78, 239, 0.12);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 9px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: var(--ink);
    background: var(--brand-yellow);
    box-shadow: 0 8px 20px rgba(251, 186, 0, 0.25);
}

.button-primary:hover {
    background: #ffc72c;
}

.button-secondary {
    color: var(--white);
    background: var(--brand-blue);
}

.button-link {
    color: var(--brand-blue-dark);
    background: rgba(42, 78, 239, 0.09);
}

.success-box {
    margin-bottom: 26px;
    padding: 20px;
    background: var(--success-background);
    border: 1px solid #b9e2ca;
    border-radius: 12px;
}

.success-title {
    margin: 0 0 6px;
    color: var(--success);
    font-weight: 700;
}

.success-message {
    margin: 0;
    color: #315442;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.success-actions form {
    margin: 0;
}

.side-card {
    padding: 28px;
}

.side-card h2 {
    margin: 0 0 20px;
    font-size: 21px;
}

.process-list {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
}

.process-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--ink);
    background: var(--brand-yellow);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.process-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.process-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.mock-notice {
    margin-top: 26px;
    padding: 16px;
    background: #eef1ff;
    border-left: 4px solid var(--brand-blue);
    border-radius: 8px;
    color: #273b92;
    font-size: 13px;
}

.site-footer {
    padding: 24px;
    color: #777b83;
    background: var(--white);
    border-top: 1px solid var(--border);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 880px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .side-card {
        order: -1;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 70px;
    }

    .logo {
        width: 145px;
    }

    .secure-label {
        display: none;
    }

    .hero {
        padding: 40px 20px 90px;
    }

    .page-layout {
        width: min(100% - 28px, 1180px);
        margin-top: -54px;
    }

    .form-card,
    .side-card {
        padding: 22px;
        border-radius: 14px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .progress {
        grid-template-columns: 1fr;
    }

    .progress-step:not(.active) {
        display: none;
    }

    .form-actions,
    .success-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}



.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-link {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.header-link:hover {
    color: var(--brand-yellow);
}

.hero-compact {
    padding-bottom: 90px;
}

.hero-compact h1 {
    font-size: clamp(32px, 5vw, 48px);
}

.overview-page {
    width: min(1180px, calc(100% - 48px));
    margin: -52px auto 60px;
}

.overview-card {
    padding: 32px;
}

.overview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.overview-heading h2 {
    margin: 0 0 5px;
    font-size: 24px;
}

.overview-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.table-wrapper {
    overflow-x: auto;
}

.contract-table {
    width: 100%;
    border-collapse: collapse;
}

.contract-table th,
.contract-table td {
    padding: 17px 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.contract-table th {
    color: var(--muted);
    background: var(--surface);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.contract-table td {
    font-size: 14px;
}

.person-name,
.person-detail {
    display: block;
}

.person-detail {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.status {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-waiting {
    color: #8a5a00;
    background: #fff3d2;
}

.status-signed {
    color: #157347;
    background: #eaf8f0;
}

.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions form {
    margin: 0;
}

.table-link,
.table-button {
    display: inline-flex;
    padding: 7px 10px;
    color: var(--brand-blue-dark);
    background: #eef1ff;
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.table-link.signed {
    color: var(--success);
    background: var(--success-background);
}

.table-button {
    color: var(--white);
    background: var(--brand-blue);
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0 0 22px;
    color: var(--muted);
}

@media (max-width: 640px) {
    .header-actions {
        gap: 12px;
    }

    .header-link {
        font-size: 12px;
    }

    .overview-page {
        width: min(100% - 28px, 1180px);
    }

    .overview-card {
        padding: 20px;
    }

    .overview-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .contract-table {
        min-width: 850px;
    }
}




.review-card {
    padding: 34px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.review-item {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.review-item.full-width {
    grid-column: 1 / -1;
}

.review-label,
.review-value {
    display: block;
}

.review-label {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.review-value {
    font-size: 15px;
    overflow-wrap: anywhere;
}

.review-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.review-actions form {
    margin: 0;
}

@media (max-width: 640px) {
    .review-card {
        padding: 22px;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .review-item.full-width {
        grid-column: auto;
    }

    .review-actions {
        align-items: stretch;
        flex-direction: column;
    }
}


.status-draft {
    color: #4a4e57;
    background: #eceef1;
}

.table-button.send {
    color: var(--ink);
    background: var(--brand-yellow);
}



.contract-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px auto auto;
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.filter-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
}

.filter-control:focus {
    border-color: var(--brand-blue);
    outline: 3px solid rgba(42, 78, 239, 0.12);
}

.filter-button {
    min-height: 46px;
    padding: 10px 18px;
    color: var(--ink);
    background: var(--brand-yellow);
}

.filter-reset {
    min-height: 46px;
    padding: 10px 18px;
    color: var(--brand-blue-dark);
    background: #eef1ff;
}

@media (max-width: 800px) {
    .contract-filters {
        grid-template-columns: 1fr;
    }
}


.login-body {
    min-height: 100vh;
    background:
        linear-gradient(
            135deg,
            var(--ink) 0%,
            #1f3268 100%
        );
}

.login-page {
    display: grid;
    min-height: calc(100vh - 4px);
    place-items: center;
    padding: 30px 20px;
}

.login-card {
    width: min(100%, 460px);
    padding: 38px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.login-logo {
    display: block;
    width: min(250px, 75%);
    height: auto;
    margin-bottom: 32px;
}

.login-card h1 {
    margin: 8px 0 8px;
    font-size: 34px;
}

.login-intro {
    margin: 0 0 26px;
    color: var(--muted);
}

.login-error {
    margin-bottom: 20px;
    padding: 13px 15px;
    color: #9f1c1c;
    background: #fff0f0;
    border: 1px solid #f3c4c4;
    border-radius: 9px;
    font-size: 14px;
}

.login-button {
    width: 100%;
    margin-top: 8px;
}

.login-security {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}