.crp-registration {
    --crp-ink: #152019;
    --crp-muted: #66736b;
    --crp-green: #0c3929;
    --crp-green-soft: #eef6f2;
    --crp-gold: #c99a32;
    --crp-red: #9f2f22;
    --crp-line: #dfe7e2;
    --crp-field: #fbfcfb;
    --crp-white: #fff;
    width: min(100%, 1160px);
    max-width: 1160px;
    margin: 36px auto;
    padding: 0 16px;
    color: var(--crp-ink);
    font-family: inherit;
}

.crp-registration,
.crp-registration * {
    box-sizing: border-box;
}

.crp-registration .crp-form {
    position: relative;
    display: flex !important;
    flex-direction: column;
    gap: 22px;
    margin: 0;
    padding: 26px;
    overflow: hidden;
    border: 1px solid rgba(201, 154, 50, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(12, 57, 41, 0.055), rgba(201, 154, 50, 0.08)),
        var(--crp-white);
    box-shadow: 0 24px 60px rgba(14, 35, 26, 0.14);
}

.crp-registration .crp-form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--crp-green), var(--crp-gold), var(--crp-red));
}

.crp-registration .crp-receipt {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0;
    padding: 26px;
    overflow: hidden;
    border: 1px solid rgba(201, 154, 50, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(12, 57, 41, 0.055), rgba(201, 154, 50, 0.08)),
        var(--crp-white);
    box-shadow: 0 24px 60px rgba(14, 35, 26, 0.14);
}

.crp-registration .crp-receipt::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--crp-green), var(--crp-gold), var(--crp-red));
}

.crp-registration .crp-receipt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.crp-registration .crp-receipt-heading {
    min-width: 0;
}

.crp-registration .crp-receipt-kicker {
    display: inline-flex;
    margin: 0 0 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--crp-green-soft);
    color: var(--crp-green);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.crp-registration .crp-receipt h2 {
    margin: 0 0 8px;
    color: var(--crp-green);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.18;
}

.crp-registration .crp-receipt p {
    max-width: 680px;
    margin: 0;
    color: var(--crp-muted);
    font-size: 15px;
    line-height: 1.55;
}

