/**
 * B2B Registration Form Styles
 * High-specificity selectors override awa-master.css, awa-palette-global.css,
 * awa-bugfixes.css, and awa-ayo-alignment-fix.css global styles.
 */

body.b2b-register-index {
    --b2b-reg-ayo-primary: var(--aw-primary, #b73337);
    --b2b-reg-ayo-primary-dark: var(--aw-primary-dark, #8e2629);
    --b2b-reg-ayo-primary-darker: #6d1d1f;
    --b2b-reg-ayo-soft: #fff1f2;
    --b2b-reg-ayo-soft-strong: #fee2e2;
    --b2b-reg-ayo-soft-accent: #fecaca;
    --b2b-reg-ayo-border-soft: #f5b4b7;
    --b2b-reg-ayo-page-bg: #f4f6f8;
    --b2b-reg-ayo-card-border: #e5e7eb;
    --b2b-reg-ayo-card-shadow: 0 12px 32px rgb(15 23 42 / 8%);
}

/* =============================================
   PAGE CONTAINER
   ============================================= */
body.b2b-register-index .page.messages {
    max-width: 920px;
    margin-top: 16px;
    margin-bottom: 0;
    padding: 0 18px;
}

html body .page-wrapper .b2b-register-shell .b2b-register-shell-content {
    width: 100%;
    flex: 1;
    padding: 8px 0 0;
}

html body .page-wrapper .b2b-register-shell .b2b-register-page {
    padding-top: 24px;
    padding-bottom: 20px;
}

html body .page-wrapper .b2b-register-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 30px 18px;
}

.b2b-register-page .is-hidden {
    display: none !important;
}

html body .page-wrapper .b2b-register-page .b2b-already-logged {
    text-align: center;
    padding: 40px;
}

html body .page-wrapper .b2b-register-page .b2b-already-logged .message {
    margin-bottom: 20px;
}

/* =============================================
   HEADER
   ============================================= */
html body .page-wrapper .b2b-register-page .register-header {
    text-align: center;
    margin-bottom: 26px;
}

html body .page-wrapper .b2b-register-page .register-header .register-title {
    font-size: 30px;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: normal;
    overflow-wrap: anywhere;
}

html body .page-wrapper .b2b-register-page .register-header .subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 8px;
    line-height: 1.55;
}

html body .page-wrapper .b2b-register-page .register-header .register-trust-note {
    margin: 0;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
    line-height: 1.5;
}

