﻿.ci-page {
    display: flex;
    justify-content: center;
    padding: 18px 12px 36px;
}

.ci-card {
    width: 100%;
    max-width: 920px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(18, 52, 96, 0.18);
    overflow: hidden;
}

.ci-card-wide {
    max-width: 95%;
}

.ci-card input,
.ci-card select,
.ci-card textarea {
    max-width: none;
}

.ci-header {
    background: linear-gradient(135deg, #1e6fd9 0%, #3295ff 58%, #56baed 100%);
    color: #fff;
    padding: 26px 28px 22px;
}

.ci-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ci-kicker {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 6px;
}

.ci-header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.ci-header p {
    margin: 8px 0 0;
    font-size: 14px;
    opacity: 0.95;
    max-width: 640px;
}

.ci-login-link {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    text-decoration: none;
}

    .ci-login-link:hover,
    .ci-login-link:focus {
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
        text-decoration: none;
    }

.ci-body {
    padding: 22px 24px 28px;
}

.ci-errors .validation-summary-valid {
    display: none;
}

.ci-errors .validation-summary-errors {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.ci-hint {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 18px;
}

.ci-section {
    border: 1px solid #e8eef5;
    border-radius: 12px;
    background: #fbfdff;
    padding: 16px 16px 6px;
    margin-bottom: 16px;
}

.ci-section-title {
    margin: 0 0 14px;
    color: #1e6fd9;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

    .ci-section-title i {
        margin-right: 8px;
    }

    .ci-section-title a,
    .ci-section-title a:hover,
    .ci-section-title a:focus {
        color: inherit;
        text-decoration: none;
    }

.ci-field {
    margin-bottom: 14px;
}

.ci-label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.ci-req {
    color: #e53e3e;
    margin-left: 2px;
}

.ci-help {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 11px;
}

.ci-field input.form-control,
.ci-field select.form-control,
.ci-field textarea.form-control {
    max-width: none;
    width: 100%;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #cfd8e3;
    box-shadow: none;
    background: #fff;
}

.ci-field textarea.form-control {
    height: auto;
    min-height: 84px;
}

    .ci-field input.form-control:focus,
    .ci-field select.form-control:focus,
    .ci-field textarea.form-control:focus {
        border-color: #3295ff;
        outline: 0;
        box-shadow: 0 0 0 3px rgba(50, 149, 255, 0.18);
    }

.ci-field input.form-control[disabled],
.ci-field input.form-control[readonly] {
    background: #f1f5f9;
    color: #64748b;
}

.ci-password {
    position: relative;
}

    .ci-password input.form-control {
        padding-right: 42px;
    }

.ci-toggle-pass {
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.ci-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ci-captcha-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px dashed #c5d4e6;
    border-radius: 8px;
    padding: 6px 8px;
}

    .ci-captcha-box img {
        display: block;
        max-height: 52px;
        border-radius: 4px;
    }

.ci-captcha-reload {
    border: 0;
    background: #eef6ff;
    color: #1e6fd9;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
}

.ci-captcha-field {
    flex: 1 1 220px;
    min-width: 180px;
    margin-bottom: 0;
}

.ci-actions {
    text-align: center;
    padding-top: 8px;
}

.ci-submit {
    min-width: 260px;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: #3295ff;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0 28px;
    box-shadow: 0 8px 18px rgba(50, 149, 255, 0.28);
}

    .ci-submit:hover,
    .ci-submit:focus {
        background: #1e6fd9;
        color: #fff;
    }

.ci-confirm {
    text-align: center;
    padding: 12px 8px 8px;
}

.ci-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #e8f7ef;
    color: #2f9e6b;
    font-size: 36px;
}

.ci-confirm p {
    max-width: 560px;
    margin: 0 auto 24px;
    color: #334155;
    font-size: 16px;
    line-height: 1.55;
}

a.ci-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

    a.ci-submit:hover,
    a.ci-submit:focus {
        color: #fff;
        text-decoration: none;
    }

.ci-steps-wrap {
    background: #f4f8fc;
    border-bottom: 1px solid #e8eef5;
}

.ci-steps {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 18px 16px 14px;
    overflow-x: auto;
}

.ci-step {
    position: relative;
    flex: 1 0 78px;
    min-width: 78px;
    text-align: center;
}

    .ci-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 14px;
        left: calc(50% + 18px);
        right: calc(-50% + 18px);
        height: 2px;
        background: #d5e3f2;
    }

    .ci-step.is-done:not(:last-child)::after {
        background: #3295ff;
    }

.ci-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8eef5;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.ci-step.is-active .ci-step-num {
    background: #3295ff;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(50, 149, 255, 0.18);
}

.ci-step.is-done .ci-step-num {
    background: #2f9e6b;
    color: #fff;
}

.ci-step-label {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.25;
}

.ci-step.is-active .ci-step-label {
    color: #1e6fd9;
    font-weight: 700;
}

.ci-step-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ci-section .card {
    background: #fff;
    border: 1px dashed #c5d4e6;
    border-radius: 12px;
    padding: 16px 14px 12px;
    margin-bottom: 16px;
    min-height: 178px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 18px rgba(18, 52, 96, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .ci-section .card:hover {
        border-color: #3295ff;
        box-shadow: 0 8px 18px rgba(50, 149, 255, 0.14);
    }

    .ci-section .card.is-uploaded {
        border-style: solid;
        border-color: #2f9e6b;
        background: #f6fcf8;
    }

    .ci-section .card .ci-label {
        min-height: 32px;
        line-height: 1.3;
    }

    .ci-section .card input[type="file"].form-control {
        max-width: none;
        width: 100%;
        height: auto;
        padding: 8px;
        border-radius: 8px;
        border: 1px solid #cfd8e3;
        background: #fff;
        font-size: 12px;
    }

.ci-doc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #eef6ff;
    color: #1e6fd9;
    font-size: 18px;
}

.ci-section .card.is-uploaded .ci-doc-icon {
    background: #e8f7ef;
    color: #2f9e6b;
}

@media (max-width: 767px) {
    .ci-header,
    .ci-body {
        padding-left: 16px;
        padding-right: 16px;
    }

        .ci-header h1 {
            font-size: 22px;
        }

    .ci-header-top {
        flex-direction: column;
    }

    .ci-submit {
        width: 100%;
        min-width: 0;
    }
}