.crp-registration .crp-receipt-meta {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 14px 16px;
    border: 1px solid rgba(12, 57, 41, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    text-align: right;
}

.crp-registration .crp-receipt-meta span,
.crp-registration .crp-receipt-meta small {
    display: block;
    color: var(--crp-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.crp-registration .crp-receipt-meta strong {
    display: block;
    margin: 4px 0;
    color: var(--crp-green);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.crp-registration .crp-receipt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.crp-registration .crp-receipt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--crp-green) 0%, #15543e 72%, var(--crp-gold) 145%);
    color: var(--crp-white);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(12, 57, 41, 0.25);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.crp-registration .crp-receipt-button:hover,
.crp-registration .crp-receipt-button:focus {
    color: var(--crp-white);
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(12, 57, 41, 0.3);
}

.crp-registration .crp-receipt-button--secondary {
    background: var(--crp-white);
    border-color: rgba(12, 57, 41, 0.16);
    color: var(--crp-green);
    box-shadow: none;
}

.crp-registration .crp-receipt-button--secondary:hover,
.crp-registration .crp-receipt-button--secondary:focus {
    color: var(--crp-green);
    background: var(--crp-green-soft);
    box-shadow: none;
}

.crp-registration .crp-receipt-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.crp-registration .crp-receipt-body--with-photo {
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: start;
}

.crp-registration .crp-receipt-sections {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.crp-registration .crp-receipt-section {
    padding: 22px;
    border: 1px solid rgba(12, 57, 41, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(19, 34, 27, 0.07);
}

.crp-registration .crp-receipt-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0 0 13px;
    border-bottom: 1px solid rgba(12, 57, 41, 0.1);
    color: var(--crp-green);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.crp-registration .crp-receipt-section h3::before {
    content: "";
    width: 6px;
    height: 22px;
    flex: 0 0 6px;
    border-radius: 999px;
    background: var(--crp-gold);
    box-shadow: 0 0 0 4px rgba(201, 154, 50, 0.16);
}

.crp-registration .crp-receipt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px 20px;
    margin: 0;
}

.crp-registration .crp-receipt-field {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--crp-line);
    border-radius: 8px;
    background: var(--crp-field);
}

.crp-registration .crp-receipt-field dt {
    margin: 0 0 6px;
    color: #23342a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.crp-registration .crp-receipt-field dd {
    margin: 0;
    color: var(--crp-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.crp-registration .crp-empty-value {
    color: var(--crp-muted);
    font-weight: 500;
}

.crp-registration .crp-receipt-photo-panel {
    padding: 14px;
    border: 1px solid rgba(12, 57, 41, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(19, 34, 27, 0.07);
}

.crp-registration .crp-receipt-photo-panel span {
    display: block;
    margin: 0 0 10px;
    color: var(--crp-green);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.crp-registration .crp-receipt-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--crp-line);
    background: var(--crp-field);
}

.crp-registration .crp-section {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 22px;
    border: 1px solid rgba(12, 57, 41, 0.12) !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 12px 30px rgba(19, 34, 27, 0.07);
}

.crp-registration .crp-section legend {
    float: none;
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 0 0 13px;
    border-bottom: 1px solid rgba(12, 57, 41, 0.1);
    color: var(--crp-green);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.crp-registration .crp-section legend::before {
    content: "";
    width: 6px;
    height: 22px;
    flex: 0 0 6px;
    border-radius: 999px;
    background: var(--crp-gold);
    box-shadow: 0 0 0 4px rgba(201, 154, 50, 0.16);
}

.crp-registration .crp-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 18px 26px;
    width: 100%;
    margin: 0 !important;
}

.crp-registration label.crp-field,
.crp-registration .crp-field {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.crp-registration .crp-field em {
    color: var(--crp-red);
    font-style: normal;
    font-weight: 700;
}

.crp-registration .crp-field .form-label {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    color: #23342a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.crp-registration .form-control,
.crp-registration .form-select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid var(--crp-line) !important;
    border-radius: 8px !important;
    background-color: var(--crp-field) !important;
    color: var(--crp-ink) !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.crp-registration select.form-select {
    height: 48px !important;
    padding-right: 46px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--crp-green) 50%),
        linear-gradient(135deg, var(--crp-green) 50%, transparent 50%),
        linear-gradient(to right, rgba(12, 57, 41, 0.14), rgba(12, 57, 41, 0.14));
    background-position:
        calc(100% - 22px) calc(50% + 1px),
        calc(100% - 16px) calc(50% + 1px),
        calc(100% - 40px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px, 1px 24px;
    cursor: pointer;
}

.crp-registration .form-control:hover,
.crp-registration .form-select:hover {
    border-color: rgba(12, 57, 41, 0.34) !important;
    background-color: var(--crp-white) !important;
}

.crp-registration .form-control:focus,
.crp-registration .form-select:focus {
    border-color: var(--crp-gold) !important;
    outline: 0 !important;
    background-color: var(--crp-white) !important;
    box-shadow: 0 0 0 4px rgba(201, 154, 50, 0.18), 0 10px 24px rgba(12, 57, 41, 0.08) !important;
}

.crp-registration .crp-readonly-control,
.crp-registration .crp-readonly-control:hover,
.crp-registration .crp-readonly-control:focus {
    background-color: #eef3ef !important;
    color: #23342a !important;
    cursor: not-allowed;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

.crp-registration textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.crp-registration input[type="date"].form-control {
    color-scheme: light;
}

.crp-registration input[type="file"].form-control {
    min-height: 52px;
    height: auto;
    padding: 8px 12px !important;
    cursor: pointer;
}

.crp-registration input[type="file"].form-control::file-selector-button {
    min-height: 34px;
    margin: 0 14px 0 0;
    padding: 8px 13px;
    border: 0;
    border-radius: 6px;
    background: var(--crp-green);
    color: var(--crp-white);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.crp-registration .crp-field .form-check {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--crp-line);
    border-radius: 8px;
    background: var(--crp-field);
}

.crp-registration .crp-field .form-check-input {
    float: none;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--crp-green);
}

.crp-registration .crp-submit {
    align-self: flex-start;
    min-height: 50px;
    margin: 0;
    padding: 0 30px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--crp-green) 0%, #15543e 72%, var(--crp-gold) 145%);
    color: var(--crp-white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(12, 57, 41, 0.25);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.crp-registration .crp-submit:hover,
.crp-registration .crp-submit:focus {
    color: var(--crp-white);
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(12, 57, 41, 0.3);
}

.crp-registration .crp-submit:focus-visible {
    outline: 3px solid rgba(201, 154, 50, 0.38);
    outline-offset: 3px;
}

.crp-registration .crp-notice {
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(19, 34, 27, 0.08);
}

.crp-registration .crp-notice.alert-success {
    border-color: rgba(21, 92, 54, 0.2);
    background: var(--crp-green-soft);
    color: #11442f;
}

.crp-registration .crp-notice.alert-danger {
    border-color: rgba(159, 47, 34, 0.22);
    background: #fff2ef;
    color: #842417;
}

.crp-registration .crp-notice .crp-notice-title {
    display: block;
    margin: 0 0 8px;
    font-weight: 800;
    line-height: 1.35;
}

.crp-registration .crp-notice .crp-notice-text {
    margin: 0 0 10px;
    line-height: 1.45;
}

.crp-registration .crp-notice .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--crp-green);
    color: var(--crp-white);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.crp-registration .crp-notice p:last-child,
.crp-registration .crp-notice ul:last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .crp-registration {
        margin: 26px auto;
        padding: 0 12px;
    }

    .crp-registration .crp-form {
        padding: 18px;
        gap: 18px;
    }

    .crp-registration .crp-receipt {
        padding: 18px;
        gap: 18px;
    }

    .crp-registration .crp-receipt-header {
        flex-direction: column;
    }

    .crp-registration .crp-receipt h2 {
        font-size: 24px;
    }

    .crp-registration .crp-receipt-meta {
        width: 100%;
        text-align: left;
    }

    .crp-registration .crp-receipt-actions {
        flex-direction: column;
    }

    .crp-registration .crp-receipt-button {
        width: 100%;
    }

    .crp-registration .crp-receipt-body--with-photo {
        grid-template-columns: 1fr;
    }

    .crp-registration .crp-receipt-section {
        padding: 18px;
    }

    .crp-registration .crp-receipt-section h3 {
        font-size: 18px;
    }

    .crp-registration .crp-receipt-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .crp-registration .crp-section {
        padding: 18px;
    }

    .crp-registration .crp-section legend {
        font-size: 18px;
    }

    .crp-registration .crp-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .crp-registration .crp-submit {
        width: 100%;
        justify-content: center;
    }
}
