.login-flash-section {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    pointer-events: none;
}

.login-flash-section .alert_message {
    width: 100%;
    max-width: 28rem;
    margin: 0;
    pointer-events: auto;
}

.login-flash-section .custom-flash-success {
    width: 100% !important;
    margin-bottom: 0;
}

.login-container-div
{
    background:#F2F4F5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.login-container-inner
{
    width: 100%;
    max-width: 28rem;
    padding: 1.5rem;
}
.login-glovebox-title{
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #1E293B;
    line-height: 2.25rem;
    margin-top: 8px;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;
}
.login-glovebox-title-crm{
    font-size: 14px;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 1.5px;
    line-height: 1.25rem;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;
}
.login-logo{
    /* margin-bottom: 2.5rem; */
    text-align: center;
}
.login-logo img
{
    height: 160px;
    width: auto;
    max-width: 100%;
}
#forcelyLogOutMsg
{
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: .75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    font-size: 14px;
}
.remember-forgot-div
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.remember-forgot-div .remember-me-label
{
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}
.remember-forgot-div .remember-me-label input
{
    width: 1rem;
    height: 1rem;
    margin: 0 8px 0 0;
    cursor: pointer;
    accent-color: #00b36c;
}
.remember-forgot-div .remember-me-label span
{
    color: #4B5563;
    font-size: .875rem;
    line-height: 1.25rem;
}
.remember-forgot-div .forgot-password
{
    color: #00b36c;
    font-size: .875rem;
    line-height: 1.25rem;
    text-decoration: none;
}
#login-loader-btn{
    display: none; 
    background-color: #00b36c;
    border-color: #00b36c;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    height: 44px;
    padding: 0;
    margin-bottom: 20px;
    outline: none;
}
.login-footer{
    margin-top: 2.5rem; 
    text-align: center;
}
.login-footer .login-create-account-btn{
    margin-bottom: 1.5rem;
}
.login-footer .login-create-account-btn a{
    color:#00b36c; font-weight:400; 
    text-decoration: none;
    font-size: .875rem;
    line-height: 1.25rem;
}
.login-footer .login-copyright{
    color:#9CA3AF; font-size: .75rem;
    line-height: 1rem; margin: 0;
}
/* new login page related ticket 16001 */
.ui-input-control {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: #fafbfb !important;
    height: 100%;
    width: 100%;
    padding: 0 12px;
           font-size: .875rem;
        line-height: 1.25rem;
}
input::placeholder{
     font-size: 0.875rem;
        line-height: 1.25rem;
        color: #000;
} 
.ui-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: #f6f7f8;
    border-right: 1px solid #E2E8F0;
    flex-shrink: 0;
}
.ui-icon-box svg {
    width: 1.25rem;
}
.ui-input-group {
    display: flex;
    align-items: center;
    overflow: hidden;

    width: 100%;
    height: 48px;

    border: 1px solid #E2E8F0;
    border-radius: 6px;

    background: #fafbfb;

    transition: all .2s ease;
}

/* when input is focused */

.ui-input-control::placeholder {
    color: #94A3B8;
}

/* Modal overlay */
.ca-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ca-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal content */
.ca-modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 8px;
    padding: 32px 32px 24px 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    text-align: center;
}

.ca-modal-overlay.active .ca-modal-content {
    transform: scale(1);
}

/* Close button */
.ca-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #9CA3AF;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ca-modal-close:hover {
    color: #4B5563;
}

/* Icon */
.ca-modal-icon {
    width: 48px;
    height: 48px;
    background-color: #DCFCE7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}
.ca-modal-icon svg {
    color: #00b36c;
    width: 20px;
    height: 20px;
}

/* Typography */
.ca-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.ca-modal-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Pricing box */
.ca-pricing-box {
    background-color: #F0FDF4;
    border: 1px solid #DCFCE7;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
}
.ca-price-value {
    font-size: 28px;
    font-weight: 700;
    color: #00b36c;
    display: flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
}
.ca-price-period {
    font-size: 14px;
    color: #9CA3AF;
    font-weight: 500;
    margin-left: 2px;
}
.ca-price-includes {
    font-size: 13px;
    color: #6B7280;
    margin: 8px 0 12px 0;
}
.ca-price-additional {
    font-size: 12px;
    color: #374151;
    margin: 0;
}
.ca-price-additional span {
    color: #00b36c;
    font-weight: 600;
}

/* Features list */
.ca-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    text-align: left;
}
.ca-features-list li {
    font-size: 13px;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}