.b2b-register-page .register-meta {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.b2b-register-page .register-meta__item {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-align: left;
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

.b2b-register-page .register-meta__item strong {
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.b2b-register-page .register-meta__item span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

/* =============================================
   BENEFITS
   ============================================= */
.b2b-register-page .b2b-benefits-toggle {
    display: none;
}

.b2b-register-page .b2b-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
    padding: 22px;
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.b2b-register-page .benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.b2b-register-page .benefit-item.benefit-animate {
    animation: benefitFadeIn 0.6s ease-out forwards;
}

.b2b-register-page .benefit-item[data-animate-delay="0"] { animation-delay: 0s; }
.b2b-register-page .benefit-item[data-animate-delay="100"] { animation-delay: 0.1s; }
.b2b-register-page .benefit-item[data-animate-delay="200"] { animation-delay: 0.2s; }

@keyframes benefitFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.b2b-register-page .benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.b2b-register-page .benefit-icon {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.b2b-register-page .benefit-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.b2b-register-page .benefit-icon-discount::before {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.b2b-register-page .benefit-icon-credit::before {
    background: linear-gradient(135deg, var(--b2b-reg-ayo-soft) 0%, var(--b2b-reg-ayo-soft-accent) 100%);
}

.b2b-register-page .benefit-icon-quote::before {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.b2b-register-page .benefit-item:hover .benefit-icon::before {
    opacity: 1;
}

.b2b-register-page .benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.b2b-register-page .benefit-icon svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.b2b-register-page .benefit-text {
    flex: 1;
}

.b2b-register-page .benefit-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.b2b-register-page .benefit-text span {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* =============================================
   FORM CONTAINER
   ============================================= */
html body .page-wrapper .b2b-register-page .b2b-register-container {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--b2b-reg-ayo-card-border);
    box-shadow: var(--b2b-reg-ayo-card-shadow);
    padding: 34px;
}

html body .page-wrapper .b2b-register-page .b2b-register-form {
    display: grid;
    gap: 18px;
}

.b2b-register-page .b2b-register-progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: -4px 0 4px;
}

.b2b-register-page .progress-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
    width: 100%;
    text-align: left;
    appearance: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.b2b-register-page .progress-step__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #e5e7eb;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
}

.b2b-register-page .progress-step.is-active {
    border-color: var(--b2b-reg-ayo-border-soft);
    background: linear-gradient(180deg, #fff, var(--b2b-reg-ayo-soft));
    color: var(--b2b-reg-ayo-primary-dark);
}

.b2b-register-page .progress-step.is-active .progress-step__num {
    background: var(--b2b-reg-ayo-primary);
    color: #fff;
}

.b2b-register-page .progress-step:hover {
    border-color: #d1d5db;
    background: #fff;
    color: #1f2937;
}

.b2b-register-page .progress-step:focus-visible {
    outline: 2px solid var(--b2b-reg-ayo-primary-dark);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgb(183 51 55 / 10%);
}

.b2b-register-page .progress-step.is-complete {
    border-color: #d1fae5;
    background: #f0fdf4;
    color: #166534;
}

.b2b-register-page .progress-step.is-complete .progress-step__num {
    background: #10b981;
    color: #fff;
}

/* =============================================
   FORM SECTIONS
   ============================================= */
html body .page-wrapper .b2b-register-page .form-section {
    margin-bottom: 0;
    padding: 18px 18px 16px;
    border: 1px solid var(--b2b-reg-ayo-card-border);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
    box-shadow: 0 1px 2px rgb(15 23 42 / 3%);
}

html body .page-wrapper .b2b-register-page .form-section:last-of-type {
    border-bottom: none;
}

html body .page-wrapper .b2b-register-page .form-section .form-section__heading,
html body .page-wrapper .b2b-register-page .form-section h3 {
    margin: 0 0 18px;
    padding-left: 0;
    border-left: 0;
}

html body .page-wrapper .b2b-register-page .form-section .form-section__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 8px;
    cursor: default;
}

html body .page-wrapper .b2b-register-page .form-section .form-section__toggle::before {
    content: attr(data-step-number);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--b2b-reg-ayo-primary) 0%, var(--b2b-reg-ayo-primary-dark) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgb(183 51 55 / 20%);
}

html body .page-wrapper .b2b-register-page .form-section .form-section__toggle-text {
    min-width: 0;
    line-height: 1.2;
}

html body .page-wrapper .b2b-register-page .form-section .form-section__toggle-icon {
    margin-left: auto;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    display: none;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #fff;
    flex-shrink: 0;
}

html body .page-wrapper .b2b-register-page .form-section .form-section__toggle-icon::before {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

html body .page-wrapper .b2b-register-page .form-section .form-section__body {
    display: block;
}

html body .page-wrapper .b2b-register-page .form-section:focus-within {
    border-color: var(--b2b-reg-ayo-border-soft);
    box-shadow: 0 0 0 3px rgb(183 51 55 / 8%), 0 8px 18px rgb(15 23 42 / 6%);
}

html body .page-wrapper .b2b-register-page .form-section.has-errors {
    border-color: #fecaca;
    box-shadow: 0 0 0 2px rgb(220 38 38 / 6%);
}

html body .page-wrapper .b2b-register-page .form-section.has-errors .form-section__toggle {
    color: #7f1d1d;
}

html body .page-wrapper .b2b-register-page .form-section .form-section__toggle:focus-visible {
    outline: 2px solid var(--b2b-reg-ayo-primary-dark);
    outline-offset: 2px;
}

/* =============================================
   FIELD ROW LAYOUT
   ============================================= */
.b2b-register-page .field-row {
    display: flex;
    gap: 16px;
}

.b2b-register-page .field-row .field {
    flex: 1;
}

/* =============================================
   FIELDS
   ============================================= */
.b2b-register-page .field {
    margin-bottom: 18px;
}

.b2b-register-page .field:last-child {
    margin-bottom: 0;
}

.b2b-register-page .field.required > .label span:after {
    content: ' *';
    color: #dc2626;
}

html body .page-wrapper .b2b-register-page .field .label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.b2b-register-page .field .control {
    position: relative;
}

.b2b-register-page .b2b-register-password-wrap {
    position: relative;
}

.b2b-register-page .b2b-register-password-wrap .input-text {
    padding-right: 96px !important;
}

.b2b-register-page .b2b-register-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.b2b-register-page .b2b-register-password-toggle:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
}

.b2b-register-page .b2b-register-password-toggle:focus-visible {
    outline: 2px solid var(--b2b-reg-ayo-primary-dark);
    outline-offset: 2px;
}

/* =============================================
   INPUT FIELDS — Override awa-master.css 2px border & 14px font
   ============================================= */
html body .page-wrapper .b2b-register-page .field .input-text,
html body .page-wrapper .b2b-register-page .field input[type="text"],
html body .page-wrapper .b2b-register-page .field input[type="email"],
html body .page-wrapper .b2b-register-page .field input[type="tel"],
html body .page-wrapper .b2b-register-page .field input[type="password"],
html body .page-wrapper .b2b-register-page .field select {
    width: 100% !important;
    padding: 12px 16px !important;
    min-height: 48px;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background-color: #fff;
    color: #1f2937;
    line-height: 1.5;
}

/* =============================================
   FOCUS STATES — Override awa-master & awa-palette-global red focus
   ============================================= */
html body .page-wrapper .b2b-register-page .field .input-text:focus,
html body .page-wrapper .b2b-register-page .field input[type="text"]:focus,
html body .page-wrapper .b2b-register-page .field input[type="email"]:focus,
html body .page-wrapper .b2b-register-page .field input[type="tel"]:focus,
html body .page-wrapper .b2b-register-page .field input[type="password"]:focus,
html body .page-wrapper .b2b-register-page .field select:focus {
    border-color: var(--b2b-reg-ayo-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgb(183 51 55 / 12%) !important;
}

html body .page-wrapper .b2b-register-page .field .input-text:focus-visible,
html body .page-wrapper .b2b-register-page .field input:focus-visible,
html body .page-wrapper .b2b-register-page .field select:focus-visible {
    outline: 2px solid var(--b2b-reg-ayo-primary) !important;
    outline-offset: 2px;
}

html body .page-wrapper .b2b-register-page .field .input-text::placeholder {
    color: #9ca3af;
}

.b2b-register-page .field .note {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.4;
}

/* =============================================
   CNPJ STATUS
   ============================================= */
.b2b-register-page .cnpj-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.b2b-register-page .cnpj-status.status-loading {
    background: #f3f4f6;
}

.b2b-register-page .cnpj-status.status-success {
    background: #ecfdf5;
}

.b2b-register-page .cnpj-status.status-error {
    background: #fef2f2;
}

.b2b-register-page .cnpj-status.valid::after {
    content: '✓';
    color: #10b981;
    font-size: 18px;
}

.b2b-register-page .cnpj-status.invalid::after {
    content: '✗';
    color: #dc2626;
    font-size: 18px;
}

/* =============================================
   PASSWORD STRENGTH
   ============================================= */
.b2b-register-page .password-strength-meter {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.b2b-register-page .password-strength-meter::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

/* =============================================
   TERMS SECTION
   ============================================= */
html body .page-wrapper .b2b-register-page .terms-section {
    border-bottom: none;
    padding-bottom: 0;
}

html body .page-wrapper .b2b-register-page .terms-section .field.choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

html body .page-wrapper .b2b-register-page .terms-section .checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

html body .page-wrapper .b2b-register-page .terms-section .label {
    margin: 0;
    font-weight: normal;
    font-size: 14px;
    color: #4b5563;
}

html body .page-wrapper .b2b-register-page .terms-section .label a {
    color: var(--b2b-reg-ayo-primary) !important;
    text-decoration: none;
}

html body .page-wrapper .b2b-register-page .terms-section .label a:hover {
    text-decoration: underline;
}

/* =============================================
   SUBMIT BUTTON — Override awa-palette-global.css red !important
   ============================================= */
html body .page-wrapper .b2b-register-page .actions-toolbar {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}

/* Neutralize legacy floats/widths from theme/Magento toolbar rules */
html body .page-wrapper .b2b-register-page .actions-toolbar > .primary,
html body .page-wrapper .b2b-register-page .actions-toolbar > .secondary {
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
    min-width: 0;
}

html body .page-wrapper .b2b-register-page .actions-toolbar .primary {
    margin-bottom: 15px;
}

html body .page-wrapper .b2b-register-page .actions-toolbar .actions-primary-note {
    margin-top: 10px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

html body .page-wrapper .b2b-register-page .actions-toolbar .action.primary,
html body .page-wrapper .b2b-register-page .actions-toolbar .primary .action {
    display: block !important;
    float: none !important;
    width: 100% !important;
    min-height: 52px;
    padding: 14px 20px !important;
    background: linear-gradient(135deg, var(--b2b-reg-ayo-primary) 0%, var(--b2b-reg-ayo-primary-dark) 100%) !important;
    color: #fff !important;
    border: none !important;
    border-color: transparent !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}

html body .page-wrapper .b2b-register-page .actions-toolbar .action.submit.primary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

html body .page-wrapper .b2b-register-page .actions-toolbar .action.submit.primary span::after {
    content: '\2192';
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
}

html body .page-wrapper .b2b-register-page .actions-toolbar .action.primary:hover,
html body .page-wrapper .b2b-register-page .actions-toolbar .primary .action:hover {
    background: linear-gradient(135deg, var(--b2b-reg-ayo-primary-dark) 0%, var(--b2b-reg-ayo-primary-darker) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(183 51 55 / 24%) !important;
}

html body .page-wrapper .b2b-register-page .actions-toolbar .action.submit.primary:hover span::after {
    transform: translateX(2px);
}

html body .page-wrapper .b2b-register-page .actions-toolbar .action.submit.primary:focus-visible {
    outline: 2px solid var(--b2b-reg-ayo-primary-dark) !important;
    outline-offset: 2px;
}

html body .page-wrapper .b2b-register-page .actions-toolbar .action.primary.is-loading,
html body .page-wrapper .b2b-register-page .actions-toolbar .action.primary:disabled {
    opacity: 0.85 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}

html body .page-wrapper .b2b-register-page .actions-toolbar .secondary {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    white-space: normal;
    overflow-wrap: anywhere;
}

html body .page-wrapper .b2b-register-page .actions-toolbar .secondary > span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.35;
}

html body .page-wrapper .b2b-register-page .actions-toolbar .action.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--b2b-reg-ayo-border-soft);
    border-radius: 8px;
    background: var(--b2b-reg-ayo-soft);
    color: var(--b2b-reg-ayo-primary-dark) !important;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

html body .page-wrapper .b2b-register-page .actions-toolbar .action.secondary:hover {
    background: var(--b2b-reg-ayo-soft-strong);
    border-color: var(--b2b-reg-ayo-soft-accent);
    color: var(--b2b-reg-ayo-primary-darker) !important;
    text-decoration: none;
}

html body .page-wrapper .b2b-register-page .actions-toolbar .action.secondary:focus-visible {
    outline: 2px solid var(--b2b-reg-ayo-primary-dark);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .b2b-register-page .b2b-register-progress {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    html body .page-wrapper .b2b-register-page .actions-toolbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 16px;
    }

    html body .page-wrapper .b2b-register-page .actions-toolbar > .primary {
        margin-bottom: 0;
        min-width: 0;
    }

    html body .page-wrapper .b2b-register-page .actions-toolbar > .secondary {
        text-align: right;
        padding-top: 2px;
        justify-self: end;
        max-width: 220px;
    }
}

/* =============================================
   VALIDATION ERRORS
   ============================================= */
html body .page-wrapper .b2b-register-page .mage-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
}

html body .page-wrapper .b2b-register-page .field._error .input-text,
html body .page-wrapper .b2b-register-page .field._error input {
    border-color: #dc2626 !important;
}

/* =============================================
   MESSAGE BOX — Override awa-master.css teal color
   ============================================= */
html body .page-wrapper .b2b-register-page .message.info {
    padding: 16px 20px !important;
    background: var(--b2b-reg-ayo-soft-strong) !important;
    border: 1px solid var(--b2b-reg-ayo-border-soft) !important;
    border-radius: 8px !important;
    color: var(--b2b-reg-ayo-primary-dark) !important;
    font-size: 14px;
}

/* =============================================
   CNPJ COMPANY DATA CARD
   ============================================= */
.b2b-register-page .cnpj-company-data .company-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.b2b-register-page .company-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.b2b-register-page .company-info-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 20px;
}

.b2b-register-page .cnae-profile-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
}

.b2b-register-page .cnae-profile-badge.cnae-direct {
    color: #166534;
    background: #dcfce7;
}

.b2b-register-page .cnae-profile-badge.cnae-adjacent {
    color: #92400e;
    background: #fef3c7;
}

.b2b-register-page .cnae-profile-badge.cnae-off_profile {
    color: #991b1b;
    background: #fee2e2;
}

.b2b-register-page .company-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.b2b-register-page .company-info-item .info-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.b2b-register-page .company-info-item .info-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.b2b-register-page .company-info-item .info-value.info-value-muted {
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
}

.b2b-register-page .company-info-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 16px;
    font-size: 13px;
    color: #92400e;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    line-height: 1.6;
    animation: alertPulse 0.6s ease-out;
}

.b2b-register-page .company-info-alert .alert-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}

