/* Registration Modal Styles mimicking 2nd image precisely */
.center-icon-container {
    width: 72px;
    height: 72px;
    background: #f05a28;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 16px rgba(240, 90, 40, 0.2);
}

.reg-card {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #f8fafc;
    height: 100%;
}

.reg-card:hover {
    border-color: #f05a28;
    box-shadow: 0 4px 12px rgba(240, 90, 40, 0.1);
    transform: translateY(-2px);
    background: #ffffff;
}

.reg-card.selected {
    border-color: #f05a28;
    background: #fff8f5;
    box-shadow: 0 0 0 2px rgba(240, 90, 40, 0.2);
}

.reg-card .icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #0d2358;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.reg-card h6 {
    font-weight: 700;
    color: #0d2358;
    margin-bottom: 4px;
    font-size: 14px;
}

.reg-card p {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.4;
}

.btn-back {
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #cbd5e1;
    color: #334155;
}

.btn-continue {
    background: #f05a28;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-weight: 700;
    color: white;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-continue:hover {
    background: #e04e1d;
    color: white;
    box-shadow: 0 4px 12px rgba(240, 90, 40, 0.3);
}

.gap-3 {
    gap: 1rem;
}

/* Ensure the modal only displays on mobile / tablet screens when triggered, though JS controls the launch */
@media (min-width: 992px) {
    #registrationTypeModal {
        display: none !important;
    }
}


/* VENDOR ONBOARDING MULTI-STEP MODAL STYLES */
.onboarding-modal-content {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    font-family: 'Inter', 'Outfit', sans-serif;
}

.onboarding-header {
    background: #0d2358;
    padding: 24px 24px 18px 24px;
    color: white;
    position: relative;
}

.onboarding-header-icon-wrapper {
    width: 44px;
    height: 44px;
    background: #f05a28;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.onboarding-mini-title {
    font-size: 10px;
    font-weight: 800;
    color: #f05a28;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.onboarding-step-title {
    font-weight: 700;
    font-size: 16px;
    color: white;
    margin-top: 2px;
}

.onboarding-progress-text {
    font-size: 16px;
    font-weight: 800;
    color: white;
}