.ca-features-list li:last-child {
    margin-bottom: 0;
}
.ca-features-list li svg {
    width: 16px;
    height: 16px;
    color: #22c55e;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Actions */
.ca-btn-primary {
    background-color: #00b36c;
    color: white;
    font-weight: 500;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    width: 100%;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}
.ca-btn-primary:hover {
    background-color: #15803d;
    color: white;
    text-decoration: none;
}
.ca-btn-secondary {
    font-size: 13px;
    color: #9CA3AF;
    background: transparent;
    border: none;
    margin-top: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s;
}
.ca-btn-secondary:hover {
    color: #6B7280;
}
/* Setup Modal Specifics */
.ca-setup-content {
    text-align: left;
    max-width: 480px;
    padding: 32px;
}
.ca-setup-content .ca-modal-title {
    margin-bottom: 4px;
    font-size: 22px;
}
.ca-setup-content .ca-modal-subtitle {
    margin-bottom: 24px;
}
.ca-section-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    margin-top: 24px;
}
.ca-section-header svg {
    width: 18px;
    height: 18px;
    color: #00b36c;
    margin-right: 8px;
}
.ca-form-group {
    margin-bottom: 16px;
}
.ca-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.ca-form-control {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    color: #1F2937;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ca-form-control:focus {
    outline: none;
    border-color: #00b36c;
    box-shadow: 0 0 0 1px #00b36c;
}
.ca-form-control::placeholder {
    color: #9CA3AF;
}
.ca-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.ca-footer-text {
    font-size: 11px;
    color: #6B7280;
    text-align: center;
    margin: 24px 0 16px 0;
}
.ca-back-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #6B7280;
    text-decoration: none;
    margin-top: 16px;
    cursor: pointer;
}
.ca-back-link:hover {
    color: #374151;
}
:root {
    --primary-green: #00b36c;
    --light-green-bg: #f0fdf4;
    --border-color: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --pill-future: #f3f4f6;
    --pill-future-text: #94a3b8;
    --pill-completed: #dcfce7;
    --pill-completed-text: #00b36c;
    --white: #ffffff;
}

/* Sidebar and Navbar Fade effect */
.sidebar, .navbar--header, .navbar--nav, .navbar--search, .main-header {
    opacity: 0.4 !important;
    pointer-events: none !important;
    filter: grayscale(0.8);
    transition: all 0.3s ease;
}

body {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Layout Structure */
.onboarding-container {
    min-height: 100vh;
    background-color: var(--white);
    position: relative;
    z-index: 1000;
    margin-top: -60px; /* Offset if navbar is fixed */
}

/* Top Header Section */
.onboarding-header-strip {
    background-color: var(--light-green-bg);
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #dcfce7;
}

.onboarding-header-strip h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.onboarding-header-strip h1 span {
    color: var(--primary-green);
}

.onboarding-header-strip p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

.onboarding-header-strip p strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Stepper Section */
.stepper-container {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.stepper-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    background-color: var(--pill-future);
    color: var(--pill-future-text);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.step-pill i {
    font-size: 14px;
}

.step-pill.completed {
    background-color: var(--pill-completed);
    color: var(--pill-completed-text);
    border: 1px solid var(--pill-completed-text);
}

.step-pill.active {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 179, 108, 0.2);
    transform: scale(1.05);
}

.step-pill:not(.active):not(.completed) {
    background-color: #f1f5f9;
    color: #94a3b8;
    opacity: 0.6;
}

/* Progress Bar */
.progress-bar-wrapper {
    width: 100%;
    height: 4px;
    background-color: var(--pill-inactive);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 40px;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-green);
    width: 14.28%; /* 1/7 */
    transition: width 0.3s ease;
}

/* Main Content Card */
.onboarding-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    max-width: 1150px;
    margin: 0 auto 60px;
    padding: 50px;
}

