.bpub-quick-submit-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px;
}

.bpub-quick-submit-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .08);
    padding: 30px;
}

.bpub-quick-submit-form [hidden] {
    display: none !important;
}

.bpub-form-header {
    margin-bottom: 24px;
}

.bpub-form-header h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 28px;
    font-weight: 650;
}

.bpub-form-header p {
    margin: 0;
    color: #64748b;
}

.bpub-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bpub-form-group {
    margin-bottom: 0;
}

.bpub-form-group-wide {
    grid-column: 1 / -1;
}

.bpub-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #111827;
    font-weight: 600;
}

.bpub-form-group label span {
    color: #dc2626;
}

.bpub-form-group input,
.bpub-form-group textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 13px;
    color: #111827;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
    min-height: 48px;
}

.bpub-form-group input[readonly] {
    background: #f8fafc;
    cursor: not-allowed;
}

.bpub-form-group small {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.bpub-email-status.is-loading {
    color: #475569;
}

.bpub-email-status.is-success {
    color: #047857;
}

.bpub-email-status.is-error {
    color: #b91c1c;
}

.bpub-email-status.is-loading::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border: 2px solid #cbd5e1;
    border-top-color: #2563eb;
    border-radius: 50%;
    vertical-align: -2px;
    animation: bpub-spin .8s linear infinite;
}

@keyframes bpub-spin {
    to {
        transform: rotate(360deg);
    }
}

.bpub-password-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.bpub-password-wrap input {
    flex: 1 1 auto;
    min-width: 0;
}

.bpub-toggle-password {
    display: inline-flex !important;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 52px;
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    background: #f8fafc !important;
    color: #334155 !important;
    cursor: pointer;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    appearance: none;
}

.bpub-toggle-password .dashicons {
    display: inline-block;
    width: 20px;
    height: 20px;
    color: #334155 !important;
    font-size: 20px;
    line-height: 20px;
}

.bpub-toggle-password:hover,
.bpub-toggle-password:focus,
.bpub-toggle-password:active {
    background: #eef2f7 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    outline: none !important;
}

.bpub-file-drop {
    position: relative;
    border: 2px dashed #94a3b8;
    border-radius: 8px;
    padding: 34px 20px;
    text-align: center;
    transition: border-color .2s ease, background .2s ease;
    margin-top: 4px;
    margin-bottom: 18px;
}

.bpub-file-drop.is-dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.bpub-file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.bpub-file-empty .dashicons {
    width: 42px;
    height: 42px;
    font-size: 42px;
    color: #64748b;
}

.bpub-file-empty strong,
.bpub-file-empty small {
    display: block;
}

.bpub-file-empty strong {
    margin-top: 10px;
    color: #0f172a;
}

.bpub-file-empty small {
    color: #64748b;
}

.bpub-file-selected {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    color: #0f172a;
    font-weight: 600;
}

.bpub-file-name {
    overflow-wrap: anywhere;
}

.bpub-remove-file {
    border: 1px solid #fecaca;
    border-radius: 4px;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 3px 8px;
}

.bpub-upload-progress {
    margin-top: 18px;
}

.bpub-progress-line {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
}

.bpub-progress-line span {
    display: block;
    width: 0;
    height: 100%;
    background: #2563eb;
    transition: width .2s ease;
}

.bpub-submit-actions {
    text-align: center;
    margin-top: 8px;
}

#bpub-submit-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 48px;
    border: 1px solid #01112f;
    border-radius: 6px;
    background: #01112f !important;
    color: #fff !important;
    cursor: pointer;
    padding: 13px 24px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    appearance: none;
    box-shadow: none;
}

#bpub-submit-button:hover,
#bpub-submit-button:focus,
#bpub-submit-button:active,
#bpub-submit-button:visited {
    background: #01112f !important;
    color: #fff !important;
    border-color: #01112f !important;
    outline: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#bpub-submit-button span {
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#bpub-submit-button:disabled {
    opacity: .7;
    cursor: progress;
}

.bpub-form-messages {
    margin-top: 16px;
    text-align: center;
}

.bpub-form-messages.is-error {
    color: #b91c1c;
}

.bpub-form-messages.is-success {
    color: #047857;
}

@media (max-width: 720px) {
    .bpub-quick-submit-wrapper {
        padding: 12px;
    }

    .bpub-quick-submit-form {
        padding: 20px;
    }

    .bpub-form-grid {
        grid-template-columns: 1fr;
    }
}