.mcom-overlay {
    position: fixed;
    inset: 0;
    z-index: 1065;
    display: none;
    background: var(--ohub-overlay);
}

.mcom-overlay.mcom-open {
    display: block;
}

.mcom-modal {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: "Ubuntu", sans-serif;
    font-size: 17.6px;
}

.mcom-modal button,
.mcom-modal input,
.mcom-modal select,
.mcom-modal textarea {
    font-family: inherit;
}

.mcom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 12px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.mcom-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ohub-blue-deep);
    font-size: 19.8px;
    font-weight: 700;
    line-height: 1.25;
}

.mcom-logo {
    display: block;
    width: auto;
    height: 50px;
}

#mcomOverlay .mcom-header > #mcomClose {
    all: unset !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ohub-blue-medium) !important;
    font-family: Arial, sans-serif !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

#mcomOverlay .mcom-header > #mcomClose:hover,
#mcomOverlay .mcom-header > #mcomClose:focus,
#mcomOverlay .mcom-header > #mcomClose:active {
    color: var(--ohub-blue-medium) !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.mcom-progress {
    height: 5px;
    background: var(--ohub-blue-soft);
}

.mcom-progress-bar {
    width: 0;
    height: 100%;
    background: var(--ohub-blue);
    transition: width 180ms ease;
}

.mcom-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 16px 16px;
}

.mcom-loading {
    padding: 24px 0;
    text-align: center;
    color: var(--ink3);
}

.mcom-form {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.mcom-step {
    display: none;
    flex: 1;
}

.mcom-step.mcom-active {
    display: block;
}

.mcom-block-header {
    margin: 0 0 24px;
}

.mcom-block-title {
    margin: 0 0 8px;
    color: var(--ohub-orange-ambar);
    font-size: 19.8px !important;
    font-weight: 700;
    line-height: 1.25 !important;
}

.mcom-block-subtitle {
    margin: 0;
    color: #000000;
    font-size: 17.6px;
    line-height: 1.4;
}

.mcom-field {
    margin-bottom: 16px;
}

.mcom-section-divider {
    height: 0;
    margin: 22px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.mcom-email-corporativo {
    color: var(--ohub-green) !important;
}

.mcom-field label {
    display: block;
    margin: 0 0 7px;
    color: var(--ink);
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.32;
}

.mcom-field > label {
    color: var(--ohub-blue-deep);
}

.mcom-control {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid var(--ohub-blue-chip-border);
    border-radius: 6.6px;
    background: var(--white);
    color: var(--ohub-navy);
    font-size: 17.6px;
    line-height: 1.35;
    box-shadow: none;
}

textarea.mcom-control {
    min-height: 132px;
    resize: vertical;
}

.mcom-control:focus {
    border-color: var(--ohub-blue);
    outline: 0;
    box-shadow: 0 0 0 3px var(--ohub-blue-focus);
}

.mcom-control[readonly],
.mcom-control.mcom-readonly {
    background: var(--paper2);
    color: var(--ink3);
}

.mcom-options {
    display: grid;
    gap: 9px;
}

.mcom-option {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    font-weight: 400 !important;
}

.mcom-option input[type="radio"],
.mcom-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    flex: 0 0 auto;
}

.mcom-option-with-text {
    align-items: center;
}

.mcom-option .mcom-option-other-input {
    min-width: 0;
    min-height: 38px;
    flex: 1 1 auto;
    padding: 8px 10px;
    border: 1px solid var(--ohub-blue-chip-border);
    border-radius: 4.4px;
    background: var(--white);
    color: var(--ohub-navy);
    font-size: 16.5px;
    line-height: 1.35;
}

.mcom-option .mcom-option-other-input:focus {
    border-color: var(--ohub-blue);
    outline: 0;
    box-shadow: 0 0 0 3px var(--ohub-blue-focus);
}

.mcom-option .mcom-option-other-input.mcom-invalid {
    border-color: var(--vermelho-escuro);
}

.mcom-cep-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.mcom-link-button {
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--ohub-blue);
    border-radius: 6px;
    background: var(--white);
    color: var(--ohub-blue);
    font-size: 13.2px !important;
    font-weight: 400 !important;
    white-space: nowrap;
}

.mcom-help {
    margin-top: 7px;
    color: var(--ink3);
    font-size: 14.3px;
    line-height: 1.35;
}

.mcom-error-text,
.mcom-field-error {
    color: var(--vermelho-escuro);
}

.mcom-control.mcom-invalid {
    border-color: var(--vermelho-escuro);
}

.mcom-terms {
    margin: 18px 0 14px;
    color: var(--ink3);
    font-size: 14.3px;
    line-height: 1.45;
    text-align: center;
}

.mcom-terms a {
    color: var(--ohub-blue);
}

.mcom-alert {
    margin: 4px 0 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: var(--ohub-orange-light);
    color: var(--vermelho-escuro);
    font-size: 15.4px;
}

.mcom-actions {
    position: sticky;
    bottom: -16px;
    display: grid;
    grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    margin: auto -16px -16px;
    padding: 12px 16px 16px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.mcom-actions button {
    min-height: 56px;
    border-radius: 8px;
    font-size: 15.4px !important;
    font-weight: 400 !important;
    line-height: 1.42857143 !important;
}

#mcomBack,
#mcomNext,
#mcomSubmit,
.mcom-actions .mcom-primary,
.mcom-actions .mcom-secondary {
    font-size: 15.4px !important;
    font-weight: 400 !important;
}

.mcom-secondary {
    border: 1px solid var(--border);
    background: var(--paper2);
    color: var(--ohub-blue-dark);
}

.mcom-primary {
    border: 1px solid var(--ohub-blue);
    background: var(--ohub-blue);
    color: var(--white);
}

#mcomForm .mcom-actions {
    grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr) !important;
    gap: 12px !important;
}

#mcomForm .mcom-actions button {
    min-height: 56px !important;
    border-radius: 8px !important;
    font-size: 15.4px !important;
    font-weight: 400 !important;
    line-height: 1.42857143 !important;
}

#mcomForm #mcomBack,
#mcomForm .mcom-actions .mcom-secondary {
    border: 1px solid var(--border) !important;
    background: var(--paper2) !important;
    color: var(--ohub-blue-dark) !important;
}

.mcom-actions button[hidden] {
    display: none;
}

#mcomForm .mcom-actions.mcom-first #mcomNext {
    grid-column: 2;
}

.mcom-actions.mcom-first .mcom-secondary {
    display: none;
}

body.mcom-lock {
    overflow: hidden;
}

@media (min-width: 768px) {
    .mcom-overlay {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .mcom-body {
        padding: 20px 12px 12px;
    }

    .mcom-cep-row {
        grid-template-columns: 1fr;
    }

    .mcom-actions {
        margin-right: -12px;
        margin-left: -12px;
        padding-right: 12px;
        padding-left: 12px;
    }
}