.step-indicator {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.card-title-main {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.card-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.logo-upload-box {
    width: 180px;
    height: 180px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.logo-upload-box:hover {
    border-color: var(--primary-green);
    background-color: #f9fafb;
}

.logo-upload-box i {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.logo-upload-box span {
    font-size: 13px;
    color: var(--text-muted);
}

.form-fields-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.field-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-dark);
    transition: border-color 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.input-field::placeholder {
    color: #cbd5e1;
}

/* Communications Section */
.section-divider {
    margin-top: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.communications-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Override for Agency Details specific layout */
.agency-top-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer Buttons styles for standardized layout */
.onboarding-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-actions-right {
    display: flex;
    gap: 12px;
}

.btn-next, .btn-skip, .btn-back {
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-next {
    background-color: var(--primary-green);
    color: white;
}

.btn-next:hover {
    background-color: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.btn-skip {
    background-color: var(--white);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-skip:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: var(--text-dark);
}

.btn-back {
    background: transparent;
    color: var(--text-muted);
    padding: 12px 0;
    min-width: auto;
}

.btn-back:hover {
    color: var(--text-dark);
}

.btn-back i {
    margin-right: 8px;
}

.ca-form-control.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.ca-form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.ca-error-msg {
    color: #ff0000;
    font-size: 11px;
    margin-top: 2px;
    font-weight: 600;
}

.ca-modal-content {
    max-height: 90vh !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #00b36c #f1f5f9;
}

/* Custom scrollbar for webkit */
.ca-modal-content::-webkit-scrollbar {
    width: 6px;
}
.ca-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.ca-modal-content::-webkit-scrollbar-thumb {
    background: #00b36c;
    border-radius: 10px;
}

/* AMS Integration Step Styles */
.ams-integration-container {
    max-width: 1100px;
    margin: 0 auto;
}

.ams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.ams-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
}

.ams-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.ams-card.active {
    border-color: var(--primary-green);
    background-color: var(--light-green-bg);
    box-shadow: 0 0 0 1px var(--primary-green);
}

.ams-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.ams-card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.contacts-section {
    margin-top: 40px;
}

.contacts-header {
    margin-bottom: 24px;
}

.contacts-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contacts-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-method-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.contact-method-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.contact-icon-wrapper {
    width: 44px;
    height: 44px;
    background-color: #DCFCE7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-wrapper i {
    color: var(--primary-green);
    font-size: 18px;
}

.contact-card-content {
    flex-grow: 1;
}

.contact-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.contact-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .ams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .onboarding-card {
        padding: 30px 20px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ams-grid {
        grid-template-columns: 1fr;
    }
}

/* Final Polish for AMS Step */
.contact-method-card {
    min-height: 180px;
}

.ams-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.ams-grid {
    align-items: stretch;
}

.contacts-grid {
    align-items: stretch;
}

.onboarding-card.ams-step-card {
    padding: 40px;
}

.modal-non-blocking {
    pointer-events: none;
}
.modal-non-blocking .modal-dialog {
    pointer-events: auto;
}

/* Disable sidebar only when modal is open */
body.modal-open .stepper-pills {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(1);
}

.select2-max-height .select2-container {
    z-index: 100000 !important;
}

.select2-max-height .select2-results__options {
    max-height: 250px !important;
}

.pricing-card {
    background: #2b2b29;
    border-radius: 16px;
    padding: 24px;
    width: 520px;
    color: #fff;
    position: relative;
    max-height: 90vh !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
}

.muted {
    color: #bdbdbd;
}

.pill-btn {
    background: #1f1f1f;
    border: 1px solid #444;
    color: #fff;
    padding: 13px 40px;
    border-radius: 10px;
    cursor: pointer;
}

.pill-btn.active {
    background: #2f2f2f;
}

.price {
    font-size: 42px;
    font-weight: 700;
}

.green {
    color: #00B36C;
}
.discounted-percentage {
    background-color: #245e47;
    color: #00B36C;
    padding: 3px 8px 3px 8px;
    font-size: 11px;
    border-radius: 5px;
}

.feature {
    border-top: 1px solid #3a3a3a;
    padding-top: 10px;
    margin-top: 10px;
}

.check {
    color: #00B36C;
    margin-right: 8px;
}

.seat-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1f1f1f;
    padding: 3px 5px;
    border-radius: 8px;
}

.seat-btn {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    width: 32px;
    height: 24px;
    border-radius: 6px;
}

/* .billing-type-pills {
    margin-top: 25px;
} */

.onboarding-heading-bold {
    font-weight: 600;
}

#maybeLaterBtn {
    border-radius: 5px;
    background-color: #1f1f1f;
    border: 1px solid #444;
    color: #fff;
    cursor: pointer;
}

.billed-amount {
    font-size: 35px;
    font-weight: 600;
}