.onboarding-progress-container {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

.onboarding-progress-bar {
    height: 100%;
    background: #f05a28;
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-body {
    padding: 30px 24px;
    max-height: 75vh;
    overflow-y: auto;
}

.onboarding-step-pane {
    display: none;
}

.onboarding-step-pane.active {
    display: block;
    animation: obFadeIn 0.35s ease;
}

@keyframes obFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suitcase-icon-container {
    width: 76px;
    height: 76px;
    background: #f05a28;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 20px auto;
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(240, 90, 40, 0.25);
}

.onboarding-pane-title {
    color: #0d2358;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 8px;
}

.onboarding-pane-subtitle {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Platform Banner */
.logistics-platform-banner {
    background: #091530;
    border-radius: 16px;
    padding: 20px 15px;
    color: white;
    text-align: center;
    margin-bottom: 24px;
}

.platform-mini-title {
    font-size: 9px;
    font-weight: 800;
    color: #f05a28;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.platform-main-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.mode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mode-icon {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.mode-item:hover .mode-icon {
    border-color: #f05a28;
    background: rgba(240, 90, 40, 0.1);
    transform: translateY(-2px);
}

.mode-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.7);
}

.platform-footer-text {
    font-size: 9px;
    font-weight: 800;
    color: #f05a28;
    letter-spacing: 1px;
}

/* Features List */
.onboarding-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    text-align: left;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.bg-navy {
    background: #0d2358;
}

.bg-blue {
    background: #1e3a8a;
}

.bg-dark-blue {
    background: #111827;
}

.feature-text h6 {
    font-weight: 700;
    color: #0d2358;
    font-size: 14px;
    margin: 0 0 2px 0;
}

.feature-text p {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}

.skip-onboarding-link {
    font-size: 13px;
    font-weight: 700;
    color: #0d2358;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s;
}

.skip-onboarding-link:hover {
    color: #f05a28;
}

.skip-helper-text {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Forms */
.onboarding-form-group {
    margin-bottom: 18px;
    text-align: left;
}

.onboarding-form-group label {
    font-size: 10px;
    font-weight: 800;
    color: #0d2358;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.onboarding-form-control {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s;
}

.onboarding-form-control:focus {
    border-color: #f05a28;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(240, 90, 40, 0.15);
    outline: none;
}

/* Option Cards for Step 3 */
.onboarding-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.onboarding-option-card {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.25s ease;
    text-align: left;
}

.onboarding-option-card:hover {
    border-color: #f05a28;
    background: #fffbf9;
}

.onboarding-option-card.selected {
    border-color: #f05a28;
    background: #fff8f5;
    box-shadow: 0 0 0 2px rgba(240, 90, 40, 0.15);
}

.option-card-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.option-card-icon-wrapper.orange-icon {
    background: #f05a28;
}

.option-card-icon-wrapper.blue-icon {
    background: #3b82f6;
}

.option-card-icon-wrapper.navy-icon {
    background: #0d2358;
}

.onboarding-option-card h6 {
    font-weight: 700;
    color: #0d2358;
    font-size: 14px;
    margin: 0 0 2px 0;
}

.onboarding-option-card p {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}

.option-check-circle {
    font-size: 18px;
    color: #cbd5e1;
}

.onboarding-option-card.selected .option-check-circle {
    color: #f05a28;
}

/* Footer Navigation Buttons */
.onboarding-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.onboarding-btn-back {
    background: #e2e8f0;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 700;
    color: #475569;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.onboarding-btn-back:hover {
    background: #cbd5e1;
    color: #1e293b;
}

.onboarding-btn-next {
    background: #0d2358;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-weight: 700;
    color: white;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.onboarding-btn-next:hover {
    background: #091530;
    color: white;
    box-shadow: 0 4px 10px rgba(13, 35, 88, 0.25);
}

.onboarding-btn-next.finish {
    background: #f05a28;
}

.onboarding-btn-next.finish:hover {
    background: #e04e1d;
    box-shadow: 0 4px 10px rgba(240, 90, 40, 0.3);
}

/* Step 6 & 7 styles */
.onboarding-branch-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.branch-form-title {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.btn-add-branch {
    background: #00c283;
    color: white !important;
    border: none;
    border-radius: 8px;
    width: 100%;
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-add-branch:hover {
    background: #00af75;
    box-shadow: 0 4px 10px rgba(0, 194, 131, 0.25);
}

.added-branch-badge {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #334155;
    border-left: 3px solid #00c283;
}

.added-branch-badge .remove-branch-btn {
    color: #ef4444;
    cursor: pointer;
    background: none;
    border: none;
}

.success-circle-container {
    width: 80px;
    height: 80px;
    background: #00c283;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    color: white;
    font-size: 36px;
    box-shadow: 0 8px 20px rgba(0, 194, 131, 0.25);
}

.summary-card-container {
    background: #f0f7ff;
    border: 1px solid #d0e7ff;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    margin: 20px 0;
}

.summary-card-title {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.summary-list-item {
    font-size: 14px;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

.summary-list-item strong {
    color: #0d2358;
    min-width: 80px;
}

.summary-subtext {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-top: 15px;
}

.onboarding-btn-next.finish-dashboard {
    background: #f05a28;
    padding: 12px 30px;
    font-size: 13px;
}

.onboarding-btn-next.finish-dashboard:hover {
    background: #e04e1d;
    box-shadow: 0 4px 12px rgba(240, 90, 40, 0.35);
}

/* Step 3 Pricing & Join Code sub-forms */
.pricing-group-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #4a5568;
    text-transform: uppercase;
    display: block;
}

.pricing-toggle-btn {
    flex: 1;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #4a5568;
    transition: all 0.2s ease-in-out;
}

.pricing-toggle-btn.active {
    background-color: #0d2358;
    color: #ffffff;
    border-color: #0d2358;
}

.pricing-toggle-btn:hover {
    border-color: #0d2358;
    color: #0d2358;
}

.pricing-toggle-btn.active:hover {
    color: #ffffff;
}

.join-code-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #4a5568;
    text-transform: uppercase;
    display: block;
}

.animate-fade-in {
    animation: fadeIn 0.25s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step 4 Custom Buttons and Toggles */
.carrier-service-btn {
    flex: 1;
    font-size: 13px;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #4a5568;
    transition: all 0.2s ease-in-out;
}

.carrier-service-btn.active {
    background-color: #0d2358;
    color: #ffffff;
    border-color: #0d2358;
}

.transit-mode-btn {
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 4px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #4a5568;
    text-transform: uppercase;
    transition: all 0.15s ease-in-out;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.transit-mode-btn.active {
    background-color: #ffffff;
    border-color: #0d2358;
    color: #0d2358;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px #0d2358;
}

@media (hover: hover) {
    .transit-mode-btn:not(.active):hover {
        border-color: #cbd5e1;
        background-color: #f8fafc;
    }
    .transit-mode-btn.active:hover {
        background-color: #f0f4ff;
    }
    .carrier-service-btn:hover {
        border-color: #0d2358;
        color: #0d2358;
    }
    .carrier-service-btn.active:hover {
        color: #ffffff;
    }
}

.transit-mode-btn:not(.active):focus {
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #4a5568 !important;
}

.carrier-service-btn:focus,
.transit-mode-btn:focus,
.transit-mode-btn:active,
.transit-mode-btn.active:focus {
    outline: none !important;
    box-shadow: none !important;
}

.awb-subtext-example {
    font-size: 11px;
    color: #64748b;
    margin-left: 2px;
}

/* Step 6 Premium Branch Cards */
.added-branch-premium-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #a7f3d0;
    background-color: #ecfdf5;
    margin-bottom: 12px;
}

.branch-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.branch-card-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.branch-card-details {
    display: flex;
    flex-direction: column;
}

.branch-card-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.branch-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.branch-primary-badge {
    font-size: 9px;
    font-weight: 800;
    color: #c2410c;
    background-color: #ffedd5;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.branch-card-location {
    font-size: 12px;
    color: #475569;
    margin-top: 1px;
}

.branch-card-delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background-color: #fef2f2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    padding: 0;
}

.branch-card-delete-btn:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Hide modal entirely on desktop screen sizes */
@media (min-width: 992px) {
    #vendorOnboardingModal {
        display: none !important;
    }
}

/* Custom classes replacing inline styles */
.ob-input-icon {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.ob-error-message {
    color: #e11d48;
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
    display: none;
}

/* Custom Select Wrapper and Select styling matching Workspace */
.ob-select-wrapper {
    position: relative;
    width: 100%;
}

.ob-select-wrapper select.onboarding-form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 36px !important;
    /* Space for the arrow */
    cursor: pointer;
}

.ob-select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #64748b;
    pointer-events: none;
}

/* Hide native browser clock picker indicator for daily cutoff time */
#ob_cutoff_time::-webkit-calendar-picker-indicator {
    display: none !important;
    -webkit-appearance: none !important;
}

.onboarding-form-textarea {
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: white;
    height: 53px;
    display: block;
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 8px;
}

.onboarding-form-textarea:focus {
    border-color: #f15a24;
    outline: none;
}

.add-a-bottom-fill-div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0px 7px 0px;
}