.charter-hero,
.charter-page {
    font-family: "Inter", sans-serif;
}

.charter-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 96px;
    color: #fff;
    background: linear-gradient(115deg, #12385f 0%, #12588f 60%, #0e73bf 100%);
}

.charter-hero::after {
    position: absolute;
    right: -120px;
    bottom: -210px;
    width: 460px;
    height: 460px;
    border: 70px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.charter-hero .container {
    position: relative;
    z-index: 1;
}

.charter-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: #ffda58;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.charter-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.charter-hero p {
    max-width: 650px;
    margin: 14px 0 0;
    color: #d9eaf8;
    font-size: 1rem;
    line-height: 1.7;
}

.charter-page {
    padding: 0 0 76px;
    background: #f4f7fb;
}

.charter-card {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: -42px auto 0;
    padding: 38px 44px 0;
    border: 1px solid #e0e9f2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(13, 47, 79, .12);
}

.charter-card__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e5ecf3;
}

.charter-card__kicker {
    color: #0e73bf;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.charter-card__intro h2 {
    margin: 7px 0 5px;
    color: #12385f;
    font-size: 1.55rem;
    font-weight: 800;
}

.charter-card__intro p,
.charter-section__heading p,
.charter-schedule__heading p {
    margin: 0;
    color: #617287;
    font-size: .91rem;
    line-height: 1.55;
}

.charter-required-note {
    flex: none;
    color: #64758a;
    font-size: .79rem;
    font-weight: 600;
    white-space: nowrap;
}

.charter-required-note span,
.charter-required,
.charter-form-footer p span {
    color: #d94c42;
}

.charter-alert {
    margin: 24px 0 0;
    border-radius: 12px;
    line-height: 1.5;
}

.charter-section {
    padding: 34px 0 38px;
    border-bottom: 1px solid #e5ecf3;
}

.charter-section__heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 25px;
}

.charter-section__number {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #0b64a6;
    background: #eaf5fc;
    font-size: .86rem;
    font-weight: 800;
}

.charter-section__heading h3 {
    margin: 0 0 5px;
    color: #143d62;
    font-size: 1.22rem;
    font-weight: 800;
}

.charter-card .form-label,
.charter-pks legend {
    margin-bottom: 8px;
    color: #273d54;
    font-size: .88rem;
    font-weight: 700;
}

.charter-card .form-control,
.charter-card .form-select {
    min-height: 48px;
    border: 1px solid #cdd9e5;
    border-radius: 10px;
    color: #26384b;
    background-color: #fff;
    font-size: .92rem;
}

.charter-card textarea.form-control {
    min-height: 112px;
    padding-top: 12px;
    resize: vertical;
}

.charter-card .form-control::placeholder {
    color: #8998a8;
}

.charter-card .form-control:focus,
.charter-card .form-select:focus {
    border-color: #0e73bf;
    box-shadow: 0 0 0 4px rgba(14, 115, 191, .13);
}

.charter-card .form-text {
    margin-top: 7px;
    color: #6d7d90;
    font-size: .77rem;
}

.charter-pks {
    margin: 2px 0 0;
    padding: 19px 20px 20px;
    border: 1px solid #dce7f0;
    border-radius: 14px;
    background: #f8fbfd;
}

.charter-pks--invalid {
    border-color: #dc3545;
}

.charter-pks legend {
    float: none;
    width: auto;
    margin: 0 0 3px;
    padding: 0;
}

.charter-pks p {
    margin: 0 0 15px;
    color: #6d7d90;
    font-size: .82rem;
}

.charter-pks__options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.charter-pks__option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 205px;
    min-height: 47px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #cbd9e6;
    border-radius: 10px;
    color: #294259;
    background: #fff;
    font-size: .85rem;
    font-weight: 650;
    cursor: pointer;
}

.charter-pks__option:has(input:checked) {
    border-color: #0e73bf;
    color: #0b5d9c;
    background: #ecf7ff;
}

.charter-pks__option input,
.charter-confirmation input {
    flex: none;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #0e73bf;
}

.charter-field-error {
    margin-top: 8px;
    color: #b42318;
    font-size: .8rem;
}

.charter-schedule {
    margin-top: 30px;
}

.charter-schedule__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
}

.charter-schedule__heading h4 {
    margin: 0 0 4px;
    color: #143d62;
    font-size: 1rem;
    font-weight: 800;
}

.charter-add-button,
.charter-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    font-size: .83rem;
    font-weight: 750;
    white-space: nowrap;
}

.charter-add-button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #0e73bf;
    color: #0b64a6;
    background: #f0f8fd;
}

.charter-add-button:hover {
    color: #fff;
    background: #0e73bf;
}

