/**
 * Novasis B2B Modern Frontend Styles
 * Premium B2B Dealership Application Page
 * 
 * @package Novasis_B2B
 * @since 1.0.1
 */

/* =============================================
   CSS Variables for Consistent Theming
   ============================================= */
:root {
    --b2b-primary: #ed1c25;
    --b2b-primary-dark: #b91419;
    --b2b-primary-light: #5BA3D0;
    --b2b-secondary: #64748b;
    --b2b-success: #10b981;
    --b2b-warning: #f59e0b;
    --b2b-danger: #ef4444;
    --b2b-white: #ffffff;
    --b2b-gray-50: #f8fafc;
    --b2b-gray-100: #f1f5f9;
    --b2b-gray-200: #e2e8f0;
    --b2b-gray-300: #cbd5e1;
    --b2b-gray-400: #94a3b8;
    --b2b-gray-500: #64748b;
    --b2b-gray-600: #475569;
    --b2b-gray-700: #334155;
    --b2b-gray-800: #1e293b;
    --b2b-gray-900: #0f172a;
    --b2b-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --b2b-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --b2b-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --b2b-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --b2b-radius-sm: 0.375rem;
    --b2b-radius-md: 0.5rem;
    --b2b-radius-lg: 0.75rem;
    --b2b-radius-xl: 1rem;
}

/* =============================================
   Modern B2B Container Layout
   ============================================= */
.novasis-b2b-modern-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background: var(--b2b-white);
}

/* =============================================
   Form Column Styles
   ============================================= */
.b2b-form-column {
    background: var(--b2b-white);
    border-radius: var(--b2b-radius-xl);
    box-shadow: var(--b2b-shadow-xl);
    padding: 3rem;
    width: 100%;
    max-width: 900px;
    height: fit-content;
}

.b2b-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--b2b-gray-200);
}

.b2b-main-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--b2b-gray-900);
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.b2b-subtitle {
    font-size: 1.125rem;
    color: var(--b2b-gray-600);
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

/* =============================================
   Progress Bar Styles
   ============================================= */
.b2b-progress-container {
    margin-bottom: 1.5rem;
}

.b2b-progress-bar {
    width: 100%;
    height: 0.5rem;
    background-color: var(--b2b-gray-200);
    border-radius: var(--b2b-radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--b2b-primary) 0%, var(--b2b-primary-light) 100%);
    border-radius: var(--b2b-radius-lg);
    width: 50%;
    transition: width 0.4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    position: relative;
}

.step {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    background-color: var(--b2b-gray-200);
    color: var(--b2b-gray-500);
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.step.active {
    background-color: var(--b2b-primary);
    color: var(--b2b-white);
    box-shadow: 0 0 0 4px rgb(37 99 235 / 0.1);
}

.step.completed {
    background-color: var(--b2b-success);
    color: var(--b2b-white);
}

.progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--b2b-gray-600);
    margin: 0;
    font-weight: 500;
}

/* =============================================
   Form Step Styles
   ============================================= */
.b2b-modern-form {
    position: relative;
}

.form-step {
    display: none;
}

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

.step-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--b2b-gray-900);
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--b2b-gray-200);
}

.step-subtitle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--b2b-gray-800);
    margin: 2rem 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--b2b-gray-200);
}

.step-icon {
    display: none;
}

/* =============================================
   Form Grid and Fields
   ============================================= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-field {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--b2b-gray-700);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    order: 1;
}

.required {
    color: var(--b2b-danger);
    margin-left: 0.25rem;
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--b2b-gray-200);
    border-radius: var(--b2b-radius-lg);
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: var(--b2b-white);
    box-sizing: border-box;
    order: 3;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    outline: none;
    border-color: var(--b2b-primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
    transform: translateY(-1px);
}

.field-input:hover,
.field-select:hover,
.field-textarea:hover {
    border-color: var(--b2b-gray-300);
}

.field-textarea {
    resize: vertical;
    min-height: 5rem;
}

.field-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: var(--b2b-gray-600);
    line-height: 1.4;
    order: 5;
    width: 100%;
}

.field-error {
    display: block;
    font-size: 0.75rem;
    color: var(--b2b-danger);
    margin-bottom: 0.5rem;
    min-height: 1rem;
    order: 2; /* Shows between label and input */
    width: 100%;
    position: relative;
}

