.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(0, 181, 226, 0.12);
    border: 2px solid #00B5E2;
}
.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-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: #00B5E2;
    box-shadow: 0 0 0 3px rgba(0, 181, 226, 0.2);
}
.frmx-drop.is-drag {
    border-color: #00B5E2;
    background: rgba(0, 181, 226, 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: #00B5E2;
}
.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: #00B5E2;
}
.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;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.frmx-item select {
    flex: 1;
}
.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;
}
.frmx-remove:hover {
    background: #00B5E2;
}
