
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body {
    font-family: heebo;
    background: #fff;
    padding: 0;
    margin: 0;
}

.app-root {
    width: 100%;
    height: 100%;
}

.login-page {
    width: 100%;
    min-height: 100vh; /* allow footer to sit below content without overlap */
    position: relative; /* Ensure the image stays within the page */
    overflow-x: hidden; /* Keep horizontal overflow hidden */
    overflow-y: auto; /* Allow vertical scrolling when content exceeds viewport */
    display: flex; /* stack main and footer */
    flex-direction: column;
}

.login-background-image {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image scales without stretching */
    transform-origin: center center; /* Ensures scaling is centered */
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    padding-top: 125px;
}

/* Responsive tuning for background scale */
@media (min-width: 1200px) {
    .login-background-image {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .login-background-image {
        transform: scale(1.15);
    }
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 0;
    flex: 1 0 auto;
    flex-direction: column;
}

.auth-content-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 27px;
}

.auth-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.auth-content-with-icon {
    width: 464px;
    height: 464px;
    background-color: white;
    color: #344054;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    margin: 40px auto;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    border-radius: 12px;
    position: relative;
    box-shadow: 0px 6px 10px 2px #10182814, 0px 2px 4px 0px #10182814, 0px 0px 41px 2px #1018280F;
}

.signup-page .auth-content-with-icon {
    padding: 0px 32px 40px 32px;
}

.login-page .auth-content-with-icon {
    padding: 0px 32px 40px 32px;
}

.company-profile-page .auth-content-with-icon {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0px 0px 40px 0px;
    margin: 40px auto 10px;
    width: 493px;
}

/* Select2 + Inter font + 3-row dropdown */
:root { --app-font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.form-select.jobtitle-select { font-family: var(--app-font) !important; font-size: 14px !important; line-height: 1 !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: var(--app-font) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #344054 !important;
    padding-top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    font-family: var(--app-font) !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #98A2B3;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding-left: 4px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
}
.select2-container--default .select2-results__option { font-family: var(--app-font) !important; font-size: 14px !important; line-height: 28px !important; padding: 4px 10px !important; }

/* Align selection box height and look like text inputs */
.select2-container .select2-selection--single {
    min-height: 40px;
    height: auto;
    border: 1px solid #ced4da;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding-left: 4px;
    padding-right: 12px;
    box-sizing: border-box;
    background-color: #fff;
}
/* Scoped styles to show and position the clear (×) inside the selection box */
.jobtitle-selection.select2-selection--single { position: relative; }
.jobtitle-selection.select2-selection--single .select2-selection__clear {
    display: none !important; /* hidden by default */
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    color: #344054;
    opacity: 0.8;
    font-weight: 600;
    cursor: pointer;
}
.jobtitle-selection.select2-selection--single.has-value .select2-selection__clear { display: inline-block !important; }
.jobtitle-selection.select2-selection--single.has-value { padding-right: 36px !important; }
.jobtitle-selection.select2-selection--single .select2-selection__clear:hover { opacity: 1; }
.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container .select2-selection--single .select2-selection__placeholder {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    text-align: left;
}

/* Ensure Select2 text matches .form-control exactly and isn't transformed/tilted */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-selection--single .select2-selection__rendered span {
    font-family: Inter, var(--app-font) !important;
    font-size: 14px !important;
    line-height: 20px !important;
    transform: none !important;
    -webkit-transform: none !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding-left: 8px !important;
    color: #344054 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered > * {
    margin: 0 !important;
    padding: 0 !important;
}
.select2-container .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 8px;
    display: flex;
    align-items: center;
    top: 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #98A2B3;
    opacity: 1;
}

@media (max-width: 480px) {
    .select2-container .select2-selection--single {
        height: 40px;
        padding: 0 10px;
    }
}

.creating-workspace-page .select2-container {
    margin-left: 0;
    width: 100% !important;
    display: block;
}

