.frmx-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.frmx-msg {
    display: none;
    float: left;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.4;
    color: #0F2A44;
}
.frmx-msg.is-visible {
    display: block;
}
.frmx-msg.is-success {
    background: rgba(56, 134, 212, 0.12);
    border: 2px solid #3886D4;
}
.frmx-msg.is-error {
    background: rgba(192, 57, 43, 0.08);
    border: 2px solid #C0392B;
}
.frmx-msg ul {
    margin: 0;
    padding: 0 0 0 18px;
}
.frmx-msg li {
    margin: 2px 0;
}

.frmx-submit {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}
.frmx-submit:disabled,
.frmx-submit.is-loading {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.frmx-captcha {
    float: left;
    width: 100%;
    box-sizing: border-box;
    margin: 14px 0 18px;
}
.frmx-captcha altcha-widget {
    display: block;
    width: 100%;
    max-width: 340px;
    --altcha-color-base: #ffffff;
    --altcha-color-base-content: #0f2a44;
    --altcha-color-primary: #3886D4;
    --altcha-color-primary-content: #ffffff;
    --altcha-border-color: rgba(15, 42, 68, 0.25);
    --altcha-max-width: 340px;
}
.frmx-captcha-noscript {
    display: block;
    padding: 12px 14px;
    border: 1px solid #c0392b;
    border-radius: 10px;
    color: #c0392b;
    font-size: 13px;
    line-height: 1.4;
}

.frmx-err {
    float: left;
    width: 100%;
    box-sizing: border-box;
    margin: 4px 0 8px;
    color: #C0392B;
    font-size: 13px;
    line-height: 1.35;
}

.frmx-form .inp-wrap input,
.frmx-form .inp-wrap textarea,
.frmx-form .inp-wrap select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.frmx-form input.frmx-invalid,
.frmx-form textarea.frmx-invalid,
.frmx-form select.frmx-invalid {
    border-color: #C0392B;
}
.frmx-form input.frmx-invalid:focus,
.frmx-form textarea.frmx-invalid:focus,
.frmx-form select.frmx-invalid:focus {
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

.frmx-drop {
    float: left;
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 4px 0 8px;
    border: 2px dashed rgba(15, 42, 68, 0.35);
    border-radius: 12px;
    background: rgba(15, 42, 68, 0.03);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.frmx-drop:hover {
    border-color: #0F2A44;
    background: rgba(15, 42, 68, 0.05);
}
.frmx-drop:focus-within {
    border-color: #3886D4;
    box-shadow: 0 0 0 3px rgba(56, 134, 212, 0.2);
}
.frmx-drop.is-drag {
    border-color: #3886D4;
    background: rgba(56, 134, 212, 0.08);
}
.frmx-drop:has(.frmx-invalid) {
    border-color: #C0392B;
    background: rgba(192, 57, 43, 0.04);
}

.frmx-drop-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.frmx-drop-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 26px 18px;
    text-align: center;
}
.frmx-drop-icon {
    width: 34px;
    height: 34px;
    color: #0F2A44;
}
.frmx-drop.is-drag .frmx-drop-icon {
    color: #3886D4;
}
.frmx-drop-text {
    font-size: 15px;
    font-weight: 600;
    color: #0F2A44;
}
.frmx-drop-hint {
    font-size: 12px;
    color: rgba(15, 42, 68, 0.55);
}

.frmx-drop-file {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}
.frmx-drop.has-file .frmx-drop-idle {
    display: none;
}
.frmx-drop.has-file .frmx-drop-file {
    display: flex;
}
.frmx-drop-fileicon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    color: #3886D4;
}
.frmx-drop-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.frmx-drop-name {
    font-size: 14px;
    font-weight: 600;
    color: #0F2A44;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.frmx-drop-size {
    font-size: 12px;
    color: rgba(15, 42, 68, 0.55);
}
.frmx-drop-remove {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #0F2A44;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.frmx-drop-remove:hover,
.frmx-drop-remove:focus {
    background: #C0392B;
}

.frmx-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}
.frmx-item + .frmx-item {
    padding-top: 18px;
    border-top: 1px solid rgba(15, 42, 68, 0.12);
}
.frmx-cat-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.frmx-cat-row .frmx-cat {
    flex: 1 1 auto;
    width: auto;
    float: none;
}
.frmx-remove {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #0F2A44;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.frmx-remove:hover {
    background: #3886D4;
}

.frmx-subchips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.frmx-subchips:empty {
    display: none;
}
.frmx-subchip {
    display: none;
    position: relative;
    align-items: center;
    box-sizing: border-box;
    padding: 8px 15px;
    border: 2px solid rgba(15, 42, 68, 0.35);
    border-radius: 999px;
    background: rgba(15, 42, 68, 0.03);
    color: #0F2A44;
    font-size: 14px;
    line-height: 1.1;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.frmx-subchip.is-visible {
    display: inline-flex;
}
.frmx-subchip:hover {
    border-color: #0F2A44;
    background: rgba(15, 42, 68, 0.06);
}
.frmx-subchip .frmx-subchip-cb {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    float: none;
}
.frmx-subchip-label {
    position: relative;
    display: inline-block;
    padding-left: 24px;
    white-space: nowrap;
}
.frmx-subchip-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    margin-top: -8px;
    border: 2px solid rgba(15, 42, 68, 0.4);
    border-radius: 5px;
    background: transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.frmx-subchip-label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 4px;
    height: 8px;
    margin-top: -6px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg);
    transition: opacity 0.2s ease;
}
.frmx-subchip:has(.frmx-subchip-cb:checked) {
    border-color: #3886D4;
    background: rgba(56, 134, 212, 0.12);
    box-shadow: 0 0 0 1px #3886D4;
}
.frmx-subchip:has(.frmx-subchip-cb:checked) .frmx-subchip-label::before {
    border-color: #3886D4;
    background: #3886D4;
}
.frmx-subchip:has(.frmx-subchip-cb:checked) .frmx-subchip-label::after {
    opacity: 1;
}
.frmx-subchip:focus-within {
    border-color: #3886D4;
    box-shadow: 0 0 0 3px rgba(56, 134, 212, 0.25);
}