/* =============================================
   Agreements Section
   ============================================= */
.agreements-section {
    background: var(--b2b-gray-50);
    border-radius: var(--b2b-radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--b2b-gray-200);
}

.agreement-item {
    margin: 1rem 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 1.25rem;
    width: 1.25rem;
    background-color: var(--b2b-white);
    border: 2px solid var(--b2b-gray-300);
    border-radius: var(--b2b-radius-sm);
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container:hover .checkmark {
    border-color: var(--b2b-primary);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--b2b-primary);
    border-color: var(--b2b-primary);
}

.checkmark:after {
    content: "✓";
    position: absolute;
    display: none;
    color: var(--b2b-white);
    font-size: 0.75rem;
    font-weight: 700;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--b2b-gray-600);
    line-height: 1.5;
}

/* =============================================
   Navigation Buttons
   ============================================= */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--b2b-gray-200);
}

.btn-next,
.btn-prev,
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--b2b-radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, var(--b2b-primary) 0%, var(--b2b-primary-dark) 100%);
    color: var(--b2b-white);
    margin-left: auto;
}

.btn-next:hover:not(:disabled),
.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--b2b-shadow-lg);
}

/* Disabled button state */
.btn-next:disabled,
.btn-next.btn-disabled,
.btn-submit:disabled,
.btn-submit.btn-disabled {
    background: var(--b2b-gray-300);
    color: var(--b2b-gray-500);
    border: none;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
    position: relative;
    pointer-events: auto; /* Allow mouse events for tooltip */
}

.btn-next:disabled:hover,
.btn-next.btn-disabled:hover,
.btn-submit:disabled:hover,
.btn-submit.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* JavaScript-based tooltip */
.b2b-tooltip {
    position: fixed !important;
    background: #1a202c !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    z-index: 999999 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}

.b2b-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a202c;
}

.btn-prev {
    background-color: var(--b2b-white);
    color: var(--b2b-gray-700);
    border: 2px solid var(--b2b-gray-200);
}

.btn-prev:hover {
    background-color: var(--b2b-gray-50);
    border-color: var(--b2b-gray-300);
}

.arrow-right,
.arrow-left,
.submit-icon {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.btn-next:hover .arrow-right {
    transform: translateX(2px);
}

.btn-prev:hover .arrow-left {
    transform: translateX(-2px);
}

/* =============================================
   Security Badge
   ============================================= */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--b2b-gray-50);
    border-radius: var(--b2b-radius-lg);
    border: 1px solid var(--b2b-gray-200);
    font-size: 0.875rem;
    color: var(--b2b-gray-600);
}

.security-icon {
    color: var(--b2b-success);
}

/* =============================================
   Benefits Column Styles
   ============================================= */
.b2b-benefits-column {
    background: var(--b2b-white);
    border-radius: var(--b2b-radius-xl);
    box-shadow: var(--b2b-shadow-lg);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.benefits-header {
    text-align: center;
    margin-bottom: 2rem;
}

.benefits-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--b2b-gray-900);
    margin: 0;
    line-height: 1.3;
}

/* =============================================
   Benefits Grid
   ============================================= */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.benefit-card {
    background: var(--b2b-gray-50);
    border-radius: var(--b2b-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--b2b-gray-100);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--b2b-shadow-lg);
    background: var(--b2b-white);
    border-color: var(--b2b-primary);
}

.benefit-icon-wrapper {
    margin-bottom: 1rem;
}

.benefit-icon {
    font-size: 2rem;
    display: block;
}

.benefit-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--b2b-gray-900);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