.b2b-register-page .company-info-alert .alert-content {
    flex: 1;
}

.b2b-register-page .company-info-alert strong {
    color: #78350f;
}

@keyframes alertPulse {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* CNPJ Feedback */
.b2b-register-page .cnpj-feedback .feedback-loading {
    color: #6b7280;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.b2b-register-page .cnpj-feedback .feedback-success {
    color: #059669;
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.b2b-register-page .cnpj-feedback .feedback-error {
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    line-height: 1.4;
}

.b2b-register-page .cnpj-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-top-color: var(--b2b-reg-ayo-primary);
    border-radius: 50%;
    animation: cnpjSpin 0.6s linear infinite;
}

@keyframes cnpjSpin {
    to { transform: rotate(360deg); }
}

.b2b-register-page .cnpj-check {
    color: #10b981;
    font-size: 18px;
    font-weight: bold;
}

.b2b-register-page .cnpj-x {
    color: #dc2626;
    font-size: 18px;
    font-weight: bold;
}

/* Force-refresh retry button (inside error feedback) */
.b2b-register-page .cnpj-retry-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--b2b-reg-ayo-primary);
    background: var(--b2b-reg-ayo-soft);
    border: 1px solid var(--b2b-reg-ayo-soft-accent);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.b2b-register-page .cnpj-retry-btn:hover {
    background: var(--b2b-reg-ayo-soft-strong);
    border-color: var(--b2b-reg-ayo-border-soft);
}