.company-profile-page .select2-container--default .select2-selection--single .select2-selection__rendered,
.company-profile-page .select2-container--default .select2-selection--single .select2-selection__placeholder {
    padding-left: 4px !important;
    padding-right: 0 !important;
    text-decoration: none !important;
    color: #344054 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.creating-workspace-page .select2-container--default .select2-selection--single .select2-selection__rendered,
.creating-workspace-page .select2-container--default .select2-selection--single .select2-selection__placeholder {
    padding-left: 4px !important;
    padding-right: 0 !important;
    text-decoration: none !important;
    color: #344054 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered *,
.select2-container--default .select2-selection--single .select2-selection__placeholder * {
    text-decoration: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding-left: 4px !important;
    line-height: 20px !important;
    margin: 0 !important;
    color: #344054 !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered > * {
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

/* Remove blue focus highlight for Select2 single select */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
    border-color: #ced4da;
    box-shadow: none;
    outline: 0;
}
/* Also when dropdown is open */
.select2-container--open .select2-selection--single {
    border-color: #ced4da;
    box-shadow: none;
}

/* Remove gray header/footer and extra paddings from dropdown */
.select2-container--default .select2-search--dropdown { display: none; }
.select2-dropdown { padding: 0; border-color: #d0d5dd; }
.select2-results { padding: 0; }
.select2-container--default .select2-results > .select2-results__options { padding: 0; }
.select2-container--default .select2-results__option[role="group"] { padding: 0; }

/* Hide the clear (×) button added by Select2 when allowClear is enabled */
.select2-container--default .select2-selection--single .select2-selection__clear {
    display: none !important;
}

/* Ensure empty options in the results list occupy the same spacing as other items */
.select2-container--default .select2-results__option:empty::before {
    content: '\00a0'; /* non-breaking space */
    display: inline-block;
    width: 100%;
}

/* Make all Select2 dropdown text padding consistent with the job title select
   so the selected value, placeholder and result list items align the same. */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    padding-left: 16px !important;
}

.select2-container--default .select2-results__option {
    padding: 6px 16px !important; /* keep top/bottom spacing, align left with selection */
}


/* Limit dropdown panel height to exactly 3 items and enable scroll */
.select2-container--default .select2-results > .select2-results__options {
    max-height: calc(3 * (28px + 8px)) !important; /* exactly 3 rows with increased font/spacing */
    overflow-y: auto;
}

/* Configure page buttons */
.configure-btn-row { margin-bottom: 6px; }
.configure-btn { width: 400px; }

/* Company Profile Wizard */
.company-profile-page .auth-content-container { 
    padding-top: 30px; 
    align-items: center; 
    position: relative; 
}

.wizard-container { 
    position: relative; 
    width: 100%; 
    max-width: 780px; 
    margin: 0 auto; 
    padding-top: 32px; 
}

.wizard-progress {
    display: flex; 
    gap: 8px; 
    position: absolute; 
    top: -6px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 400px; 
    align-items: center; 
}

.wizard-progress-bar {
    width: 90px; 
    height: 6px; 
    background: #e4e7ec; 
    border-radius: 4px; 
    transition: background 0.3s; 
    flex: 0 0 90px; 
}

.wizard-progress-bar.active { 
    background: #004050; 
}

.wizard-back, 
.wizard-back-step { 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 0; 
    margin-right: 8px; 
}

.wizard-step {
    display: none;
    position: relative;
    flex-direction: column;
    align-items: center;
}

.wizard-step.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.wizard-step[data-step="1"] #CompanyName {
    width: 400px !important;
    height: 40px !important;
    box-sizing: border-box;
    border-radius: 8px;
}

.wizard-step[data-step="1"] #step1-next-btn {
    width: 400px !important;
    height: 40px !important;
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.wizard-question { 
    font-size: 24px; 
    font-weight: 600; 
    height: 32px;
    margin-bottom: 16px; 
    text-align: center; 
    color: #101828; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.chip-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 16px; 
    margin-bottom: 24px; 
    justify-content: center; 
}

.wizard-step[data-step="2"] .chip-grid { 
    width: 400px; 
    max-height: 152px; 
    margin: 0 auto 24px; 
}

.wizard-step[data-step="3"] .chip-grid { 
    width: 400px; 
    max-height: 152px; 
    margin: 0 auto 24px; 
}

.wizard-step[data-step="4"] .chip-grid { 
    width: 464px; 
    max-height: 208px; 
    margin: 0 auto 24px; 
}

.chip-button { 
    padding: 10px 12px; 
    border: 1px solid #d0d5dd; 
    border-radius: 8px; 
    background: white; 
    cursor: pointer; 
    text-align: center; 
    font-size: 14px; 
    font-family: Inter, var(--app-font); 
    font-weight: 500; 
    line-height: 20px; 
    transition: all 0.2s; 
    color: #344054; 
    min-height: 40px; 
    width: auto; 
    white-space: nowrap; 
}

.chip-button:hover { 
    border-color: #004050; 
    background: #f9fafb; 
}

.chip-button.selected { 
    background: #F2F5F6; 
    border: 1px solid #004050; 
}

.other-input-container { 
    display: none; 
    width: 100%; 
    margin-top: 8px; 
}

.other-input-container.show { 
    display: grid; 
}

.other-text-input { 
    width: 400px !important; 
    max-width: 400px !important;
    height: 40px !important; 
    padding: 10px 14px; 
    border: 1px solid #d0d5dd; 
    border-radius: 8px; 
    font-size: 14px; 
    font-family: Inter, var(--app-font); 
    color: #344054; 
    margin-bottom: 16px; 
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.other-text-input:focus { 
    border-color: #004050; 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(0, 64, 80, 0.1); 
}

.other-next-button { 
    width: 400px !important; 
    max-width: 400px !important;
    height: 40px !important; 
    padding: 10px 14px; 
    background: #004050; 
    color: white; 
    border: none; 
    border-radius: 6px; 
    font-size: 14px; 
    font-family: Inter, var(--app-font); 
    font-weight: 600; 
    cursor: pointer; 
    transition: background 0.2s; 
    box-shadow: 0px 1px 2px 0px #1018280D; 
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.other-next-button:hover { 
    background: #002837; 
}

.other-next-button:disabled { 
    background: #809FA7; 
    cursor: not-allowed; 
    box-shadow: 0px 1px 2px 0px #1018280D; 
}

.other-next-button:disabled:hover { 
    background: #809FA7; 
}

.signin-button:disabled {
    background: #809FA7;
    cursor: not-allowed;
    box-shadow: 0px 1px 2px 0px #1018280D;
}

.signin-button:disabled:hover {
    background: #809FA7;
}

.progress-page .auth-content-with-icon {
    padding: 0px 32px 80px 32px;
}

.error-page .auth-content-with-icon {
    padding: 0px 32px 48px 32px;
}

.creating-workspace-page .auth-content-with-icon {
    padding: 0px 32px 18px 32px;
}

.boldsales-header {
    position: fixed;
    top: 32px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 182px;
    height: 32px;
    opacity: 1;
    transform: rotate(0deg);
}

.boldsales-header img {
    width: 182px;
    height: 32px;
}

.welcome-msg-container {
    text-align: center;
    margin: 0 0;
}

.welcome-msg-container h5 {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #101828;
    margin-bottom: 0px;
}

.welcome-msg-container small {
    color: #667085;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    margin-top: 32px;
}

.welcome-msg-container p {
    color: #475467;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    margin-top: 12px;
    margin-bottom: 0px;
}

.welcome-msg-center-align {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-illustration {
    margin-top: 52px;
    margin-bottom: 32px;
    margin-left: 110px;
}

.direction-illustration {
    margin-top: 57px;
    margin-bottom: 26.56px;
    margin-left: 48px;
}

.auth-content-with-icon.has-error {
    padding: 0px 32px 26px 32px;
}
.auth-content-with-icon.has-error .direction-illustration {
    margin-bottom: 16px;
}
.auth-content-with-icon.has-error .login-form .text-danger {
    margin-top: 6px;
    display: block;
}

.access-illustration {
    margin-top: 50px;
    margin-bottom: 24px;
}

.factory-illustration {
    margin-top: 92px;
    margin-left: 40px;
}

.content-section {
    width: 100%;
}

.button-container {
    width: 400px;
    height: 40px;
    display: flex;
    gap: 8px;
    opacity: 1;
    transform: rotate(0deg);
    margin-bottom: 16px;
    flex-direction: row;
    justify-content: space-between
}

.external-btn {
    width: 190px;
    height: 40px;
    display:flex;
    border-radius: 6px; /* 'radius-md' interpreted as medium */
    border: 1px solid #ccc;
    background-color: transparent;
    opacity: 1;
    padding: 0;
    display: inline-block;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-align: center;
    gap: 4px;
    font-weight: bold;
    transition: box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 8px;
    padding: 0 14px;
    color: #475467;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}

.external-btn:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}
.social-image-left {
    display: flex;
    align-items: center;
}

.social-login-text-overflow {
    display: block;
    padding-bottom: 2px; /* Visual correction */
}

.provider-icon img {
    height: 20px;
    width: 20px;
    align-items: center;
}

.provider-text b {
    color: #344054;
    font-family: Inter;
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    margin: 0;
    align-items: center;
    text-align: center;
}


.text-center-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 221px;
    height: 20px;
    gap: 4px;
    margin: 0 auto;
}

.text-muted {
    color: #6c757d;
    font-family: Inter;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    margin: 0;
}

.text-muted a {
    color: #198754;
    font-family: Inter;
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    text-decoration: none;
}

.custom-input-group {
    width: 100%;
    max-width: 400px;
    height: 40px;
    position: relative;
}

.custom-input-group .form-control {
    border-radius: 8px 0 0 8px;
}

.custom-input-group .input-group-text {
    border-radius: 0 8px 8px 0;
}

/* Disabled suffix style for account name when editing is disabled */
.input-group .suffix-disabled {
    background-color: #e9ecef; /* Bootstrap-like disabled gray */
    color: #6c757d;
}

.readonly-disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed;
}

.custom-input-group .form-control.input-validation-error {
    border-color: #F97066;
    box-shadow: 0 0 0 2px rgba(249, 112, 102, 0.25);
}

.input-group .form-control.input-validation-error {
    border-color: #F97066 !important;
    box-shadow: 0 0 0 2px rgba(249, 112, 102, 0.25) !important;
}

.signin-button-container {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

/* FORCE: Select2 font-size and vertical alignment to match text inputs */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-results__option {
    font-size: 14px !important;
    font-family: Inter, var(--app-font) !important;
    line-height: 20px !important;
    color: #344054 !important;
}

/* Ensure no transform/tilt and consistent spacing */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    transform: none !important;
    -webkit-transform: none !important;
    padding-left: 16px !important;
    display: flex !important;
    align-items: center !important;
}

.signin-button {
    height: 40px;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    background-color: #004050;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0px 1px 2px 0px #1018280D;
}

.signin-button:hover {
    background-color: #002837;
}

.btn-label {
    padding: 0 4px;
}

.custom-button {
    background-color: #004050;
    color: #FFFFFF;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
    text-decoration: none;
}

.custom-button:hover,
.custom-button:focus,
.custom-button:active {
    color: #FFFFFF;
    text-decoration: none;
}

.support-link {
    color: #469E6A !important;
    text-decoration: none;
    font-weight: 500;
}

.support-link:hover, .support-link:focus {
    text-decoration: none;
}

.login-form .text-danger {
    font-family: Inter;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0;
}

.user-email-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 9999px;
    background-color: #E6F0FF;
    border: 1px solid #C9D9FF;
}
.user-email-pill img {
    width: 16px;
    height: 16px;
}
.user-email-pill__email {
    color: #0b6efd;
    font-weight: 600;
    text-decoration: none;
}
.user-email-pill__email:hover {
    text-decoration: underline;
}

.step-indicator {
    color: #667085;
    font-family: Text xs/Regular;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.subdomain-help {
    color: #475467;
    font-family: Text xs/Regular;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0;
    margin-top: 6px;
}
.subdomain-help .support-link {
    font-family: Text xs/Semibold;
    font-weight: 600;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0;
}

.creating-workspace-page .name-row {
    margin-bottom: 0;
}

.creating-workspace-page .name-row {
    margin-bottom: 16px !important;
    margin-top: 16px !important;
}

#domainPrefixError {
    font-family: Inter;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0;
}

#domainPrefixError.text-success {
    color: #079455;
}

#domainPrefixError.text-danger {
    color: #D92D20;
}

.login-page .form-control:focus,
.login-page .form-select:focus,
.login-page .input-group .form-control:focus {
    border-color: #d0d5dd;
    box-shadow: none;
    outline: none;
}

.setup-heading {
    margin-top: 48px;
    position: relative;
}

.loading-dots {
    position: absolute;
}