.benefit-description {
    font-size: 0.875rem;
    color: var(--b2b-gray-600);
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
}

/* =============================================
   Trust Stats
   ============================================= */
.trust-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--b2b-primary) 0%, var(--b2b-primary-dark) 100%);
    border-radius: var(--b2b-radius-lg);
    color: var(--b2b-white);
}

.stat-item {
    text-align: center;
    min-width: 80px;
    flex: 1;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    word-break: keep-all;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    line-height: 1.2;
    display: block;
    margin-top: 0.25rem;
}

.stat-separator {
    width: 1px;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* =============================================
   Testimonial
   ============================================= */
.testimonial {
    margin-bottom: 2rem;
    background: var(--b2b-gray-50);
    border-radius: var(--b2b-radius-lg);
    padding: 1.5rem;
    border-left: 4px solid var(--b2b-primary);
}

.testimonial-text {
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--b2b-gray-700);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--b2b-gray-900);
    font-size: 0.875rem;
}

.testimonial-author span {
    color: var(--b2b-gray-500);
    font-size: 0.8125rem;
    display: block;
}

/* =============================================
   Trust Badges
   ============================================= */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--b2b-gray-600);
}

.badge-icon {
    color: var(--b2b-success);
    font-size: 1rem;
}

/* =============================================
   Animations
   ============================================= */

/* =============================================
   Legacy B2B Components
   ============================================= */
.novasis-b2b-product-info {
    margin: 20px 0;
    padding: 20px;
    border-radius: var(--b2b-radius-lg);
    border-left: 5px solid var(--b2b-primary);
    background: var(--b2b-white);
    box-shadow: var(--b2b-shadow-sm);
}