/* Login link inside CNPJ duplicate error */
.b2b-register-page .cnpj-feedback .cnpj-login-link {
    display: inline-block;
    margin-top: 4px;
    margin-left: 4px;
    color: var(--b2b-reg-ayo-primary);
    font-weight: 600;
    text-decoration: underline;
    font-size: 13px;
}

.b2b-register-page .cnpj-feedback .cnpj-login-link:hover {
    color: var(--b2b-reg-ayo-primary-dark);
}

.b2b-register-page .cnpj-feedback .cnpj-login-link:focus-visible,
.b2b-register-page .cnpj-retry-btn:focus-visible {
    outline: 2px solid var(--b2b-reg-ayo-primary-dark);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Submit button disabled while CNPJ validation pending */
html body .page-wrapper .b2b-register-page .actions-toolbar .action.primary.cnpj-pending {
    opacity: 0.6 !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* Autofilled field indicator */
html body .page-wrapper .b2b-register-page .field input.autofilled {
    background-color: #f0fdf4 !important;
    border-color: #86efac !important;
}

/* CNPJ situação badges */
.b2b-register-page .cnpj-situacao {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.b2b-register-page .cnpj-situacao.situacao-ativa {
    background: #dcfce7;
    color: #166534;
}

.b2b-register-page .cnpj-situacao.situacao-baixada,
.b2b-register-page .cnpj-situacao.situacao-inapta,
.b2b-register-page .cnpj-situacao.situacao-suspensa {
    background: #fee2e2;
    color: #991b1b;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 920px) {
    html body .page-wrapper .b2b-register-page {
        max-width: 780px;
        padding: 24px 14px;
    }

    html body .page-wrapper .b2b-register-page .b2b-register-container {
        padding: 28px 24px;
    }
}

@media (max-width: 600px) {
    body.b2b-register-index .page.messages {
        padding: 0 8px;
    }

    html body .page-wrapper .b2b-register-page {
        padding: 14px 8px;
    }

    html body .page-wrapper .b2b-register-page .b2b-register-container {
        padding: 18px 12px;
        border-radius: 12px;
    }

    .b2b-register-page .field-row {
        flex-direction: column;
        gap: 0;
    }

    html body .page-wrapper .b2b-register-page .register-header .register-title {
        font-size: 20px;
        line-height: 1.2;
    }

    html body .page-wrapper .b2b-register-page .register-header .subtitle {
        font-size: 13px;
    }

    html body .page-wrapper .b2b-register-page .register-header .register-trust-note {
        font-size: 12px;
    }

    .b2b-register-page .register-meta {
        grid-template-columns: 1fr !important;
        gap: 8px;
        margin-top: 10px;
    }

    .b2b-register-page .register-meta__item {
        padding: 8px 10px;
    }

    .b2b-register-page .register-meta__item strong {
        font-size: 11px;
    }

    .b2b-register-page .register-meta__item span {
        font-size: 11px;
    }

    .b2b-register-page .b2b-register-progress {
        position: sticky;
        top: 8px;
        z-index: 12;
        display: flex !important;
        flex-wrap: nowrap;
        gap: 8px !important;
        margin: -2px 0 8px;
        padding: 6px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: rgb(255 255 255 / 96%);
        box-shadow: 0 4px 14px rgb(15 23 42 / 6%);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -ms-overflow-style: none;
        overscroll-behavior-x: contain;
    }

    .b2b-register-page .b2b-register-progress::-webkit-scrollbar {
        display: none;
    }

    .b2b-register-page .progress-step {
        flex: 0 0 auto;
        min-width: 106px;
        max-width: 150px;
        min-height: 36px;
        padding: 7px 8px;
        font-size: 11px;
        gap: 6px;
        white-space: normal;
        align-items: center;
        scroll-snap-align: start;
    }

    .b2b-register-page .progress-step__num {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .b2b-register-page .b2b-benefits-toggle {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "label icon"
            "meta icon";
        align-items: center;
        gap: 4px 10px;
        margin: -4px 0 10px;
        padding: 12px 14px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        color: #1f2937;
        text-align: left;
        appearance: none;
        font: inherit;
        box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
        cursor: pointer;
    }

    .b2b-register-page .b2b-benefits-toggle__label {
        grid-area: label;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.25;
    }

    .b2b-register-page .b2b-benefits-toggle__meta {
        grid-area: meta;
        font-size: 11px;
        color: #64748b;
        line-height: 1.25;
    }

    .b2b-register-page .b2b-benefits-toggle__icon {
        grid-area: icon;
        width: 20px;
        height: 20px;
        border-radius: 999px;
        border: 1px solid #e5e7eb;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--b2b-reg-ayo-primary-dark);
        background: #fff;
    }

    .b2b-register-page .b2b-benefits-toggle__icon::before {
        content: '';
        width: 7px;
        height: 7px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg) translateY(-1px);
        transition: transform 0.2s ease;
    }

    .b2b-register-page .b2b-benefits-toggle[aria-expanded="true"] {
        border-color: var(--b2b-reg-ayo-border-soft);
        background: linear-gradient(180deg, #fff, #fff7f7);
    }

    .b2b-register-page .b2b-benefits-toggle[aria-expanded="true"] .b2b-benefits-toggle__icon::before {
        transform: rotate(-135deg) translate(-1px, -1px);
    }

    .b2b-register-page .b2b-benefits-toggle:focus-visible {
        outline: 2px solid var(--b2b-reg-ayo-primary-dark);
        outline-offset: 2px;
    }

    .b2b-register-page .b2b-benefits {
        padding: 16px;
        gap: 12px;
    }

    .b2b-register-page .b2b-benefits {
        grid-template-columns: 1fr;
    }

    .b2b-register-page .benefit-item {
        gap: 12px;
        padding: 10px;
    }

    .b2b-register-page .benefit-icon {
        width: 48px;
        height: 48px;
    }

    html body .page-wrapper .b2b-register-page .field .input-text,
    html body .page-wrapper .b2b-register-page .field input[type="text"],
    html body .page-wrapper .b2b-register-page .field input[type="email"],
    html body .page-wrapper .b2b-register-page .field input[type="tel"],
    html body .page-wrapper .b2b-register-page .field input[type="password"],
    html body .page-wrapper .b2b-register-page .field select {
        font-size: 16px !important;
        min-height: 46px;
    }

    .b2b-register-page .b2b-register-password-wrap .input-text {
        padding-right: 88px !important;
    }

    .b2b-register-page .b2b-register-password-toggle {
        min-height: 32px;
        padding: 0 9px;
        font-size: 11px;
    }

    .b2b-register-page .company-info-grid {
        grid-template-columns: 1fr;
    }

    html body .page-wrapper .b2b-register-page .form-section {
        padding: 14px 12px 12px;
        border-radius: 10px;
    }

    html body .page-wrapper .b2b-register-page .form-section .form-section__heading {
        margin-bottom: 10px;
    }

    html body .page-wrapper .b2b-register-page .form-section .form-section__toggle {
        font-size: 16px;
        min-height: 40px;
        padding: 2px 0;
        cursor: pointer;
    }

    html body .page-wrapper .b2b-register-page .form-section .form-section__toggle::before {
        width: 24px;
        height: 24px;
        font-size: 11px;
        box-shadow: 0 2px 8px rgb(183 51 55 / 18%);
    }

    html body .page-wrapper .b2b-register-page .form-section .form-section__toggle-icon {
        display: inline-flex;
    }

    html body .page-wrapper .b2b-register-page .form-section .form-section__toggle[aria-expanded="true"] .form-section__toggle-icon::before {
        transform: rotate(-135deg) translate(-1px, -1px);
    }

    html body .page-wrapper .b2b-register-page .form-section.is-collapsed {
        padding-bottom: 8px;
    }

    html body .page-wrapper .b2b-register-page .form-section.is-collapsed .form-section__heading {
        margin-bottom: 0;
    }

    html body .page-wrapper .b2b-register-page .form-section .form-section__body {
        overflow: hidden;
    }

    html body .page-wrapper .b2b-register-page .actions-toolbar {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
    }

    html body .page-wrapper .b2b-register-page .actions-toolbar > .primary,
    html body .page-wrapper .b2b-register-page .actions-toolbar > .secondary {
        width: 100% !important;
        max-width: none;
        text-align: center;
    }

    html body .page-wrapper .b2b-register-page .actions-toolbar .primary {
        margin-bottom: 0;
    }

    html body .page-wrapper .b2b-register-page .actions-toolbar .secondary > span {
        margin-bottom: 6px;
        letter-spacing: 0.03em;
    }

    html body .page-wrapper .b2b-register-page .actions-toolbar .action.secondary {
        width: 100%;
    }
}

@media (max-width: 420px) {
    html body .page-wrapper .b2b-register-page {
        padding: 12px 6px;
    }

    html body .page-wrapper .b2b-register-page .b2b-register-container {
        padding: 16px 10px;
    }

    .b2b-register-page .b2b-register-progress {
        top: 6px;
        padding: 5px;
    }

    .b2b-register-page .progress-step {
        min-height: 34px;
        font-size: 10px;
        padding: 6px 7px;
        min-width: 92px;
        max-width: 128px;
    }

    .b2b-register-page .progress-step__num {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    .b2b-register-page .b2b-benefits-toggle {
        padding: 10px 12px;
    }

    .b2b-register-page .b2b-benefits-toggle__label {
        font-size: 12px;
    }

    .b2b-register-page .b2b-benefits-toggle__meta {
        font-size: 10px;
    }
}

/* Override awa-bugfixes mobile inline-flex on submit button */
@media (max-width: 992px) {
    html body .page-wrapper .b2b-register-page .actions-toolbar .action.primary,
    html body .page-wrapper .b2b-register-page .actions-toolbar .primary .action,
    html body .page-wrapper .b2b-register-page button[type="submit"].action.primary {
        display: block !important;
        width: 100% !important;
        min-height: 52px;
    }
}

/* =============================================
   ERP EMAIL VERIFICATION ALERT
   ============================================= */
html body .page-wrapper .b2b-register-page .erp-email-alert {
    margin-top: 8px;
}
html body .page-wrapper .b2b-register-page .erp-email-badge {
    margin-top: 8px;
}
html body .page-wrapper .b2b-register-page .erp-email-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #f59e0b;
    background: #fffbeb;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}
html body .page-wrapper .b2b-register-page .erp-email-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}
html body .page-wrapper .b2b-register-page .erp-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
html body .page-wrapper .b2b-register-page .erp-alert-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}
html body .page-wrapper .b2b-register-page .erp-alert-content {
    flex: 1;
}
html body .page-wrapper .b2b-register-page .erp-alert-content strong {
    font-weight: 600;
}
html body .page-wrapper .b2b-register-page .erp-alert-content small {
    opacity: 0.8;
    font-size: 12px;
}
html body .page-wrapper .b2b-register-page .erp-alert-info {
    background: #e8f4fd;
    border: 1px solid #b3d9f2;
    color: #1a5276;
}
html body .page-wrapper .b2b-register-page .erp-alert-success {
    background: #e8f8e8;
    border: 1px solid #a3d9a3;
    color: #1e6e1e;
}
html body .page-wrapper .b2b-register-page .erp-alert-warning {
    background: #fff8e1;
    border: 1px solid #f0d060;
    color: #7a5d00;
}

/* =============================================
   EMAIL CHECK ALERT (APOS CONFIRMAR SENHA)
   ============================================= */
html body .page-wrapper .b2b-register-page .email-check-alert {
    margin-top: 4px;
}

html body .page-wrapper .b2b-register-page .email-check-alert-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #7c2d12;
    font-size: 13px;
    line-height: 1.45;
}

html body .page-wrapper .b2b-register-page .email-check-alert-icon {
    font-size: 18px;
    line-height: 1;
    margin-top: 1px;
    flex-shrink: 0;
}

html body .page-wrapper .b2b-register-page .email-check-alert-content {
    flex: 1;
}

@media (prefers-reduced-motion: reduce) {
    .b2b-register-page .benefit-item,
    .b2b-register-page .benefit-icon,
    .b2b-register-page .benefit-icon::before,
    .b2b-register-page .benefit-icon svg,
    html body .page-wrapper .b2b-register-page .field .input-text,
    html body .page-wrapper .b2b-register-page .field input[type="text"],
    html body .page-wrapper .b2b-register-page .field input[type="email"],
    html body .page-wrapper .b2b-register-page .field input[type="tel"],
    html body .page-wrapper .b2b-register-page .field input[type="password"],
    html body .page-wrapper .b2b-register-page .field select,
    html body .page-wrapper .b2b-register-page .actions-toolbar .action.primary,
    html body .page-wrapper .b2b-register-page .actions-toolbar .action.submit.primary span::after,
    html body .page-wrapper .b2b-register-page .actions-toolbar .action.secondary,
    .b2b-register-page .cnpj-retry-btn,
    .b2b-register-page .company-info-alert {
        animation: none !important;
        transition: none !important;
    }

    .b2b-register-page .benefit-item,
    .b2b-register-page .benefit-item:hover {
        opacity: 1;
        transform: none;
    }

    .b2b-register-page .benefit-item:hover .benefit-icon,
    html body .page-wrapper .b2b-register-page .actions-toolbar .action.primary:hover {
        transform: none;
    }
}