.charter-schedule__rows {
    display: grid;
    gap: 12px;
}

.charter-schedule-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
    padding: 17px;
    border: 1px solid #e1e9f1;
    border-radius: 13px;
    background: #f9fbfd;
}

.charter-schedule-row__number {
    align-self: center;
    color: #35627e;
    font-size: .8rem;
    font-weight: 800;
}

.charter-schedule-row__fields {
    display: grid;
    grid-template-columns: minmax(150px, .8fr) minmax(0, 1.4fr);
    gap: 14px;
    min-width: 0;
}

.charter-remove-button {
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #e6c9c9;
    color: #a63c3c;
    background: #fff;
}

.charter-remove-button:hover {
    color: #fff;
    background: #b84444;
}

.charter-final-fields {
    display: grid;
    gap: 20px;
}

.charter-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #dce7f0;
    border-radius: 12px;
    color: #34485d;
    background: #f8fbfd;
    font-size: .87rem;
    line-height: 1.55;
    cursor: pointer;
}

.charter-confirmation input {
    margin-top: 2px;
}

.charter-captcha {
    max-width: 270px;
}

.charter-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 -44px;
    padding: 23px 44px;
    border-radius: 0 0 22px 22px;
    background: #f8fbfe;
}

.charter-form-footer p {
    margin: 0;
    color: #64758a;
    font-size: .82rem;
}

.charter-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 47px;
    padding: 11px 23px;
    border: 1px solid #0e73bf;
    border-radius: 10px;
    color: #fff;
    background: #0e73bf;
    font-size: .9rem;
    font-weight: 800;
    white-space: nowrap;
}

.charter-submit-button:hover {
    border-color: #075c9d;
    color: #fff;
    background: #075c9d;
}

.charter-success-modal .modal-dialog {
    max-width: 490px;
}

body.modal-open .accessibility-widget {
    z-index: 1040;
}

.charter-success-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(13, 47, 79, .25);
}

.charter-success-modal .modal-body {
    padding: 36px;
    text-align: center;
}

.charter-success-modal__icon {
    display: inline-grid;
    width: 66px;
    height: 66px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #19844e;
    background: #e5f6ec;
    font-size: 2rem;
    line-height: 1;
}

.charter-success-modal h2 {
    margin: 0 0 9px;
    color: #143d62;
    font-size: 1.5rem;
    font-weight: 800;
}

.charter-success-modal p {
    margin: 0;
    color: #64758a;
    font-size: .92rem;
    line-height: 1.65;
}

.charter-success-modal__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.charter-success-modal__primary,
.charter-success-modal__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 9px;
    font-size: .83rem;
    font-weight: 750;
    text-decoration: none;
}

.charter-success-modal__primary {
    border: 1px solid #0e73bf;
    color: #fff;
    background: #0e73bf;
}

.charter-success-modal__primary:hover {
    border-color: #075c9d;
    color: #fff;
    background: #075c9d;
}

.charter-success-modal__secondary {
    border: 1px solid #cdd9e5;
    color: #34536d;
    background: #fff;
}

.charter-success-modal__secondary:hover {
    background: #f4f8fb;
}

@media (max-width: 767.98px) {
    .charter-hero { padding: 48px 0 74px; }
    .charter-hero::after { right: -220px; bottom: -250px; }
    .charter-card { margin-top: -30px; padding: 27px 20px 0; border-radius: 17px; }
    .charter-card__intro { align-items: flex-start; flex-direction: column; gap: 10px; padding-bottom: 22px; }
    .charter-section { padding: 27px 0 30px; }
    .charter-section__heading { gap: 12px; margin-bottom: 21px; }
    .charter-section__number { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; }
    .charter-section__heading h3 { font-size: 1.08rem; }
    .charter-pks__options { display: grid; }
    .charter-schedule__heading { align-items: flex-start; flex-direction: column; }
    .charter-schedule-row { grid-template-columns: 1fr auto; align-items: center; }
    .charter-schedule-row__number { grid-column: 1; }
    .charter-schedule-row__fields { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr; }
    .charter-remove-button { grid-column: 2; grid-row: 1; }
    .charter-form-footer { align-items: stretch; flex-direction: column; margin: 0 -20px; padding: 20px; border-radius: 0 0 17px 17px; }
    .charter-submit-button { width: 100%; }
    .charter-success-modal .modal-body { padding: 30px 22px; }
    .charter-success-modal__actions { flex-direction: column-reverse; }
    .charter-success-modal__primary,
    .charter-success-modal__secondary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .charter-add-button,
    .charter-remove-button,
    .charter-submit-button { transition: none; }
}