.b2b-guest-info,
.b2b-regular-user-info,
.b2b-customer-info {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ed1c25 0%, #b91419 100%);
    padding: 25px;
    border-radius: var(--b2b-radius-lg);
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(41, 135, 191, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.b2b-guest-info::before,
.b2b-regular-user-info::before,
.b2b-customer-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.b2b-icon {
    font-size: 50px;
    margin-right: 25px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    position: relative;
    z-index: 1;
}

.b2b-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.b2b-content h4 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.b2b-content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.b2b-register-button,
.b2b-upgrade-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #ed1c25;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-register-button:hover,
.b2b-upgrade-button:hover {
    background: #ffffff;
    color: #b91419;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1024px) {
    .novasis-b2b-modern-container {
        padding: 1rem;
    }

    .b2b-form-column {
        padding: 2rem;
        max-width: 100%;
    }

    .b2b-guest-info,
    .b2b-regular-user-info,
    .b2b-customer-info {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .b2b-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .benefit-card {
        padding: 1.25rem;
        min-height: 160px;
    }

    .trust-stats {
        gap: 0.75rem;
        padding: 1.25rem 1rem;
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 70px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-separator {
        display: none;
    }
}

@media (max-width: 768px) {
    .novasis-b2b-modern-container {
        padding: 1rem;
    }

    .b2b-form-column {
        padding: 1.5rem;
        max-width: 100%;
    }

    .b2b-main-title {
        font-size: 1.875rem;
    }

    .b2b-subtitle {
        font-size: 1rem;
    }

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

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .benefit-card {
        padding: 1.5rem;
        min-height: 140px;
    }

    .benefit-title {
        font-size: 0.95rem;
    }

    .benefit-description {
        font-size: 0.8125rem;
    }

    .trust-stats {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .stat-item {
        padding: 0.5rem 0;
        min-width: auto;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-separator {
        display: none;
    }

    .step-navigation {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .btn-next,
    .btn-prev,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .novasis-b2b-modern-container {
        padding: 0.5rem;
    }

    .b2b-form-column {
        padding: 1rem;
        max-width: 100%;
    }

    .b2b-main-title {
        font-size: 1.5rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .benefits-title {
        font-size: 1.5rem;
    }

    .progress-steps {
        margin: 0 1rem;
    }

    .step {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }

    .trust-stats {
        padding: 0.875rem;
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.375rem 0;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .benefit-card {
        padding: 1.25rem;
        min-height: 120px;
    }

    .benefit-title {
        font-size: 0.9rem;
    }

    .benefit-description {
        font-size: 0.8rem;
    }
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
    .novasis-b2b-modern-container {
        grid-template-columns: 1fr;
        box-shadow: none;
        background: white;
    }
    
    .b2b-form-column,
    .b2b-benefits-column {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .btn-next,
    .btn-prev,
    .btn-submit {
        background: #000 !important;
        color: #fff !important;
    }
}

/* =============================================
   Loading States
   ============================================= */
.b2b-loading {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--b2b-gray-200);
    border-top: 2px solid var(--b2b-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================
   B2B Status Cards (Active & Pending)
   ============================================= */
.b2b-status-card {
    background: var(--b2b-white);
    border-radius: var(--b2b-radius-xl);
    padding: 4rem 3rem;
    box-shadow: var(--b2b-shadow-xl);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 0 auto;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.status-icon-wrapper {
    margin-bottom: 2rem;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto;
    animation: iconPulse 2s ease-in-out infinite;
}

.success-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--b2b-white);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.pending-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--b2b-white);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
}

.status-content {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.status-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--b2b-gray-900);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.status-subtitle {
    font-size: 1.125rem;
    color: var(--b2b-gray-600);
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.status-subtitle strong {
    color: var(--b2b-gray-900);
    font-weight: 600;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.badge-icon {
    font-size: 1.5rem;
}

/* Status Features */
.status-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--b2b-gray-50);
    border-radius: var(--b2b-radius-lg);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #ecfdf5;
    transform: translateX(5px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: var(--b2b-white);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-text {
    font-size: 0.9375rem;
    color: var(--b2b-gray-700);
    font-weight: 500;
}

/* Status Timeline (Pending) */
.status-timeline {
    margin: 2.5rem 0;
    text-align: left;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--b2b-gray-50);
    border-radius: var(--b2b-radius-lg);
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item.completed {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
}

.timeline-item.active {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    animation: pulse 2s ease-in-out infinite;
}

.timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--b2b-white);
    border-radius: 50%;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--b2b-shadow-sm);
}

.timeline-item.completed .timeline-icon {
    background: #10b981;
    color: var(--b2b-white);
}

.timeline-item.active .timeline-icon {
    background: #f59e0b;
    color: var(--b2b-white);
}

.timeline-content {
    flex: 1;
}

.timeline-content strong {
    display: block;
    font-size: 1rem;
    color: var(--b2b-gray-900);
    margin-bottom: 0.25rem;
}

.timeline-content span {
    font-size: 0.875rem;
    color: var(--b2b-gray-600);
    line-height: 1.5;
}

/* Status Info Box */
.status-info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: var(--b2b-radius-lg);
    border-left: 4px solid #3b82f6;
    margin: 2rem 0;
    text-align: left;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    font-size: 1rem;
    color: var(--b2b-gray-900);
    margin-bottom: 0.5rem;
}

.info-content p {
    font-size: 0.9375rem;
    color: var(--b2b-gray-700);
    line-height: 1.6;
    margin: 0;
}

/* Status Actions */
.status-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: var(--b2b-radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--b2b-shadow-md);
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--b2b-primary) 0%, var(--b2b-primary-dark) 100%);
    color: var(--b2b-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--b2b-shadow-lg);
    color: var(--b2b-white);
}

.btn-secondary {
    background: var(--b2b-white);
    color: var(--b2b-gray-700);
    border: 2px solid var(--b2b-gray-200);
}

.btn-secondary:hover {
    background: var(--b2b-gray-50);
    border-color: var(--b2b-gray-300);
    transform: translateY(-2px);
    color: var(--b2b-gray-900);
}

.btn-icon {
    font-size: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* Responsive Design for Status Cards */
@media (max-width: 768px) {
    .b2b-status-card {
        padding: 2rem 1.5rem;
    }

    .status-icon {
        width: 80px;
        height: 80px;
    }

    .status-icon svg {
        width: 48px;
        height: 48px;
    }

    .status-title {
        font-size: 1.5rem;
    }

    .status-subtitle {
        font-size: 1rem;
    }

    .status-features {
        grid-template-columns: 1fr;
    }

    .status-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .b2b-status-card {
        padding: 1.5rem 1rem;
    }

    .status-title {
        font-size: 1.25rem;
    }

    .timeline-item {
        padding: 1rem;
    }

    .timeline-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* =============================================
   Pending Application Page - Porto Child Integration
   ============================================= */
.b2b-pending-page {
    background: var(--bg-secondary, #f8fafc);
    padding: var(--space-3xl, 4rem) 0;
    min-height: 60vh;
}

.b2b-my-account-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md, 1rem);
}

/* Account Header with Porto Gradient */
.b2b-account-header {
    background: var(--primary-gradient, linear-gradient(135deg, #ed1c25 0%, #b91419 100%));
    padding: var(--space-2xl, 3rem);
    border-radius: var(--radius-xl, 1rem) var(--radius-xl, 1rem) 0 0;
    color: var(--bg-primary, #ffffff);
    margin-bottom: 0;
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

.b2b-account-greeting h1 {
    margin: 0 0 var(--space-sm, 0.5rem) 0;
    font-size: var(--text-3xl, 2.5rem);
    font-weight: var(--font-bold, 700);
    color: var(--bg-primary, #ffffff);
    line-height: var(--leading-tight, 1.25);
}

.b2b-account-greeting p {
    margin: 0;
    font-size: var(--text-base, 1rem);
    opacity: 0.95;
    color: var(--bg-primary, #ffffff);
    line-height: var(--leading-normal, 1.5);
}

.b2b-status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm, 0.5rem);
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-sm, 0.5rem) var(--space-lg, 1.5rem);
    border-radius: var(--radius-full, 9999px);
    font-size: var(--text-sm, 0.875rem);
    font-weight: var(--font-semibold, 600);
    margin-top: var(--space-md, 1rem);
    backdrop-filter: blur(10px);
}

/* Account Content */
.b2b-account-content {
    background: var(--bg-primary, #ffffff);
    border-radius: 0 0 var(--radius-xl, 1rem) var(--radius-xl, 1rem);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

/* Navigation Tabs */
.b2b-nav-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-primary, #e2e8f0);
    padding: 0 var(--space-2xl, 3rem);
    margin: 0;
    list-style: none;
    gap: var(--space-sm, 0.5rem);
}

.b2b-nav-tabs li {
    margin: 0;
}

.b2b-nav-tabs a {
    display: flex;
    align-items: center;
    gap: var(--space-sm, 0.5rem);
    padding: var(--space-lg, 1.5rem) var(--space-xl, 2rem);
    color: var(--text-tertiary, #64748b);
    text-decoration: none;
    font-weight: var(--font-semibold, 600);
    font-size: var(--text-base, 1rem);
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast, 150ms cubic-bezier(0.4, 0, 0.2, 1));
}

.b2b-nav-tabs a:hover {
    color: var(--primary, #ed1c25);
    background: var(--bg-hover, rgba(41, 135, 191, 0.05));
}

.b2b-nav-tabs a.active {
    color: var(--primary, #ed1c25);
    border-bottom-color: var(--primary, #ed1c25);
    background: var(--bg-hover, rgba(41, 135, 191, 0.05));
}

/* Tab Content */
.b2b-tab-content {
    padding: var(--space-2xl, 3rem);
}

/* Info Cards */
.b2b-info-card {
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-primary, #e2e8f0);
    border-radius: var(--radius-lg, 0.75rem);
    padding: var(--space-xl, 2rem);
    margin-bottom: var(--space-xl, 2rem);
}

.b2b-info-card h3 {
    margin: 0 0 var(--space-lg, 1.5rem) 0;
    font-size: var(--text-xl, 1.5rem);
    font-weight: var(--font-bold, 700);
    color: var(--text-primary, #1e293b);
    display: flex;
    align-items: center;
    gap: var(--space-sm, 0.5rem);
}

/* Info Table */
.b2b-info-table {
    width: 100%;
    border-collapse: collapse;
}

.b2b-info-table tr {
    border-bottom: 1px solid var(--border-secondary, #cbd5e1);
}

.b2b-info-table tr:last-child {
    border-bottom: none;
}

.b2b-info-table td {
    padding: var(--space-md, 1rem) 0;
}

.b2b-info-table td:first-child {
    color: var(--text-tertiary, #64748b);
    font-weight: var(--font-medium, 500);
    width: 35%;
}

.b2b-info-table td:last-child {
    color: var(--text-primary, #1e293b);
    font-weight: var(--font-semibold, 600);
}

/* Timeline */
.b2b-timeline {
    position: relative;
    padding-left: var(--space-2xl, 3rem);
}

.b2b-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary, #ed1c25) 0%, var(--border-primary, #e2e8f0) 100%);
}

.b2b-timeline-step {
    position: relative;
    margin-bottom: var(--space-xl, 2rem);
}

.b2b-timeline-step:last-child {
    margin-bottom: 0;
}

.b2b-timeline-icon {
    position: absolute;
    left: -40px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full, 9999px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-timeline-icon.completed {
    background: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2);
}

.b2b-timeline-icon.current {
    background: var(--primary, #ed1c25);
    box-shadow: 0 0 0 4px rgba(41, 135, 191, 0.2);
    animation: b2b-pulse 2s infinite;
}

.b2b-timeline-icon.pending {
    background: var(--border-primary, #e2e8f0);
}

@keyframes b2b-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(41, 135, 191, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(41, 135, 191, 0.4);
    }
}

.b2b-timeline-step h4 {
    margin: 0 0 var(--space-sm, 0.5rem) 0;
    font-size: var(--text-lg, 1.25rem);
    font-weight: var(--font-semibold, 600);
    color: var(--text-primary, #1e293b);
}

.b2b-timeline-step.current h4 {
    color: var(--primary, #ed1c25);
}

.b2b-timeline-step.pending h4 {
    color: var(--text-muted, #94a3b8);
}

.b2b-timeline-step p {
    margin: 0;
    color: var(--text-tertiary, #64748b);
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--leading-relaxed, 1.75);
}

/* Alert Box */
.b2b-alert {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
    padding: var(--space-lg, 1.5rem);
    border-radius: var(--radius-lg, 0.75rem);
    margin-bottom: var(--space-xl, 2rem);
}

.b2b-alert-icon {
    display: inline-block;
    margin-right: var(--space-sm, 0.5rem);
    font-size: var(--text-xl, 1.5rem);
}

.b2b-alert p {
    margin: 0;
    color: #0c5460;
    line-height: var(--leading-relaxed, 1.75);
}

/* Contact Cards */
.b2b-contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg, 1.5rem);
    margin-top: var(--space-lg, 1.5rem);
}

.b2b-contact-card {
    background: var(--bg-primary, #ffffff);
    border: 2px solid var(--border-primary, #e2e8f0);
    border-radius: var(--radius-lg, 0.75rem);
    padding: var(--space-xl, 2rem);
    text-align: center;
    transition: var(--transition-fast, 150ms cubic-bezier(0.4, 0, 0.2, 1));
}

.b2b-contact-card:hover {
    border-color: var(--primary, #ed1c25);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 136, 204, 0.15));
}

.b2b-contact-icon {
    width: 50px;
    height: 50px;
    background: #e7f3f8;
    border-radius: var(--radius-full, 9999px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md, 1rem);
    color: var(--primary, #ed1c25);
}

.b2b-contact-card h4 {
    margin: 0 0 var(--space-sm, 0.5rem) 0;
    font-size: var(--text-lg, 1.25rem);
    font-weight: var(--font-semibold, 600);
    color: var(--text-primary, #1e293b);
}

.b2b-contact-card a {
    color: var(--primary, #ed1c25);
    text-decoration: none;
    font-weight: var(--font-medium, 500);
    font-size: var(--text-sm, 0.875rem);
}

.b2b-contact-card a:hover {
    text-decoration: underline;
}

/* Logout Link */
.b2b-logout-link {
    text-align: center;
    padding: var(--space-xl, 2rem) 0;
}

.b2b-logout-link a {
    color: var(--text-tertiary, #64748b);
    text-decoration: none;
    font-size: var(--text-sm, 0.875rem);
    transition: color var(--transition-fast, 150ms);
}

.b2b-logout-link a:hover {
    color: var(--text-primary, #1e293b);
}

/* Rejected Application Styles */
.b2b-rejected-page .b2b-account-header.b2b-rejected-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.b2b-rejected-badge {
    background: rgba(255, 255, 255, 0.3) !important;
}

.b2b-alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    border-left-color: #dc3545;
}

.b2b-alert-danger p {
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .b2b-account-header {
        padding: var(--space-xl, 2rem);
    }

    .b2b-account-greeting h1 {
        font-size: var(--text-2xl, 2rem);
    }

    .b2b-nav-tabs {
        padding: 0 var(--space-lg, 1.5rem);
        flex-direction: column;
        gap: 0;
    }

    .b2b-nav-tabs a {
        border-bottom: 1px solid var(--border-primary, #e2e8f0);
        border-left: 3px solid transparent;
    }

    .b2b-nav-tabs a.active {
        border-bottom-color: var(--border-primary, #e2e8f0);
        border-left-color: var(--primary, #ed1c25);
    }

    .b2b-tab-content {
        padding: var(--space-lg, 1.5rem);
    }

    .b2b-info-card {
        padding: var(--space-lg, 1.5rem);
    }

    .b2b-contact-cards {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Password Field with Toggle & Strength Meter
   ============================================= */
.password-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    order: 3;
    width: 100%;
}

.password-field-wrapper .field-input {
    padding-right: 45px;
    order: unset; /* Remove order from password inputs to keep them in flow */
}

/* Force password visibility when type is changed to text */
#password[type="text"],
#password_confirm[type="text"] {
    -webkit-text-security: none !important;
    -moz-text-security: none !important;
    text-security: none !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--b2b-gray-500);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: auto;
}

.toggle-password:hover {
    color: var(--b2b-primary);
}

.toggle-password:focus {
    outline: none;
    color: var(--b2b-primary);
}

.toggle-password svg {
    display: block;
    pointer-events: none;
}

/* Password Inline Error */
.password-error-inline {
    color: #dc3545 !important;
    font-size: 13px;
    margin-left: 8px;
    font-weight: normal;
}

/* Password Confirm Inline Error */
.password-confirm-error-inline {
    color: #dc3545 !important;
    font-size: 13px;
    margin-left: 8px;
    font-weight: normal;
}

/* Password Rules Hint - Full Width */
.password-rules-hint {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 10px;
    margin-bottom: 5px;
    order: 4;
}

.password-strength-bar {
    width: 100%;
    height: 6px;
    background: var(--b2b-gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.password-strength-progress {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength-progress.strength-weak {
    width: 33.33%;
    background: var(--b2b-danger);
}

.password-strength-progress.strength-medium {
    width: 66.66%;
    background: var(--b2b-warning);
}

.password-strength-progress.strength-strong {
    width: 100%;
    background: var(--b2b-success);
}

.password-strength-text {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.password-strength-text.strength-weak {
    color: var(--b2b-danger);
}

.password-strength-text.strength-medium {
    color: var(--b2b-warning);
}

.password-strength-text.strength-strong {
    color: var(--b2b-success);
}

/* Empty state - hide meter when no password */
.password-strength-meter:empty,
.password-strength-meter.empty {
    display: none;
}